api

package
v0.17.2 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2024 License: AGPL-3.0 Imports: 55 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ActivityPub added in v0.7.0

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

func NewActivityPub added in v0.7.0

func NewActivityPub(db db.DB, p *processing.Processor) *ActivityPub

func (*ActivityPub) Route added in v0.7.0

func (a *ActivityPub) Route(r *router.Router, m ...gin.HandlerFunc)

func (*ActivityPub) RoutePublicKey added in v0.7.0

func (a *ActivityPub) RoutePublicKey(r *router.Router, m ...gin.HandlerFunc)

Public key endpoint requires different middleware + cache policies from other AP endpoints.

type Auth added in v0.7.0

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

func NewAuth added in v0.7.0

func NewAuth(db db.DB, p *processing.Processor, idp oidc.IDP, routerSession *gtsmodel.RouterSession, sessionName string) *Auth

func (*Auth) Route added in v0.7.0

func (a *Auth) Route(r *router.Router, m ...gin.HandlerFunc)

Route attaches 'auth' and 'oauth' groups to the given router.

type Client added in v0.7.0

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

func NewClient added in v0.7.0

func NewClient(state *state.State, p *processing.Processor) *Client

func (*Client) Route added in v0.7.0

func (c *Client) Route(r *router.Router, m ...gin.HandlerFunc)

type Fileserver added in v0.7.0

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

func NewFileserver added in v0.7.0

func NewFileserver(p *processing.Processor) *Fileserver

func (*Fileserver) Route added in v0.7.0

func (f *Fileserver) Route(
	r *router.Router,
	m ...gin.HandlerFunc,
)

Route the "main" fileserver group that handles everything except emojis.

func (*Fileserver) RouteEmojis added in v0.14.0

func (f *Fileserver) RouteEmojis(
	r *router.Router,
	instanceAcctID string,
	m ...gin.HandlerFunc,
)

Route the "emojis" fileserver group to handle emojis specifically.

instanceAccount ID is required because that is the ID under which all emoji files are stored, and from which all emoji file requests are therefore served.

type Health added in v0.15.0

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

func NewHealth added in v0.15.0

func NewHealth(readyF func(context.Context) error) *Health

func (*Health) Route added in v0.15.0

func (mt *Health) Route(r *router.Router, m ...gin.HandlerFunc)

type Metrics added in v0.13.0

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

func NewMetrics added in v0.13.0

func NewMetrics() *Metrics

func (*Metrics) Route added in v0.13.0

func (mt *Metrics) Route(r *router.Router, m ...gin.HandlerFunc)

type NodeInfo added in v0.7.0

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

func NewNodeInfo added in v0.7.0

func NewNodeInfo(p *processing.Processor) *NodeInfo

func (*NodeInfo) Route added in v0.7.0

func (w *NodeInfo) Route(r *router.Router, m ...gin.HandlerFunc)

type WellKnown added in v0.7.0

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

func NewWellKnown added in v0.7.0

func NewWellKnown(p *processing.Processor) *WellKnown

func (*WellKnown) Route added in v0.7.0

func (w *WellKnown) Route(r *router.Router, m ...gin.HandlerFunc)

Directories

Path Synopsis
activitypub
client
admin
AccountsGETHandlerV1 swagger:operation GET /api/v1/admin/accounts adminAccountsGetV1
AccountsGETHandlerV1 swagger:operation GET /api/v1/admin/accounts adminAccountsGetV1
wellknown

Jump to

Keyboard shortcuts

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