mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-12-18 14:03:03 -06:00
tests
This commit is contained in:
parent
1eecc2688c
commit
cca676dcb3
11 changed files with 269 additions and 358 deletions
|
|
@ -24,8 +24,8 @@ import (
|
|||
"strings"
|
||||
|
||||
"github.com/go-fed/activity/pub"
|
||||
"github.com/go-oauth2/oauth2/v4"
|
||||
"github.com/gotosocial/gotosocial/internal/config"
|
||||
"github.com/gotosocial/oauth2/v4"
|
||||
"github.com/sirupsen/logrus"
|
||||
)
|
||||
|
||||
|
|
|
|||
|
|
@ -30,13 +30,12 @@ import (
|
|||
|
||||
"github.com/go-fed/activity/streams"
|
||||
"github.com/go-fed/activity/streams/vocab"
|
||||
"github.com/go-oauth2/oauth2/v4"
|
||||
"github.com/go-pg/pg/extra/pgdebug"
|
||||
"github.com/go-pg/pg/v10"
|
||||
"github.com/go-pg/pg/v10/orm"
|
||||
"github.com/gotosocial/gotosocial/internal/config"
|
||||
"github.com/gotosocial/gotosocial/internal/gtsmodel"
|
||||
"github.com/gotosocial/gotosocial/internal/oauth"
|
||||
"github.com/gotosocial/oauth2/v4"
|
||||
"github.com/sirupsen/logrus"
|
||||
)
|
||||
|
||||
|
|
@ -46,7 +45,7 @@ type postgresService struct {
|
|||
log *logrus.Entry
|
||||
cancel context.CancelFunc
|
||||
locks *sync.Map
|
||||
tokenStore *oauth.PGTokenStore
|
||||
tokenStore oauth2.TokenStore
|
||||
}
|
||||
|
||||
// newPostgresService returns a postgresService derived from the provided config, which implements the go-fed DB interface.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue