Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConversionHandler ¶
type ConversionHandler struct {
// contains filtered or unexported fields
}
func (*ConversionHandler) FollowToAS ¶
func (ch *ConversionHandler) FollowToAS(ctx context.Context, req *member.FollowBlockRequest) (*activitypub.Follow, error)
TODO: create an actual implementation
func (*ConversionHandler) MemberToActor ¶
func (ch *ConversionHandler) MemberToActor(c *fiber.Ctx, memberData *member.Member) ([]byte, error)
MemberToActor converts a member to an ActivityPub actor
type FedController ¶
type FedController struct { Converter // contains filtered or unexported fields }
FedController holds the dependencies for the federation handler
func NewController ¶
func NewController(log *zerolog.Logger, storage *pgxpool.Pool, memberStorage member.Storer) *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
Click to show internal directories.
Click to hide internal directories.