controller

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2026 License: Unlicense Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const NodeInfoPath = "/nodeinfo/2.0"

Variables

This section is empty.

Functions

func BotsMiddleware

func BotsMiddleware(next echo.HandlerFunc) echo.HandlerFunc

Types

type ActivityBinder

type ActivityBinder struct{}

func (ActivityBinder) Bind

func (ab ActivityBinder) Bind(c *echo.Context, itemPtr *activitypub.Item) error

type BotController

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

func NewBotController

func NewBotController(buc usecase.IBotUseCase) *BotController

func (BotController) GetByUserName

func (bc BotController) GetByUserName(c *echo.Context) error

func (BotController) GetEndPoints

func (bc BotController) GetEndPoints(c *echo.Context) error

func (BotController) GetOutBox

func (bc BotController) GetOutBox(c *echo.Context) error

func (BotController) PostInBox

func (bc BotController) PostInBox(c *echo.Context) error

type HostMetaData added in v0.2.0

type HostMetaData struct {
	XMLName xml.Name     `xml:"XRD"`
	Xmlns   string       `xml:"xmlns,attr"`
	Link    HostMetaLink `xml:"Link"`
}
type HostMetaLink struct {
	Rel      string `xml:"rel,attr"`
	Type     string `xml:"type,attr"`
	Template string `xml:"template,attr"`
}

type NodeInfoController

type NodeInfoController struct{}

func NewNodeInfoController

func NewNodeInfoController() *NodeInfoController

func (NodeInfoController) GetNodeInfoContent

func (nic NodeInfoController) GetNodeInfoContent(c *echo.Context) error

func (NodeInfoController) GetNodeInfoDiscover added in v0.2.0

func (nic NodeInfoController) GetNodeInfoDiscover(c *echo.Context) error

type WellKnownController

type WellKnownController struct{}

func NewWellKnownController

func NewWellKnownController() *WellKnownController

func (WellKnownController) GetHostMeta added in v0.2.0

func (wkc WellKnownController) GetHostMeta(c *echo.Context) error

func (WellKnownController) GetWebfinger

func (wkc WellKnownController) GetWebfinger(c *echo.Context) error

Jump to

Keyboard shortcuts

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