ap

package
v0.3.4 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2024 License: MIT Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

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

func NewHandler

func NewHandler(service *Service) Handler

func (Handler) Inbox

func (h Handler) Inbox(c echo.Context) error

func (Handler) NodeInfo

func (h Handler) NodeInfo(c echo.Context) error

NodeInfo handles nodeinfo requests

func (Handler) NodeInfoWellKnown

func (h Handler) NodeInfoWellKnown(c echo.Context) error

func (Handler) Note

func (h Handler) Note(c echo.Context) error

func (Handler) User

func (h Handler) User(c echo.Context) error

func (Handler) WebFinger

func (h Handler) WebFinger(c echo.Context) error

type Service

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

func NewService

func NewService(
	store *store.Store,
	client client.Client,
	apclient *apclient.ApClient,
	bridge *bridge.Service,
	info types.NodeInfo,
	config types.ApConfig,
) *Service

func (*Service) GetNoteWebURL

func (s *Service) GetNoteWebURL(ctx context.Context, id string) (string, error)

func (*Service) GetUserWebURL

func (s *Service) GetUserWebURL(ctx context.Context, id string) (string, error)

func (*Service) Inbox

func (s *Service) Inbox(ctx context.Context, object types.ApObject, inboxId string) (types.ApObject, error)

func (*Service) NodeInfo

func (s *Service) NodeInfo(ctx context.Context) (types.NodeInfo, error)

func (*Service) NodeInfoWellKnown

func (s *Service) NodeInfoWellKnown(ctx context.Context) (types.WellKnown, error)

func (*Service) Note

func (s *Service) Note(ctx context.Context, id string) (types.ApObject, error)

func (*Service) User

func (s *Service) User(ctx context.Context, id string) (types.ApObject, error)

func (*Service) WebFinger

func (s *Service) WebFinger(ctx context.Context, resource string) (types.WebFinger, error)

Jump to

Keyboard shortcuts

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