mopenapi

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

Overview

Package mopenapi provides primitives to interact with the openapi HTTP API.

Code generated by github.com/deepmap/oapi-codegen version v1.14.0 DO NOT EDIT.

Index

Constants

View Source
const (
	NPubOrNSecScopes = "NPubOrNSec.Scopes"
)

Variables

This section is empty.

Functions

func GetSwagger

func GetSwagger() (swagger *openapi3.T, err error)

GetSwagger returns the Swagger specification corresponding to the generated code in this file. The external references of Swagger specification are resolved. The logic of resolving external references is tightly connected to "import-mapping" feature. Externally referenced files must be embedded in the corresponding golang packages. Urls can be supported but this task was out of the scope.

func PathToRawSpec

func PathToRawSpec(pathToFile string) map[string]func() ([]byte, error)

Constructs a synthetic filesystem for resolving external references when loading openapi specifications.

func RegisterHandlers

func RegisterHandlers(router EchoRouter, si ServerInterface)

RegisterHandlers adds each server route to the EchoRouter.

func RegisterHandlersWithBaseURL

func RegisterHandlersWithBaseURL(router EchoRouter, si ServerInterface, baseURL string)

Registers handlers, and prepends BaseURL to the paths, so that the paths can be served under a prefix.

Types

type Account

type Account struct {
	// Acct The Webfinger account URI. Equal to username for local users, or username@domain for remote users.
	Acct string `json:"acct"`

	// Avatar An image icon that is shown next to statuses and in the profile. (URL)
	Avatar string `json:"avatar"`

	// AvatarStatic A static version of the avatar. Equal to avatar if its value is a static image; different if avatar is an animated GIF.
	AvatarStatic string `json:"avatar_static"`

	// Bot Indicates that the account may perform automated actions, may not be monitored, or identifies
	Bot bool `json:"bot"`

	// CreatedAt When the account was created. (ISO 8601)
	CreatedAt string `json:"created_at"`

	// Discoverable Whether the account has opted into discovery features such as the profile directory.
	Discoverable *bool `json:"discoverable"`

	// DisplayName The profile’s display name.
	DisplayName string `json:"display_name"`

	// Emojis Custom emoji entities to be used when rendering the profile.
	Emojis []CustomEmoji `json:"emojis"`

	// Fields Custom emoji entities to be used when rendering the profile.
	Fields []Field `json:"fields"`

	// FollowersCount The reported followers of this profile.
	FollowersCount int `json:"followers_count"`

	// FollowingCount The reported follows of this profile.
	FollowingCount int `json:"following_count"`

	// Group Indicates that the account represents a Group actor.
	Group bool `json:"group"`

	// Header An image banner that is shown above the profile and in profile cards.
	Header string `json:"header"`

	// HeaderStatic A static version of the header. Equal to header if its value is a static image; different if header is an animated GIF.
	HeaderStatic string `json:"header_static"`

	// Id The account id.
	Id string `json:"id"`

	// LastStatusAt When the most recent status was posted. (ISO 8601)
	LastStatusAt *string `json:"last_status_at"`

	// Limited An extra attribute returned only when an account is silenced. If true, indicates that the account should be hidden behind a warning screen.
	Limited *bool `json:"limited,omitempty"`

	// Locked Whether the account manually approves follow requests.
	Locked bool `json:"locked"`

	// Moved Indicates that the profile is currently inactive and that its user has moved to a new account.
	Moved *bool `json:"moved"`

	// Noindex Whether the local user has opted out of being indexed by search engines.
	Noindex *bool `json:"noindex"`

	// Note The profile’s bio or description. (HTML)
	Note string `json:"note"`

	// StatusesCount How many statuses are attached to this account.
	StatusesCount int `json:"statuses_count"`

	// Suspended An extra attribute returned only when an account is suspended.
	Suspended *bool `json:"suspended,omitempty"`

	// Url The location of the user’s profile page.
	Url string `json:"url"`

	// Username The username of the account, not including domain.
	Username string `json:"username"`
}

Account defines model for Account.

type Application

type Application struct {
	Name    *string `json:"name"`
	Website *string `json:"website"`
}

Application defines model for Application.

type ArrayAllQueryParam

type ArrayAllQueryParam = []interface{}

ArrayAllQueryParam defines model for ArrayAllQueryParam.

type ArrayAnyQueryParam

type ArrayAnyQueryParam = []interface{}

ArrayAnyQueryParam defines model for ArrayAnyQueryParam.

type ArrayNoneQueryParam

type ArrayNoneQueryParam = []interface{}

ArrayNoneQueryParam defines model for ArrayNoneQueryParam.

type CredentialAccount

type CredentialAccount struct {
	// Acct The Webfinger account URI. Equal to username for local users, or username@domain for remote users.
	Acct string `json:"acct"`

	// Avatar An image icon that is shown next to statuses and in the profile. (URL)
	Avatar string `json:"avatar"`

	// AvatarStatic A static version of the avatar. Equal to avatar if its value is a static image; different if avatar is an animated GIF.
	AvatarStatic string `json:"avatar_static"`

	// Bot Indicates that the account may perform automated actions, may not be monitored, or identifies
	Bot bool `json:"bot"`

	// CreatedAt When the account was created. (ISO 8601)
	CreatedAt string `json:"created_at"`

	// Discoverable Whether the account has opted into discovery features such as the profile directory.
	Discoverable *bool `json:"discoverable"`

	// DisplayName The profile’s display name.
	DisplayName string `json:"display_name"`

	// Emojis Custom emoji entities to be used when rendering the profile.
	Emojis []CustomEmoji `json:"emojis"`

	// Fields Custom emoji entities to be used when rendering the profile.
	Fields []Field `json:"fields"`

	// FollowersCount The reported followers of this profile.
	FollowersCount int `json:"followers_count"`

	// FollowingCount The reported follows of this profile.
	FollowingCount int `json:"following_count"`

	// Group Indicates that the account represents a Group actor.
	Group bool `json:"group"`

	// Header An image banner that is shown above the profile and in profile cards.
	Header string `json:"header"`

	// HeaderStatic A static version of the header. Equal to header if its value is a static image; different if header is an animated GIF.
	HeaderStatic string `json:"header_static"`

	// Id The account id.
	Id string `json:"id"`

	// LastStatusAt When the most recent status was posted. (ISO 8601)
	LastStatusAt *string `json:"last_status_at"`

	// Limited An extra attribute returned only when an account is silenced. If true, indicates that the account should be hidden behind a warning screen.
	Limited *bool `json:"limited,omitempty"`

	// Locked Whether the account manually approves follow requests.
	Locked bool `json:"locked"`

	// Moved Indicates that the profile is currently inactive and that its user has moved to a new account.
	Moved *bool `json:"moved"`

	// Noindex Whether the local user has opted out of being indexed by search engines.
	Noindex *bool `json:"noindex"`

	// Note The profile’s bio or description. (HTML)
	Note   string `json:"note"`
	Role   Role   `json:"role"`
	Source Source `json:"source"`

	// StatusesCount How many statuses are attached to this account.
	StatusesCount int `json:"statuses_count"`

	// Suspended An extra attribute returned only when an account is suspended.
	Suspended *bool `json:"suspended,omitempty"`

	// Url The location of the user’s profile page.
	Url string `json:"url"`

	// Username The username of the account, not including domain.
	Username string `json:"username"`
}

CredentialAccount defines model for CredentialAccount.

type CustomEmoji

type CustomEmoji struct {
	// Category Used for sorting custom emoji in the picker.
	Category string `json:"category"`

	// Shortcode The name of the custom emoji.
	Shortcode string `json:"shortcode"`

	// StaticUrl A link to a static copy of the custom emoji.
	StaticUrl string `json:"static_url"`

	// Url A link to the custom emoji.
	Url string `json:"url"`

	// VisibleInPicker Whether this Emoji should be visible in the picker or unlisted.
	VisibleInPicker bool `json:"visible_in_picker"`
}

CustomEmoji defines model for CustomEmoji.

type EchoRouter

type EchoRouter interface {
	CONNECT(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route
	DELETE(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route
	GET(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route
	HEAD(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route
	OPTIONS(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route
	PATCH(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route
	POST(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route
	PUT(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route
	TRACE(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route
}

This is a simple interface which specifies echo.Route addition functions which are present on both echo.Echo and echo.Group, since we want to allow using either of them for path registration

type ExcludeReblogsQueryParam

type ExcludeReblogsQueryParam = bool

ExcludeReblogsQueryParam defines model for ExcludeReblogsQueryParam.

type ExcludeRepliesQueryParam

type ExcludeRepliesQueryParam = bool

ExcludeRepliesQueryParam defines model for ExcludeRepliesQueryParam.

type Field

type Field struct {
	// Name The key of a given field’s key-value pair.
	Name string `json:"name"`

	// Value The value associated with the name key.
	Value string `json:"value"`

	// VerifiedAt Timestamp of when the server verified a URL value for a rel=“me” link.
	VerifiedAt *string `json:"verified_at"`
}

Field defines model for Field.

type Filter

type Filter struct {
	// Context The contexts in which the filter should be applied.
	Context []FilterContext `json:"context"`

	// ExpiresAt When the filter should no longer be applied.
	ExpiresAt *string `json:"expires_at"`

	// FilterAction The action to be taken when a status matches this filter.
	FilterAction FilterFilterAction `json:"filter_action"`

	// Id The ID of the Filter in the database.
	Id string `json:"id"`

	// Keywords The keywords grouped under this filter.
	Keywords []FilterKeyword `json:"keywords"`

	// Statuses The statuses grouped under this filter.
	Statuses []FilterStatus `json:"statuses"`

	// Title A title given by the user to name the filter.
	Title string `json:"title"`
}

Filter Represents a user-defined filter for determining which statuses should not be shown to the user.

type FilterContext

type FilterContext string

FilterContext defines model for Filter.Context.

const (
	FilterContextAccount       FilterContext = "account"
	FilterContextHome          FilterContext = "home"
	FilterContextNotifications FilterContext = "notifications"
	FilterContextPublic        FilterContext = "public"
	FilterContextThread        FilterContext = "thread"
)

Defines values for FilterContext.

type FilterFilterAction

type FilterFilterAction string

FilterFilterAction The action to be taken when a status matches this filter.

const (
	Hide FilterFilterAction = "hide"
	Warn FilterFilterAction = "warn"
)

Defines values for FilterFilterAction.

type FilterKeyword

type FilterKeyword struct {
	// Id The ID of the FilterKeyword in the database.
	Id string `json:"id"`

	// Keyword The phrase to be matched against.
	Keyword string `json:"keyword"`

	// WholeWord Should the filter consider word boundaries? See implementation guidelines for filters.
	WholeWord bool `json:"whole_word"`
}

FilterKeyword Represents a keyword that, if matched, should cause the filter action to be taken.

type FilterResult

type FilterResult struct {
	// Filter Represents a user-defined filter for determining which statuses should not be shown to the user.
	Filter Filter `json:"filter"`

	// KeywordMatches The keyword within the filter that was matched.
	KeywordMatches *[]string `json:"keyword_matches"`

	// StatusMatches The status ID within the filter that was matched.
	StatusMatches *[]string `json:"status_matches"`
}

FilterResult Represents a filter whose keywords matched a given status.

type FilterStatus

type FilterStatus struct {
	// Id The ID of the FilterStatus in the database.
	Id string `json:"id"`

	// StatusId The ID of the Status that will be filtered.
	StatusId string `json:"status_id"`
}

FilterStatus Represents a status ID that, if matched, should cause the filter action to be taken.

type GetApiV1AccountsUidStatusesParams

type GetApiV1AccountsUidStatusesParams struct {
	// MaxId Return results older than this ID
	MaxId *MaxIdQueryParam `form:"max_id,omitempty" json:"max_id,omitempty"`

	// SinceId Return results newer than this ID
	SinceId *SinceIdQueryParam `form:"since_id,omitempty" json:"since_id,omitempty"`

	// MinId Return results immediately newer than this ID
	MinId *MinIdQueryParam `form:"min_id,omitempty" json:"min_id,omitempty"`

	// Limit Maximum number of results to return. Defaults to 20 statuses. Max 40 statuses.
	Limit *LimitQueryParam `form:"limit,omitempty" json:"limit,omitempty"`

	// OnlyMedia Filter out statuses without attachments.
	OnlyMedia *OnlyMediaQueryParam `form:"only_media,omitempty" json:"only_media,omitempty"`

	// ExcludeReplies Filter out statuses in reply to a different account.
	ExcludeReplies *ExcludeRepliesQueryParam `form:"exclude_replies,omitempty" json:"exclude_replies,omitempty"`

	// ExcludeReblogs Filter out boosts from the response.
	ExcludeReblogs *ExcludeReblogsQueryParam `form:"exclude_reblogs,omitempty" json:"exclude_reblogs,omitempty"`

	// Pinned Filter for pinned statuses only.
	Pinned *PinnedQueryParam `form:"pinned,omitempty" json:"pinned,omitempty"`

	// Tagged Filter for statuses using a specific hashtag.
	Tagged *TaggedQueryParam `form:"tagged,omitempty" json:"tagged,omitempty"`
}

GetApiV1AccountsUidStatusesParams defines parameters for GetApiV1AccountsUidStatuses.

func (GetApiV1AccountsUidStatusesParams) ToTimeLineOptions

func (p GetApiV1AccountsUidStatusesParams) ToTimeLineOptions() mdomain.TimelineOptions

type GetApiV1TimelinesHomeParams

type GetApiV1TimelinesHomeParams struct {
	// MaxId Return results older than this ID
	MaxId *MaxIdQueryParam `form:"max_id,omitempty" json:"max_id,omitempty"`

	// SinceId Return results newer than this ID
	SinceId *SinceIdQueryParam `form:"since_id,omitempty" json:"since_id,omitempty"`

	// MinId Return results immediately newer than this ID
	MinId *MinIdQueryParam `form:"min_id,omitempty" json:"min_id,omitempty"`

	// Limit Maximum number of results to return. Defaults to 20 statuses. Max 40 statuses.
	Limit *LimitQueryParam `form:"limit,omitempty" json:"limit,omitempty"`
}

GetApiV1TimelinesHomeParams defines parameters for GetApiV1TimelinesHome.

func (GetApiV1TimelinesHomeParams) ToTimeLineOptions

func (p GetApiV1TimelinesHomeParams) ToTimeLineOptions() mdomain.TimelineOptions

type GetApiV1TimelinesListListIdParams

type GetApiV1TimelinesListListIdParams struct {
	// MaxId Return results older than this ID
	MaxId *MaxIdQueryParam `form:"max_id,omitempty" json:"max_id,omitempty"`

	// SinceId Return results newer than this ID
	SinceId *SinceIdQueryParam `form:"since_id,omitempty" json:"since_id,omitempty"`

	// MinId Return results immediately newer than this ID
	MinId *MinIdQueryParam `form:"min_id,omitempty" json:"min_id,omitempty"`

	// Limit Maximum number of results to return. Defaults to 20 statuses. Max 40 statuses.
	Limit *LimitQueryParam `form:"limit,omitempty" json:"limit,omitempty"`
}

GetApiV1TimelinesListListIdParams defines parameters for GetApiV1TimelinesListListId.

type GetApiV1TimelinesPublicParams

type GetApiV1TimelinesPublicParams struct {
	// Local Boolean. Show only local statuses? Defaults to false.
	Local *IsLocalParam `form:"local,omitempty" json:"local,omitempty"`

	// Remote Boolean. Show only remote statuses? Defaults to false.
	Remote *IsRemoteparam `form:"remote,omitempty" json:"remote,omitempty"`

	// OnlyMedia Filter out statuses without attachments.
	OnlyMedia *OnlyMediaQueryParam `form:"only_media,omitempty" json:"only_media,omitempty"`

	// MaxId Return results older than this ID
	MaxId *MaxIdQueryParam `form:"max_id,omitempty" json:"max_id,omitempty"`

	// SinceId Return results newer than this ID
	SinceId *SinceIdQueryParam `form:"since_id,omitempty" json:"since_id,omitempty"`

	// MinId Return results immediately newer than this ID
	MinId *MinIdQueryParam `form:"min_id,omitempty" json:"min_id,omitempty"`

	// Limit Maximum number of results to return. Defaults to 20 statuses. Max 40 statuses.
	Limit *LimitQueryParam `form:"limit,omitempty" json:"limit,omitempty"`
}

GetApiV1TimelinesPublicParams defines parameters for GetApiV1TimelinesPublic.

func (GetApiV1TimelinesPublicParams) ToTimeLineOptions

func (p GetApiV1TimelinesPublicParams) ToTimeLineOptions() mdomain.TimelineOptions

type GetApiV1TimelinesTagHashtagParams

type GetApiV1TimelinesTagHashtagParams struct {
	// Any Array of String. Return statuses that contain any of these additional tags.
	Any *ArrayAnyQueryParam `form:"any,omitempty" json:"any,omitempty"`

	// All Array of String. Return statuses that contain all of these additional tags.
	All *ArrayAllQueryParam `form:"all,omitempty" json:"all,omitempty"`

	// None Array of String. Return statuses that contain none of these additional tags.
	None *ArrayNoneQueryParam `form:"none,omitempty" json:"none,omitempty"`

	// Local Boolean. Show only local statuses? Defaults to false.
	Local *IsLocalParam `form:"local,omitempty" json:"local,omitempty"`

	// Remote Boolean. Show only remote statuses? Defaults to false.
	Remote *IsRemoteparam `form:"remote,omitempty" json:"remote,omitempty"`

	// OnlyMedia Filter out statuses without attachments.
	OnlyMedia *OnlyMediaQueryParam `form:"only_media,omitempty" json:"only_media,omitempty"`

	// MaxId Return results older than this ID
	MaxId *MaxIdQueryParam `form:"max_id,omitempty" json:"max_id,omitempty"`

	// SinceId Return results newer than this ID
	SinceId *SinceIdQueryParam `form:"since_id,omitempty" json:"since_id,omitempty"`

	// MinId Return results immediately newer than this ID
	MinId *MinIdQueryParam `form:"min_id,omitempty" json:"min_id,omitempty"`

	// Limit Maximum number of results to return. Defaults to 20 statuses. Max 40 statuses.
	Limit *LimitQueryParam `form:"limit,omitempty" json:"limit,omitempty"`
}

GetApiV1TimelinesTagHashtagParams defines parameters for GetApiV1TimelinesTagHashtag.

type HashTagPathParam

type HashTagPathParam = string

HashTagPathParam defines model for HashTagPathParam.

type IsLocalParam

type IsLocalParam = bool

IsLocalParam defines model for IsLocalParam.

type IsRemoteparam

type IsRemoteparam = bool

IsRemoteparam defines model for IsRemoteparam.

type LimitQueryParam

type LimitQueryParam = int

LimitQueryParam defines model for LimitQueryParam.

type MaxIdQueryParam

type MaxIdQueryParam = string

MaxIdQueryParam defines model for MaxIdQueryParam.

type MediaAttachment

type MediaAttachment struct {
	// Blurhash A hash computed by the BlurHash algorithm, for generating colorful preview thumbnails when media has not been downloaded yet.
	Blurhash string `json:"blurhash"`

	// Description Alternate text that describes what is in the media attachment, to be used for the visually impaired or when media attachments do not load.
	Description string `json:"description"`

	// Id The ID of the attachment in the database.
	Id   string         `json:"id"`
	Meta MediaImegeMeta `json:"meta"`

	// PreviewUrl The location of a scaled-down preview of the attachment.
	PreviewUrl string `json:"preview_url"`

	// RemoteUrl The location of the full-size original attachment on the remote website.
	RemoteUrl *string `json:"remote_url"`

	// Type The type of the attachment.
	Type MediaAttachmentType `json:"type"`

	// Url The location of the original full-size attachment.
	Url string `json:"url"`
}

MediaAttachment defines model for MediaAttachment.

type MediaAttachmentType

type MediaAttachmentType string

MediaAttachmentType The type of the attachment.

const (
	MediaAttachmentTypeAudio   MediaAttachmentType = "audio"
	MediaAttachmentTypeGif     MediaAttachmentType = "gif"
	MediaAttachmentTypeImage   MediaAttachmentType = "image"
	MediaAttachmentTypeUnknown MediaAttachmentType = "unknown"
	MediaAttachmentTypeVideo   MediaAttachmentType = "video"
)

Defines values for MediaAttachmentType.

type MediaImageForcus

type MediaImageForcus struct {
	X *float32 `json:"x,omitempty"`
	Y *float32 `json:"y,omitempty"`
}

MediaImageForcus defines model for MediaImageForcus.

type MediaImageSize

type MediaImageSize struct {
	Aspect *float32 `json:"aspect,omitempty"`
	Height *int     `json:"height,omitempty"`
	Size   *string  `json:"size,omitempty"`
	Width  *int     `json:"width,omitempty"`
}

MediaImageSize defines model for MediaImageSize.

type MediaImegeMeta

type MediaImegeMeta struct {
	Focus    *MediaImageForcus `json:"focus,omitempty"`
	Original *MediaImageSize   `json:"original,omitempty"`
	Small    *MediaImageSize   `json:"small,omitempty"`
}

MediaImegeMeta defines model for MediaImegeMeta.

type MinIdQueryParam

type MinIdQueryParam = string

MinIdQueryParam defines model for MinIdQueryParam.

type OnlyMediaQueryParam

type OnlyMediaQueryParam = bool

OnlyMediaQueryParam defines model for OnlyMediaQueryParam.

type PinnedQueryParam

type PinnedQueryParam = bool

PinnedQueryParam defines model for PinnedQueryParam.

type Poll

type Poll struct {
	// Emojis Custom emoji to be used for rendering poll options.
	Emojis []CustomEmoji `json:"emojis"`

	// Expired Is the poll currently expired?
	Expired bool `json:"expired"`

	// ExpiresAt When the poll ends.
	ExpiresAt *string `json:"expires_at"`

	// Id The ID of the poll in the database.
	Id string `json:"id"`

	// Multiple Does the poll allow multiple-choice answers?
	Multiple bool `json:"multiple"`

	// Options Possible answers for the poll.
	Options []PollOption `json:"options"`

	// OwnVotes When called with a user token, which options has the authorized user chosen? Contains an array of index values for options.
	OwnVotes *[]int `json:"own_votes,omitempty"`

	// Voted When called with a user token, has the authorized user voted?
	Voted *bool `json:"voted,omitempty"`

	// VotersCount How many unique accounts have voted on a multiple-choice poll.
	VotersCount *int `json:"voters_count"`

	// VotesCount How many votes have been received.
	VotesCount int `json:"votes_count"`
}

Poll Represents a poll attached to a status.

type PollOption

type PollOption struct {
	// Title The text value of the poll option.
	Title string `json:"title"`

	// VotesCount The total number of received votes for this option.
	VotesCount *int `json:"votes_count"`
}

PollOption defines model for PollOption.

type PreviewCard

type PreviewCard struct {
	// AuthorName The author of the original resource.
	AuthorName string `json:"author_name"`

	// AuthorUrl A link to the author of the original resource.
	AuthorUrl string `json:"author_url"`

	// Blurhash A hash computed by the BlurHash algorithm, for generating colorful preview thumbnails when media has not been downloaded yet.
	Blurhash *string `json:"blurhash"`

	// Description Description of preview.
	Description string `json:"description"`

	// EmbedUrl Used for photo embeds, instead of custom html.
	EmbedUrl string `json:"embed_url"`

	// Height Height of preview, in pixels.
	Height int `json:"height"`

	// Html HTML to be used for generating the preview card.
	Html string `json:"html"`

	// Image Preview thumbnail.
	Image *string `json:"image"`

	// ProviderName The provider of the original resource.
	ProviderName string `json:"provider_name"`

	// ProviderUrl A link to the provider of the original resource.
	ProviderUrl string `json:"provider_url"`

	// Title Title of linked resource.
	Title string `json:"title"`

	// Type The type of the preview card.
	Type PreviewCardType `json:"type"`

	// Url Location of linked resource.
	Url string `json:"url"`

	// Width Width of preview, in pixels.
	Width int `json:"width"`
}

PreviewCard Represents a rich preview card that is generated using OpenGraph tags from a URL.

type PreviewCardType

type PreviewCardType string

PreviewCardType The type of the preview card.

const (
	PreviewCardTypeLink  PreviewCardType = "link"
	PreviewCardTypePhoto PreviewCardType = "photo"
	PreviewCardTypeRich  PreviewCardType = "rich"
	PreviewCardTypeVideo PreviewCardType = "video"
)

Defines values for PreviewCardType.

type Role

type Role struct {
	// Color The hex code assigned to this role. If no hex code is assigned, the string will be empty.
	Color string `json:"color"`

	// Highlighted  Whether the role is publicly visible as a badge on user profiles.
	Highlighted bool `json:"highlighted"`

	// Id The ID of the Role in the database.
	Id int `json:"id"`

	// Name The name of the role.
	Name string `json:"name"`

	// Permissions A bitmask that represents the sum of all permissions granted to the role.
	Permissions int `json:"permissions"`
}

Role defines model for Role.

type ServerInterface

type ServerInterface interface {
	// Verify account credentials
	// (GET /api/v1/accounts/verify_credentials)
	GetApiV1AccountsVerifyCredentials(ctx echo.Context) error
	// Get account
	// (GET /api/v1/accounts/{uid})
	GetApiV1AccountsUid(ctx echo.Context, uid string) error
	// Get account’s statuses
	// (GET /api/v1/accounts/{uid}/statuses)
	GetApiV1AccountsUidStatuses(ctx echo.Context, uid string, params GetApiV1AccountsUidStatusesParams) error
	// View home timeline
	// (GET /api/v1/timelines/home)
	GetApiV1TimelinesHome(ctx echo.Context, params GetApiV1TimelinesHomeParams) error
	// View list timeline
	// (GET /api/v1/timelines/list/{lid})
	GetApiV1TimelinesListListId(ctx echo.Context, lid string, params GetApiV1TimelinesListListIdParams) error
	// View public timeline
	// (GET /api/v1/timelines/public)
	GetApiV1TimelinesPublic(ctx echo.Context, params GetApiV1TimelinesPublicParams) error
	// View hashtag timeline
	// (GET /api/v1/timelines/tag/{hashtag})
	GetApiV1TimelinesTagHashtag(ctx echo.Context, hashtag HashTagPathParam, params GetApiV1TimelinesTagHashtagParams) error
}

ServerInterface represents all server handlers.

type ServerInterfaceWrapper

type ServerInterfaceWrapper struct {
	Handler ServerInterface
}

ServerInterfaceWrapper converts echo contexts to parameters.

func (*ServerInterfaceWrapper) GetApiV1AccountsUid

func (w *ServerInterfaceWrapper) GetApiV1AccountsUid(ctx echo.Context) error

GetApiV1AccountsUid converts echo context to params.

func (*ServerInterfaceWrapper) GetApiV1AccountsUidStatuses

func (w *ServerInterfaceWrapper) GetApiV1AccountsUidStatuses(ctx echo.Context) error

GetApiV1AccountsUidStatuses converts echo context to params.

func (*ServerInterfaceWrapper) GetApiV1AccountsVerifyCredentials

func (w *ServerInterfaceWrapper) GetApiV1AccountsVerifyCredentials(ctx echo.Context) error

GetApiV1AccountsVerifyCredentials converts echo context to params.

func (*ServerInterfaceWrapper) GetApiV1TimelinesHome

func (w *ServerInterfaceWrapper) GetApiV1TimelinesHome(ctx echo.Context) error

GetApiV1TimelinesHome converts echo context to params.

func (*ServerInterfaceWrapper) GetApiV1TimelinesListListId

func (w *ServerInterfaceWrapper) GetApiV1TimelinesListListId(ctx echo.Context) error

GetApiV1TimelinesListListId converts echo context to params.

func (*ServerInterfaceWrapper) GetApiV1TimelinesPublic

func (w *ServerInterfaceWrapper) GetApiV1TimelinesPublic(ctx echo.Context) error

GetApiV1TimelinesPublic converts echo context to params.

func (*ServerInterfaceWrapper) GetApiV1TimelinesTagHashtag

func (w *ServerInterfaceWrapper) GetApiV1TimelinesTagHashtag(ctx echo.Context) error

GetApiV1TimelinesTagHashtag converts echo context to params.

type SinceIdQueryParam

type SinceIdQueryParam = string

SinceIdQueryParam defines model for SinceIdQueryParam.

type Source

type Source struct {
	// Fields Metadata about the account.
	Fields []Field `json:"fields"`

	// FollowRequestsCount The number of pending follow requests.
	FollowRequestsCount int `json:"follow_requests_count"`

	// Language The default posting language for new statuses. (ISO 639-1 language two-letter code) or empty string.
	Language string `json:"language"`

	// Note Profile bio, in plain-text instead of in HTML.
	Note string `json:"note"`

	// Privacy The default post privacy to be used for new statuses.
	Privacy SourcePrivacy `json:"privacy"`

	// Sensitive Whether new statuses should be marked sensitive by default.
	Sensitive bool `json:"sensitive"`
}

Source defines model for Source.

type SourcePrivacy

type SourcePrivacy string

SourcePrivacy The default post privacy to be used for new statuses.

const (
	SourcePrivacyDirect   SourcePrivacy = "direct"
	SourcePrivacyPrivate  SourcePrivacy = "private"
	SourcePrivacyPublic   SourcePrivacy = "public"
	SourcePrivacyUnlisted SourcePrivacy = "unlisted"
)

Defines values for SourcePrivacy.

type Status

type Status struct {
	Account     Account      `json:"account"`
	Application *Application `json:"application,omitempty"`

	// Bookmarked If the current token has an authorized user: Have you bookmarked this status?
	Bookmarked *bool       `json:"bookmarked,omitempty"`
	Card       Status_Card `json:"card"`

	// Content HTML-encoded status content.
	Content string `json:"content"`

	// CreatedAt The date when this status was created.
	CreatedAt string `json:"created_at"`

	// EditedAt Timestamp of when the status was last edited.
	EditedAt *string `json:"edited_at"`

	// Emojis Custom emoji to be used when rendering status content.
	Emojis []CustomEmoji `json:"emojis"`

	// Favourited If the current token has an authorized user: Have you favourited this status?
	Favourited *bool `json:"favourited,omitempty"`

	// FavouritesCount How many favourites this status has received.
	FavouritesCount int `json:"favourites_count"`

	// Filtered If the current token has an authorized user: The filter and keywords that matched this status.
	Filtered *[]FilterResult `json:"filtered,omitempty"`

	// Id ID of the status in the database.
	Id string `json:"id"`

	// InReplyToAccountId ID of the account that authored the status being replied to.
	InReplyToAccountId *string `json:"in_reply_to_account_id"`

	// InReplyToId ID of the status being replied to.
	InReplyToId *string `json:"in_reply_to_id"`

	// Language Primary language of this status.
	Language *string `json:"language"`

	// MediaAttachments Media that is attached to this status.
	MediaAttachments []MediaAttachment `json:"media_attachments"`

	// Mentions Mentions of users within the status content.
	Mentions []StatusMention `json:"mentions"`

	// Muted If the current token has an authorized user: Have you muted notifications for this status’s conversation?
	Muted *bool `json:"muted,omitempty"`

	// Pinned If the current token has an authorized user: Have you pinned this status? Only appears if the status is pinnable.
	Pinned *bool       `json:"pinned,omitempty"`
	Poll   Status_Poll `json:"poll"`

	// Reblog The status being reblogged.
	Reblog Status_Reblog `json:"reblog"`

	// Reblogged If the current token has an authorized user: Have you boosted this status?
	Reblogged *bool `json:"reblogged,omitempty"`

	// ReblogsCount How many boosts this status has received.
	ReblogsCount int `json:"reblogs_count"`

	// RepliesCount How many replies this status has received.
	RepliesCount int `json:"replies_count"`

	// Sensitive Is this status marked as sensitive content?
	Sensitive bool `json:"sensitive"`

	// SpoilerText Subject or summary line, below which status content is collapsed until expanded.
	SpoilerText string `json:"spoiler_text"`

	// Tags Hashtags used within the status content.
	Tags []StatusTag `json:"tags"`

	// Text Plain-text source of a status. Returned instead of content when status is deleted, so the user may redraft from the source text without the client having to reverse-engineer the original text from the HTML content.
	Text *string `json:"text"`

	// Uri URI of the status used for federation.
	Uri string `json:"uri"`

	// Url A link to the status’s HTML representation.
	Url *string `json:"url"`

	// Visibility Visibility of this status.
	Visibility StatusVisibility `json:"visibility"`
}

Status defines model for Status.

type StatusCard1

type StatusCard1 = map[string]interface{}

StatusCard1 defines model for .

type StatusMention

type StatusMention struct {
	// Acct The webfinger acct: URI of the mentioned user. Equivalent to username for local users, or username@domain for remote users.
	Acct string `json:"acct"`

	// Id The account ID of the mentioned user.
	Id string `json:"id"`

	// Url The location of the mentioned user’s profile.
	Url string `json:"url"`

	// Username The username of the mentioned user.
	Username string `json:"username"`
}

StatusMention defines model for StatusMention.

type StatusOrign

type StatusOrign struct {
	Account     Account      `json:"account"`
	Application *Application `json:"application,omitempty"`

	// Bookmarked If the current token has an authorized user: Have you bookmarked this status?
	Bookmarked *bool            `json:"bookmarked,omitempty"`
	Card       StatusOrign_Card `json:"card"`

	// Content HTML-encoded status content.
	Content string `json:"content"`

	// CreatedAt The date when this status was created.
	CreatedAt string `json:"created_at"`

	// EditedAt Timestamp of when the status was last edited.
	EditedAt *string `json:"edited_at"`

	// Emojis Custom emoji to be used when rendering status content.
	Emojis []CustomEmoji `json:"emojis"`

	// Favourited If the current token has an authorized user: Have you favourited this status?
	Favourited *bool `json:"favourited,omitempty"`

	// FavouritesCount How many favourites this status has received.
	FavouritesCount int `json:"favourites_count"`

	// Filtered If the current token has an authorized user: The filter and keywords that matched this status.
	Filtered *[]FilterResult `json:"filtered,omitempty"`

	// Id ID of the status in the database.
	Id string `json:"id"`

	// InReplyToAccountId ID of the account that authored the status being replied to.
	InReplyToAccountId *string `json:"in_reply_to_account_id"`

	// InReplyToId ID of the status being replied to.
	InReplyToId *string `json:"in_reply_to_id"`

	// Language Primary language of this status.
	Language *string `json:"language"`

	// MediaAttachments Media that is attached to this status.
	MediaAttachments []MediaAttachment `json:"media_attachments"`

	// Mentions Mentions of users within the status content.
	Mentions []StatusMention `json:"mentions"`

	// Muted If the current token has an authorized user: Have you muted notifications for this status’s conversation?
	Muted *bool `json:"muted,omitempty"`

	// Pinned If the current token has an authorized user: Have you pinned this status? Only appears if the status is pinnable.
	Pinned *bool            `json:"pinned,omitempty"`
	Poll   StatusOrign_Poll `json:"poll"`

	// Reblogged If the current token has an authorized user: Have you boosted this status?
	Reblogged *bool `json:"reblogged,omitempty"`

	// ReblogsCount How many boosts this status has received.
	ReblogsCount int `json:"reblogs_count"`

	// RepliesCount How many replies this status has received.
	RepliesCount int `json:"replies_count"`

	// Sensitive Is this status marked as sensitive content?
	Sensitive bool `json:"sensitive"`

	// SpoilerText Subject or summary line, below which status content is collapsed until expanded.
	SpoilerText string `json:"spoiler_text"`

	// Tags Hashtags used within the status content.
	Tags []StatusTag `json:"tags"`

	// Text Plain-text source of a status. Returned instead of content when status is deleted, so the user may redraft from the source text without the client having to reverse-engineer the original text from the HTML content.
	Text *string `json:"text"`

	// Uri URI of the status used for federation.
	Uri string `json:"uri"`

	// Url A link to the status’s HTML representation.
	Url *string `json:"url"`

	// Visibility Visibility of this status.
	Visibility StatusOrignVisibility `json:"visibility"`
}

StatusOrign Represents a status posted by an account.

type StatusOrignCard1

type StatusOrignCard1 = map[string]interface{}

StatusOrignCard1 defines model for .

type StatusOrignPoll1

type StatusOrignPoll1 = map[string]interface{}

StatusOrignPoll1 defines model for .

type StatusOrignVisibility

type StatusOrignVisibility string

StatusOrignVisibility Visibility of this status.

const (
	StatusOrignVisibilityDirect   StatusOrignVisibility = "direct"
	StatusOrignVisibilityPrivate  StatusOrignVisibility = "private"
	StatusOrignVisibilityPublic   StatusOrignVisibility = "public"
	StatusOrignVisibilityUnlisted StatusOrignVisibility = "unlisted"
)

Defines values for StatusOrignVisibility.

type StatusOrign_Card

type StatusOrign_Card struct {
	// contains filtered or unexported fields
}

StatusOrign_Card defines model for StatusOrign.Card.

func (StatusOrign_Card) AsPreviewCard

func (t StatusOrign_Card) AsPreviewCard() (PreviewCard, error)

AsPreviewCard returns the union data inside the StatusOrign_Card as a PreviewCard

func (StatusOrign_Card) AsStatusOrignCard1

func (t StatusOrign_Card) AsStatusOrignCard1() (StatusOrignCard1, error)

AsStatusOrignCard1 returns the union data inside the StatusOrign_Card as a StatusOrignCard1

func (*StatusOrign_Card) FromPreviewCard

func (t *StatusOrign_Card) FromPreviewCard(v PreviewCard) error

FromPreviewCard overwrites any union data inside the StatusOrign_Card as the provided PreviewCard

func (*StatusOrign_Card) FromStatusOrignCard1

func (t *StatusOrign_Card) FromStatusOrignCard1(v StatusOrignCard1) error

FromStatusOrignCard1 overwrites any union data inside the StatusOrign_Card as the provided StatusOrignCard1

func (StatusOrign_Card) MarshalJSON

func (t StatusOrign_Card) MarshalJSON() ([]byte, error)

func (*StatusOrign_Card) MergePreviewCard

func (t *StatusOrign_Card) MergePreviewCard(v PreviewCard) error

MergePreviewCard performs a merge with any union data inside the StatusOrign_Card, using the provided PreviewCard

func (*StatusOrign_Card) MergeStatusOrignCard1

func (t *StatusOrign_Card) MergeStatusOrignCard1(v StatusOrignCard1) error

MergeStatusOrignCard1 performs a merge with any union data inside the StatusOrign_Card, using the provided StatusOrignCard1

func (*StatusOrign_Card) UnmarshalJSON

func (t *StatusOrign_Card) UnmarshalJSON(b []byte) error

type StatusOrign_Poll

type StatusOrign_Poll struct {
	// contains filtered or unexported fields
}

StatusOrign_Poll defines model for StatusOrign.Poll.

func (StatusOrign_Poll) AsPoll

func (t StatusOrign_Poll) AsPoll() (Poll, error)

AsPoll returns the union data inside the StatusOrign_Poll as a Poll

func (StatusOrign_Poll) AsStatusOrignPoll1

func (t StatusOrign_Poll) AsStatusOrignPoll1() (StatusOrignPoll1, error)

AsStatusOrignPoll1 returns the union data inside the StatusOrign_Poll as a StatusOrignPoll1

func (*StatusOrign_Poll) FromPoll

func (t *StatusOrign_Poll) FromPoll(v Poll) error

FromPoll overwrites any union data inside the StatusOrign_Poll as the provided Poll

func (*StatusOrign_Poll) FromStatusOrignPoll1

func (t *StatusOrign_Poll) FromStatusOrignPoll1(v StatusOrignPoll1) error

FromStatusOrignPoll1 overwrites any union data inside the StatusOrign_Poll as the provided StatusOrignPoll1

func (StatusOrign_Poll) MarshalJSON

func (t StatusOrign_Poll) MarshalJSON() ([]byte, error)

func (*StatusOrign_Poll) MergePoll

func (t *StatusOrign_Poll) MergePoll(v Poll) error

MergePoll performs a merge with any union data inside the StatusOrign_Poll, using the provided Poll

func (*StatusOrign_Poll) MergeStatusOrignPoll1

func (t *StatusOrign_Poll) MergeStatusOrignPoll1(v StatusOrignPoll1) error

MergeStatusOrignPoll1 performs a merge with any union data inside the StatusOrign_Poll, using the provided StatusOrignPoll1

func (*StatusOrign_Poll) UnmarshalJSON

func (t *StatusOrign_Poll) UnmarshalJSON(b []byte) error

type StatusPoll1

type StatusPoll1 = map[string]interface{}

StatusPoll1 defines model for .

type StatusReblog

type StatusReblog struct {
	Account     Account      `json:"account"`
	Application *Application `json:"application,omitempty"`

	// Bookmarked If the current token has an authorized user: Have you bookmarked this status?
	Bookmarked *bool             `json:"bookmarked,omitempty"`
	Card       StatusReblog_Card `json:"card"`

	// Content HTML-encoded status content.
	Content string `json:"content"`

	// CreatedAt The date when this status was created.
	CreatedAt string `json:"created_at"`

	// EditedAt Timestamp of when the status was last edited.
	EditedAt *string `json:"edited_at"`

	// Emojis Custom emoji to be used when rendering status content.
	Emojis []CustomEmoji `json:"emojis"`

	// Favourited If the current token has an authorized user: Have you favourited this status?
	Favourited *bool `json:"favourited,omitempty"`

	// FavouritesCount How many favourites this status has received.
	FavouritesCount int `json:"favourites_count"`

	// Filtered If the current token has an authorized user: The filter and keywords that matched this status.
	Filtered *[]FilterResult `json:"filtered,omitempty"`

	// Id ID of the status in the database.
	Id string `json:"id"`

	// InReplyToAccountId ID of the account that authored the status being replied to.
	InReplyToAccountId *string `json:"in_reply_to_account_id"`

	// InReplyToId ID of the status being replied to.
	InReplyToId *string `json:"in_reply_to_id"`

	// Language Primary language of this status.
	Language *string `json:"language"`

	// MediaAttachments Media that is attached to this status.
	MediaAttachments []MediaAttachment `json:"media_attachments"`

	// Mentions Mentions of users within the status content.
	Mentions []StatusMention `json:"mentions"`

	// Muted If the current token has an authorized user: Have you muted notifications for this status’s conversation?
	Muted *bool `json:"muted,omitempty"`

	// Pinned If the current token has an authorized user: Have you pinned this status? Only appears if the status is pinnable.
	Pinned *bool                   `json:"pinned,omitempty"`
	Poll   StatusReblog_Poll       `json:"poll"`
	Reblog *map[string]interface{} `json:"reblog"`

	// Reblogged If the current token has an authorized user: Have you boosted this status?
	Reblogged *bool `json:"reblogged,omitempty"`

	// ReblogsCount How many boosts this status has received.
	ReblogsCount int `json:"reblogs_count"`

	// RepliesCount How many replies this status has received.
	RepliesCount int `json:"replies_count"`

	// Sensitive Is this status marked as sensitive content?
	Sensitive bool `json:"sensitive"`

	// SpoilerText Subject or summary line, below which status content is collapsed until expanded.
	SpoilerText string `json:"spoiler_text"`

	// Tags Hashtags used within the status content.
	Tags []StatusTag `json:"tags"`

	// Text Plain-text source of a status. Returned instead of content when status is deleted, so the user may redraft from the source text without the client having to reverse-engineer the original text from the HTML content.
	Text *string `json:"text"`

	// Uri URI of the status used for federation.
	Uri string `json:"uri"`

	// Url A link to the status’s HTML representation.
	Url *string `json:"url"`

	// Visibility Visibility of this status.
	Visibility StatusReblogVisibility `json:"visibility"`
}

StatusReblog defines model for StatusReblog.

type StatusReblog1

type StatusReblog1 = map[string]interface{}

StatusReblog1 defines model for .

type StatusReblogCard1

type StatusReblogCard1 = map[string]interface{}

StatusReblogCard1 defines model for .

type StatusReblogPoll1

type StatusReblogPoll1 = map[string]interface{}

StatusReblogPoll1 defines model for .

type StatusReblogVisibility

type StatusReblogVisibility string

StatusReblogVisibility Visibility of this status.

const (
	Direct   StatusReblogVisibility = "direct"
	Private  StatusReblogVisibility = "private"
	Public   StatusReblogVisibility = "public"
	Unlisted StatusReblogVisibility = "unlisted"
)

Defines values for StatusReblogVisibility.

type StatusReblog_Card

type StatusReblog_Card struct {
	// contains filtered or unexported fields
}

StatusReblog_Card defines model for StatusReblog.Card.

func (StatusReblog_Card) AsPreviewCard

func (t StatusReblog_Card) AsPreviewCard() (PreviewCard, error)

AsPreviewCard returns the union data inside the StatusReblog_Card as a PreviewCard

func (StatusReblog_Card) AsStatusReblogCard1

func (t StatusReblog_Card) AsStatusReblogCard1() (StatusReblogCard1, error)

AsStatusReblogCard1 returns the union data inside the StatusReblog_Card as a StatusReblogCard1

func (*StatusReblog_Card) FromPreviewCard

func (t *StatusReblog_Card) FromPreviewCard(v PreviewCard) error

FromPreviewCard overwrites any union data inside the StatusReblog_Card as the provided PreviewCard

func (*StatusReblog_Card) FromStatusReblogCard1

func (t *StatusReblog_Card) FromStatusReblogCard1(v StatusReblogCard1) error

FromStatusReblogCard1 overwrites any union data inside the StatusReblog_Card as the provided StatusReblogCard1

func (StatusReblog_Card) MarshalJSON

func (t StatusReblog_Card) MarshalJSON() ([]byte, error)

func (*StatusReblog_Card) MergePreviewCard

func (t *StatusReblog_Card) MergePreviewCard(v PreviewCard) error

MergePreviewCard performs a merge with any union data inside the StatusReblog_Card, using the provided PreviewCard

func (*StatusReblog_Card) MergeStatusReblogCard1

func (t *StatusReblog_Card) MergeStatusReblogCard1(v StatusReblogCard1) error

MergeStatusReblogCard1 performs a merge with any union data inside the StatusReblog_Card, using the provided StatusReblogCard1

func (*StatusReblog_Card) UnmarshalJSON

func (t *StatusReblog_Card) UnmarshalJSON(b []byte) error

type StatusReblog_Poll

type StatusReblog_Poll struct {
	// contains filtered or unexported fields
}

StatusReblog_Poll defines model for StatusReblog.Poll.

func (StatusReblog_Poll) AsPoll

func (t StatusReblog_Poll) AsPoll() (Poll, error)

AsPoll returns the union data inside the StatusReblog_Poll as a Poll

func (StatusReblog_Poll) AsStatusReblogPoll1

func (t StatusReblog_Poll) AsStatusReblogPoll1() (StatusReblogPoll1, error)

AsStatusReblogPoll1 returns the union data inside the StatusReblog_Poll as a StatusReblogPoll1

func (*StatusReblog_Poll) FromPoll

func (t *StatusReblog_Poll) FromPoll(v Poll) error

FromPoll overwrites any union data inside the StatusReblog_Poll as the provided Poll

func (*StatusReblog_Poll) FromStatusReblogPoll1

func (t *StatusReblog_Poll) FromStatusReblogPoll1(v StatusReblogPoll1) error

FromStatusReblogPoll1 overwrites any union data inside the StatusReblog_Poll as the provided StatusReblogPoll1

func (StatusReblog_Poll) MarshalJSON

func (t StatusReblog_Poll) MarshalJSON() ([]byte, error)

func (*StatusReblog_Poll) MergePoll

func (t *StatusReblog_Poll) MergePoll(v Poll) error

MergePoll performs a merge with any union data inside the StatusReblog_Poll, using the provided Poll

func (*StatusReblog_Poll) MergeStatusReblogPoll1

func (t *StatusReblog_Poll) MergeStatusReblogPoll1(v StatusReblogPoll1) error

MergeStatusReblogPoll1 performs a merge with any union data inside the StatusReblog_Poll, using the provided StatusReblogPoll1

func (*StatusReblog_Poll) UnmarshalJSON

func (t *StatusReblog_Poll) UnmarshalJSON(b []byte) error

type StatusTag

type StatusTag struct {
	// Name The value of the hashtag after the # sign.
	Name string `json:"name"`

	// Url A link to the hashtag on the instance.
	Url string `json:"url"`
}

StatusTag defines model for StatusTag.

type StatusVisibility

type StatusVisibility string

StatusVisibility Visibility of this status.

const (
	StatusVisibilityDirect   StatusVisibility = "direct"
	StatusVisibilityPrivate  StatusVisibility = "private"
	StatusVisibilityPublic   StatusVisibility = "public"
	StatusVisibilityUnlisted StatusVisibility = "unlisted"
)

Defines values for StatusVisibility.

type Status_Card

type Status_Card struct {
	// contains filtered or unexported fields
}

Status_Card defines model for Status.Card.

func (Status_Card) AsPreviewCard

func (t Status_Card) AsPreviewCard() (PreviewCard, error)

AsPreviewCard returns the union data inside the Status_Card as a PreviewCard

func (Status_Card) AsStatusCard1

func (t Status_Card) AsStatusCard1() (StatusCard1, error)

AsStatusCard1 returns the union data inside the Status_Card as a StatusCard1

func (*Status_Card) FromPreviewCard

func (t *Status_Card) FromPreviewCard(v PreviewCard) error

FromPreviewCard overwrites any union data inside the Status_Card as the provided PreviewCard

func (*Status_Card) FromStatusCard1

func (t *Status_Card) FromStatusCard1(v StatusCard1) error

FromStatusCard1 overwrites any union data inside the Status_Card as the provided StatusCard1

func (Status_Card) MarshalJSON

func (t Status_Card) MarshalJSON() ([]byte, error)

func (*Status_Card) MergePreviewCard

func (t *Status_Card) MergePreviewCard(v PreviewCard) error

MergePreviewCard performs a merge with any union data inside the Status_Card, using the provided PreviewCard

func (*Status_Card) MergeStatusCard1

func (t *Status_Card) MergeStatusCard1(v StatusCard1) error

MergeStatusCard1 performs a merge with any union data inside the Status_Card, using the provided StatusCard1

func (*Status_Card) UnmarshalJSON

func (t *Status_Card) UnmarshalJSON(b []byte) error

type Status_Poll

type Status_Poll struct {
	// contains filtered or unexported fields
}

Status_Poll defines model for Status.Poll.

func (Status_Poll) AsPoll

func (t Status_Poll) AsPoll() (Poll, error)

AsPoll returns the union data inside the Status_Poll as a Poll

func (Status_Poll) AsStatusPoll1

func (t Status_Poll) AsStatusPoll1() (StatusPoll1, error)

AsStatusPoll1 returns the union data inside the Status_Poll as a StatusPoll1

func (*Status_Poll) FromPoll

func (t *Status_Poll) FromPoll(v Poll) error

FromPoll overwrites any union data inside the Status_Poll as the provided Poll

func (*Status_Poll) FromStatusPoll1

func (t *Status_Poll) FromStatusPoll1(v StatusPoll1) error

FromStatusPoll1 overwrites any union data inside the Status_Poll as the provided StatusPoll1

func (Status_Poll) MarshalJSON

func (t Status_Poll) MarshalJSON() ([]byte, error)

func (*Status_Poll) MergePoll

func (t *Status_Poll) MergePoll(v Poll) error

MergePoll performs a merge with any union data inside the Status_Poll, using the provided Poll

func (*Status_Poll) MergeStatusPoll1

func (t *Status_Poll) MergeStatusPoll1(v StatusPoll1) error

MergeStatusPoll1 performs a merge with any union data inside the Status_Poll, using the provided StatusPoll1

func (*Status_Poll) UnmarshalJSON

func (t *Status_Poll) UnmarshalJSON(b []byte) error

type Status_Reblog

type Status_Reblog struct {
	// contains filtered or unexported fields
}

Status_Reblog The status being reblogged.

func (Status_Reblog) AsStatusReblog

func (t Status_Reblog) AsStatusReblog() (StatusReblog, error)

AsStatusReblog returns the union data inside the Status_Reblog as a StatusReblog

func (Status_Reblog) AsStatusReblog1

func (t Status_Reblog) AsStatusReblog1() (StatusReblog1, error)

AsStatusReblog1 returns the union data inside the Status_Reblog as a StatusReblog1

func (*Status_Reblog) FromStatusReblog

func (t *Status_Reblog) FromStatusReblog(v StatusReblog) error

FromStatusReblog overwrites any union data inside the Status_Reblog as the provided StatusReblog

func (*Status_Reblog) FromStatusReblog1

func (t *Status_Reblog) FromStatusReblog1(v StatusReblog1) error

FromStatusReblog1 overwrites any union data inside the Status_Reblog as the provided StatusReblog1

func (Status_Reblog) MarshalJSON

func (t Status_Reblog) MarshalJSON() ([]byte, error)

func (*Status_Reblog) MergeStatusReblog

func (t *Status_Reblog) MergeStatusReblog(v StatusReblog) error

MergeStatusReblog performs a merge with any union data inside the Status_Reblog, using the provided StatusReblog

func (*Status_Reblog) MergeStatusReblog1

func (t *Status_Reblog) MergeStatusReblog1(v StatusReblog1) error

MergeStatusReblog1 performs a merge with any union data inside the Status_Reblog, using the provided StatusReblog1

func (*Status_Reblog) UnmarshalJSON

func (t *Status_Reblog) UnmarshalJSON(b []byte) error

type TaggedQueryParam

type TaggedQueryParam = string

TaggedQueryParam defines model for TaggedQueryParam.

Jump to

Keyboard shortcuts

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