start adding mastodon api types

This commit is contained in:
tsmethurst
2021-03-11 14:30:14 +01:00
parent a7b01a44b6
commit c558681f02
16 changed files with 388 additions and 114 deletions

View File

@ -35,20 +35,20 @@ type Gotosocial interface {
func New(db db.DB, cache cache.Cache, clientAPI client.API, federationAPI pub.FederatingActor, config *config.Config) (Gotosocial, error) {
return &gotosocial{
db: db,
cache: cache,
clientAPI: clientAPI,
federationAPI: federationAPI,
config: config,
db: db,
cache: cache,
clientAPI: clientAPI,
federationAPI: federationAPI,
config: config,
}, nil
}
type gotosocial struct {
db db.DB
cache cache.Cache
clientAPI client.API
federationAPI pub.FederatingActor
config *config.Config
db db.DB
cache cache.Cache
clientAPI client.API
federationAPI pub.FederatingActor
config *config.Config
}
func (gts *gotosocial) Start(ctx context.Context) error {