mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-10-29 07:12:25 -05:00
[feature] Move to code.superseriousbusiness.org
This commit is contained in:
parent
034d58069c
commit
27edfccf7d
1188 changed files with 4969 additions and 4967 deletions
8
internal/cache/cache.go
vendored
8
internal/cache/cache.go
vendored
|
|
@ -20,11 +20,11 @@ package cache
|
|||
import (
|
||||
"time"
|
||||
|
||||
"code.superseriousbusiness.org/gotosocial/internal/cache/headerfilter"
|
||||
"code.superseriousbusiness.org/gotosocial/internal/config"
|
||||
"code.superseriousbusiness.org/gotosocial/internal/gtserror"
|
||||
"code.superseriousbusiness.org/gotosocial/internal/log"
|
||||
"codeberg.org/gruf/go-cache/v3/ttl"
|
||||
"github.com/superseriousbusiness/gotosocial/internal/cache/headerfilter"
|
||||
"github.com/superseriousbusiness/gotosocial/internal/config"
|
||||
"github.com/superseriousbusiness/gotosocial/internal/gtserror"
|
||||
"github.com/superseriousbusiness/gotosocial/internal/log"
|
||||
)
|
||||
|
||||
type Caches struct {
|
||||
|
|
|
|||
8
internal/cache/db.go
vendored
8
internal/cache/db.go
vendored
|
|
@ -20,11 +20,11 @@ package cache
|
|||
import (
|
||||
"sync/atomic"
|
||||
|
||||
"code.superseriousbusiness.org/gotosocial/internal/cache/domain"
|
||||
"code.superseriousbusiness.org/gotosocial/internal/config"
|
||||
"code.superseriousbusiness.org/gotosocial/internal/gtsmodel"
|
||||
"code.superseriousbusiness.org/gotosocial/internal/log"
|
||||
"codeberg.org/gruf/go-structr"
|
||||
"github.com/superseriousbusiness/gotosocial/internal/cache/domain"
|
||||
"github.com/superseriousbusiness/gotosocial/internal/config"
|
||||
"github.com/superseriousbusiness/gotosocial/internal/gtsmodel"
|
||||
"github.com/superseriousbusiness/gotosocial/internal/log"
|
||||
)
|
||||
|
||||
type DBCaches struct {
|
||||
|
|
|
|||
2
internal/cache/domain/domain_test.go
vendored
2
internal/cache/domain/domain_test.go
vendored
|
|
@ -21,7 +21,7 @@ import (
|
|||
"errors"
|
||||
"testing"
|
||||
|
||||
"github.com/superseriousbusiness/gotosocial/internal/cache/domain"
|
||||
"code.superseriousbusiness.org/gotosocial/internal/cache/domain"
|
||||
)
|
||||
|
||||
func TestCache(t *testing.T) {
|
||||
|
|
|
|||
4
internal/cache/headerfilter/filter.go
vendored
4
internal/cache/headerfilter/filter.go
vendored
|
|
@ -22,8 +22,8 @@ import (
|
|||
"net/http"
|
||||
"sync/atomic"
|
||||
|
||||
"github.com/superseriousbusiness/gotosocial/internal/gtsmodel"
|
||||
"github.com/superseriousbusiness/gotosocial/internal/headerfilter"
|
||||
"code.superseriousbusiness.org/gotosocial/internal/gtsmodel"
|
||||
"code.superseriousbusiness.org/gotosocial/internal/headerfilter"
|
||||
)
|
||||
|
||||
// Cache provides a means of caching headerfilter.Filters in
|
||||
|
|
|
|||
4
internal/cache/invalidate.go
vendored
4
internal/cache/invalidate.go
vendored
|
|
@ -18,8 +18,8 @@
|
|||
package cache
|
||||
|
||||
import (
|
||||
"github.com/superseriousbusiness/gotosocial/internal/gtsmodel"
|
||||
"github.com/superseriousbusiness/gotosocial/internal/util"
|
||||
"code.superseriousbusiness.org/gotosocial/internal/gtsmodel"
|
||||
"code.superseriousbusiness.org/gotosocial/internal/util"
|
||||
)
|
||||
|
||||
// Below are cache invalidation hooks between other caches,
|
||||
|
|
|
|||
10
internal/cache/size.go
vendored
10
internal/cache/size.go
vendored
|
|
@ -23,13 +23,13 @@ import (
|
|||
"time"
|
||||
"unsafe"
|
||||
|
||||
"code.superseriousbusiness.org/gotosocial/internal/ap"
|
||||
"code.superseriousbusiness.org/gotosocial/internal/config"
|
||||
"code.superseriousbusiness.org/gotosocial/internal/gtsmodel"
|
||||
"code.superseriousbusiness.org/gotosocial/internal/id"
|
||||
"code.superseriousbusiness.org/gotosocial/internal/util"
|
||||
"codeberg.org/gruf/go-cache/v3/simple"
|
||||
"github.com/DmitriyVTitov/size"
|
||||
"github.com/superseriousbusiness/gotosocial/internal/ap"
|
||||
"github.com/superseriousbusiness/gotosocial/internal/config"
|
||||
"github.com/superseriousbusiness/gotosocial/internal/gtsmodel"
|
||||
"github.com/superseriousbusiness/gotosocial/internal/id"
|
||||
"github.com/superseriousbusiness/gotosocial/internal/util"
|
||||
)
|
||||
|
||||
const (
|
||||
|
|
|
|||
2
internal/cache/util.go
vendored
2
internal/cache/util.go
vendored
|
|
@ -20,8 +20,8 @@ package cache
|
|||
import (
|
||||
"errors"
|
||||
|
||||
"code.superseriousbusiness.org/gotosocial/internal/db"
|
||||
errorsv2 "codeberg.org/gruf/go-errors/v2"
|
||||
"github.com/superseriousbusiness/gotosocial/internal/db"
|
||||
)
|
||||
|
||||
// SentinelError is an error that can be returned and checked against to indicate a non-permanent
|
||||
|
|
|
|||
4
internal/cache/visibility.go
vendored
4
internal/cache/visibility.go
vendored
|
|
@ -18,9 +18,9 @@
|
|||
package cache
|
||||
|
||||
import (
|
||||
"code.superseriousbusiness.org/gotosocial/internal/config"
|
||||
"code.superseriousbusiness.org/gotosocial/internal/log"
|
||||
"codeberg.org/gruf/go-structr"
|
||||
"github.com/superseriousbusiness/gotosocial/internal/config"
|
||||
"github.com/superseriousbusiness/gotosocial/internal/log"
|
||||
)
|
||||
|
||||
type VisibilityCache struct {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue