Documentation
¶
Index ¶
- Constants
- func AuthHandler(ctx context.Context, input *openapi3filter.AuthenticationInput) error
- func IsMastodonPath(path string) bool
- func Skipper(c echo.Context) bool
- func ToAccount(acc mdomain.Account) mopenapi.Account
- func ToCredentialAccount(acc mdomain.Account) mopenapi.CredentialAccount
- func ToStatues(slice []mdomain.Status) []mopenapi.Status
- func ToStatus(st mdomain.Status) mopenapi.Status
- type CredentialAccount
- type MastodonHandler
- func (h *MastodonHandler) GetApiV1AccountsUid(c echo.Context, uid string) error
- func (h *MastodonHandler) GetApiV1AccountsUidStatuses(c echo.Context, uid string, params mopenapi.GetApiV1AccountsUidStatusesParams) error
- func (h *MastodonHandler) GetApiV1AccountsVerifyCredentials(c echo.Context) error
- func (h *MastodonHandler) GetApiV1TimelinesHome(c echo.Context, params mopenapi.GetApiV1TimelinesHomeParams) error
- func (h *MastodonHandler) GetApiV1TimelinesListListId(ctx echo.Context, lid string, ...) error
- func (h *MastodonHandler) GetApiV1TimelinesPublic(c echo.Context, params mopenapi.GetApiV1TimelinesPublicParams) error
- func (h *MastodonHandler) GetApiV1TimelinesTagHashtag(c echo.Context, hashtag mopenapi.HashTagPathParam, ...) error
Constants ¶
View Source
const (
TimeLayout = "2006-01-02T15:04:05.999Z"
)
Variables ¶
This section is empty.
Functions ¶
func AuthHandler ¶
func AuthHandler(ctx context.Context, input *openapi3filter.AuthenticationInput) error
AuthHandler
func ToCredentialAccount ¶
func ToCredentialAccount( acc mdomain.Account, ) mopenapi.CredentialAccount
Types ¶
type CredentialAccount ¶
type CredentialAccount struct { mopenapi.Account Role mopenapi.Role Source mopenapi.Source }
type MastodonHandler ¶
type MastodonHandler struct { }
func (*MastodonHandler) GetApiV1AccountsUid ¶
func (h *MastodonHandler) GetApiV1AccountsUid(c echo.Context, uid string) error
GetMApiV1AccountsId
func (*MastodonHandler) GetApiV1AccountsUidStatuses ¶
func (h *MastodonHandler) GetApiV1AccountsUidStatuses( c echo.Context, uid string, params mopenapi.GetApiV1AccountsUidStatusesParams, ) error
func (*MastodonHandler) GetApiV1AccountsVerifyCredentials ¶
func (h *MastodonHandler) GetApiV1AccountsVerifyCredentials(c echo.Context) error
GetMApiV1AccountsVerifyCredentials
func (*MastodonHandler) GetApiV1TimelinesHome ¶
func (h *MastodonHandler) GetApiV1TimelinesHome( c echo.Context, params mopenapi.GetApiV1TimelinesHomeParams, ) error
GetApiV1TimelinesHome
func (*MastodonHandler) GetApiV1TimelinesListListId ¶
func (h *MastodonHandler) GetApiV1TimelinesListListId( ctx echo.Context, lid string, params mopenapi.GetApiV1TimelinesListListIdParams, ) error
GetApiV1TimelinesListListId
func (*MastodonHandler) GetApiV1TimelinesPublic ¶
func (h *MastodonHandler) GetApiV1TimelinesPublic( c echo.Context, params mopenapi.GetApiV1TimelinesPublicParams, ) error
GetApiV1TimelinesPublic
func (*MastodonHandler) GetApiV1TimelinesTagHashtag ¶
func (h *MastodonHandler) GetApiV1TimelinesTagHashtag( c echo.Context, hashtag mopenapi.HashTagPathParam, params mopenapi.GetApiV1TimelinesTagHashtagParams, ) error
GetApiV1TimelinesTagHashtag
Click to show internal directories.
Click to hide internal directories.