Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FederationService ¶
type FederationService interface { SendToInbox(ctx context.Context, author *entity.User, target *entity.User, object any) ([]byte, error) GetUser(ctx context.Context, uri *versiautils.URL) (*versia.User, error) DiscoverUser(ctx context.Context, baseURL, username string) (*webfinger.User, error) DiscoverInstance(ctx context.Context, baseURL string) (*versia.InstanceMetadata, error) }
type FollowService ¶
type InboxService ¶
type InstanceMetadataService ¶
type InstanceMetadataService interface {
Ours(ctx context.Context) (*entity.InstanceMetadata, error)
}
type NoteService ¶
type RequestSigner ¶
type RequestSigner interface {
SignAndSend(c *fiber.Ctx, signer versiacrypto.Signer, body any) error
}
type TaskService ¶
type UserService ¶
type UserService interface { WithRepositories(repositories repository.Manager) UserService NewUser(ctx context.Context, username, password string) (*entity.User, error) GetLocalUserByID(ctx context.Context, id uuid.UUID) (*entity.User, error) GetWebfingerForUser(ctx context.Context, userID string) (*webfinger.User, error) Search(ctx context.Context, req api_schema.SearchUserRequest) (*entity.User, error) }
Click to show internal directories.
Click to hide internal directories.