api

package
v0.11.0-rc3 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2023 License: AGPL-3.0 Imports: 40 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(db db.DB, 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)

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)

Jump to

Keyboard shortcuts

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