mapi

package
v0.0.0-...-3e81ccd Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 19, 2023 License: MIT Imports: 14 Imported by: 0

Documentation

Index

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 IsMastodonPath

func IsMastodonPath(path string) bool

IsMastodonPath

func Skipper

func Skipper(c echo.Context) bool

Skipper

func ToAccount

func ToAccount(
	acc mdomain.Account,
) mopenapi.Account

func ToCredentialAccount

func ToCredentialAccount(
	acc mdomain.Account,
) mopenapi.CredentialAccount

func ToStatues

func ToStatues(
	slice []mdomain.Status,
) []mopenapi.Status

func ToStatus

func ToStatus(
	st mdomain.Status,
) mopenapi.Status

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL