federation

package
v0.7.2 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2023 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FedController

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

FedController holds the dependencies for the federation handler

func NewFedController

func NewFedController(log zerolog.Logger, storage *sqlx.DB) *FedController

NewFedController returns a new FedController

func (*FedController) Follow

func (fc *FedController) Follow(c *fiber.Ctx) error

Follow handles incoming follow requests

func (*FedController) In

func (fc *FedController) In(c *fiber.Ctx) error

In handles incoming messages, then routes them to the appropriate handler

func (*FedController) Unknown

func (fc *FedController) Unknown(c *fiber.Ctx) error

Unknown handles unknown activity types

type FedHandler

type FedHandler interface {
	Follow(c *fiber.Ctx) error
	AcceptFollow(c *fiber.Ctx) error
	RejectFollow(c *fiber.Ctx) error
	Unfollow(c *fiber.Ctx) error
}

FedHandler is the interface for the federation handler

Jump to

Keyboard shortcuts

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