mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-12-29 21:56:15 -06:00
17 lines
774 B
Go
17 lines
774 B
Go
package db
|
|
|
|
import "github.com/superseriousbusiness/gotosocial/internal/gtsmodel"
|
|
|
|
type Instance interface {
|
|
// GetUserCountForInstance returns the number of known accounts registered with the given domain.
|
|
GetUserCountForInstance(domain string) (int, error)
|
|
|
|
// GetStatusCountForInstance returns the number of known statuses posted from the given domain.
|
|
GetStatusCountForInstance(domain string) (int, error)
|
|
|
|
// GetDomainCountForInstance returns the number of known instances known that the given domain federates with.
|
|
GetDomainCountForInstance(domain string) (int, error)
|
|
|
|
// GetAccountsForInstance returns a slice of accounts from the given instance, arranged by ID.
|
|
GetAccountsForInstance(domain string, maxID string, limit int) ([]*gtsmodel.Account, error)
|
|
}
|