api

package
v0.0.0-...-37004a0 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2024 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrWrongURI    = errutil.NewError(errutil.TypeBadRequest, "uri of actor and host do not match")
	ErrWrongFormat = errutil.NewError(errutil.TypeBadRequest, "no acct: in resource")
)

api errors

Functions

This section is empty.

Types

type API

type API struct {
	*chi.Mux
	// contains filtered or unexported fields
}

func ProvideAPI

func ProvideAPI(lc fx.Lifecycle, config config.Config, logger *log.Logger, pubsub *pubsub.Client, activitypub *activitypub.Handler, feed *feed.Handler) *API

func (*API) AddNewFeed

func (a *API) AddNewFeed() http.HandlerFunc

func (*API) FollowersEndpoint

func (a *API) FollowersEndpoint() http.HandlerFunc

func (*API) FollowingEndpoint

func (a *API) FollowingEndpoint() http.HandlerFunc

func (*API) GetFeed

func (a *API) GetFeed() http.HandlerFunc

func (*API) GetFeedWithUsername

func (a *API) GetFeedWithUsername() http.HandlerFunc

func (*API) ListFeedStatus

func (a *API) ListFeedStatus() http.HandlerFunc

func (*API) ListFeeds

func (a *API) ListFeeds() http.HandlerFunc

func (*API) ReceiveActivity

func (a *API) ReceiveActivity() http.HandlerFunc

func (*API) RedirectUser

func (a *API) RedirectUser() http.HandlerFunc

Redirect user is a workaround to link from a mastodoan instance to the web app

func (*API) ServeRobotstxt

func (a *API) ServeRobotstxt() http.HandlerFunc

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

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