mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-12-13 05:17:28 -06:00
bit of experimenting and tidying
This commit is contained in:
parent
7590eb9cc2
commit
1eecc2688c
13 changed files with 167 additions and 109 deletions
|
|
@ -23,7 +23,7 @@ import (
|
|||
|
||||
"github.com/go-fed/activity/pub"
|
||||
"github.com/gotosocial/gotosocial/internal/cache"
|
||||
"github.com/gotosocial/gotosocial/internal/client"
|
||||
"github.com/gotosocial/gotosocial/internal/api"
|
||||
"github.com/gotosocial/gotosocial/internal/config"
|
||||
"github.com/gotosocial/gotosocial/internal/db"
|
||||
)
|
||||
|
|
@ -33,7 +33,7 @@ type Gotosocial interface {
|
|||
Stop(context.Context) error
|
||||
}
|
||||
|
||||
func New(db db.DB, cache cache.Cache, clientAPI client.API, federationAPI pub.FederatingActor, config *config.Config) (Gotosocial, error) {
|
||||
func New(db db.DB, cache cache.Cache, clientAPI api.Server, federationAPI pub.FederatingActor, config *config.Config) (Gotosocial, error) {
|
||||
return &gotosocial{
|
||||
db: db,
|
||||
cache: cache,
|
||||
|
|
@ -46,7 +46,7 @@ func New(db db.DB, cache cache.Cache, clientAPI client.API, federationAPI pub.Fe
|
|||
type gotosocial struct {
|
||||
db db.DB
|
||||
cache cache.Cache
|
||||
clientAPI client.API
|
||||
clientAPI api.Server
|
||||
federationAPI pub.FederatingActor
|
||||
config *config.Config
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue