Documentation
¶
Index ¶
- type CreateEntityRequest
- type Handler
- func (h Handler) CreateEntity(c echo.Context) error
- func (h Handler) Follow(c echo.Context) error
- func (h Handler) GetEntity(c echo.Context) error
- func (h Handler) GetStats(c echo.Context) error
- func (h Handler) GetUserSettings(c echo.Context) error
- func (h Handler) ImportNote(c echo.Context) error
- func (h Handler) ResolvePerson(c echo.Context) error
- func (h Handler) UnFollow(c echo.Context) error
- func (h Handler) UpdateEntityAliases(c echo.Context) error
- func (h Handler) UpdateUserSettings(c echo.Context) error
- type Service
- func (s *Service) CreateEntity(ctx context.Context, requester string, id string) (types.ApEntity, error)
- func (s *Service) Follow(ctx context.Context, requester, targetID string) (types.ApFollow, error)
- func (s *Service) GetEntityByCCID(ctx context.Context, ccid string) (types.ApEntity, error)
- func (s *Service) GetEntityByID(ctx context.Context, id string) (types.ApEntity, error)
- func (s *Service) GetStats(ctx context.Context, id string) (types.AccountStats, error)
- func (s *Service) GetUserSettings(ctx context.Context, requester string) (types.ApUserSettings, error)
- func (s *Service) ImportNote(ctx context.Context, noteID, requester string) (core.Message, error)
- func (s *Service) ResolvePerson(ctx context.Context, id, requester string) (any, error)
- func (s *Service) UnFollow(ctx context.Context, requester, targetID string) (types.ApFollow, error)
- func (s *Service) UpdateEntityAliases(ctx context.Context, requester string, aliases []string) (types.ApEntity, error)
- func (s *Service) UpsertUserSettings(ctx context.Context, settings types.ApUserSettings) error
- type UpdateEntityAliasesRequest
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateEntityRequest ¶
type CreateEntityRequest struct {
ID string `json:"id"`
}
CreateEntityRequest is a struct for a request to create an entity.
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
func NewHandler ¶
func (Handler) CreateEntity ¶
CreateEntity handles entity creation.
func (Handler) GetUserSettings ¶
func (Handler) ImportNote ¶
func (Handler) ResolvePerson ¶
func (Handler) UpdateEntityAliases ¶
func (Handler) UpdateUserSettings ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func NewService ¶
func (*Service) CreateEntity ¶
func (*Service) GetEntityByCCID ¶
func (*Service) GetEntityByID ¶
func (*Service) GetUserSettings ¶
func (*Service) ImportNote ¶
func (*Service) ResolvePerson ¶
func (*Service) UpdateEntityAliases ¶
func (*Service) UpsertUserSettings ¶
type UpdateEntityAliasesRequest ¶
type UpdateEntityAliasesRequest struct {
Aliases []string `json:"aliases"`
}
Click to show internal directories.
Click to hide internal directories.