Documentation ¶
Index ¶
- func AccountHandler(opts *AccountHandlerOptions) (http.Handler, error)
- func FollowersHandler(opts *FollowersHandlerOptions) (http.Handler, error)
- func FollowingHandler(opts *FollowingHandlerOptions) (http.Handler, error)
- func IconHandler(opts *IconHandlerOptions) (http.Handler, error)
- func InboxPostHandler(opts *InboxPostHandlerOptions) (http.Handler, error)
- func IsActivityStreamRequest(req *http.Request, header string) bool
- func LoggerWithRequest(req *http.Request, logger *slog.Logger) *slog.Logger
- func OutboxGetHandler(opts *OutboxGetHandlerOptions) (http.Handler, error)
- func OutboxPostHandler(opts *OutboxPostHandlerOptions) (http.Handler, error)
- func PostHandler(opts *PostHandlerOptions) (http.Handler, error)
- func ReadUserIP(req *http.Request) string
- func WebfingerHandler(opts *WebfingerHandlerOptions) (http.Handler, error)
- type AccountHandlerOptions
- type AccountTemplateVars
- type FollowersHandlerOptions
- type FollowingHandlerOptions
- type IconHandlerOptions
- type InboxPostHandlerOptions
- type OutboxGetHandlerOptions
- type OutboxPostHandlerOptions
- type PostHandlerOptions
- type PostHandlerVars
- type WebfingerHandlerOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AccountHandler ¶
func AccountHandler(opts *AccountHandlerOptions) (http.Handler, error)
func FollowersHandler ¶
func FollowersHandler(opts *FollowersHandlerOptions) (http.Handler, error)
func FollowingHandler ¶
func FollowingHandler(opts *FollowingHandlerOptions) (http.Handler, error)
func IconHandler ¶
func IconHandler(opts *IconHandlerOptions) (http.Handler, error)
func InboxPostHandler ¶
func InboxPostHandler(opts *InboxPostHandlerOptions) (http.Handler, error)
func LoggerWithRequest ¶
func OutboxGetHandler ¶
func OutboxGetHandler(opts *OutboxGetHandlerOptions) (http.Handler, error)
func OutboxPostHandler ¶
func OutboxPostHandler(opts *OutboxPostHandlerOptions) (http.Handler, error)
func PostHandler ¶
func PostHandler(opts *PostHandlerOptions) (http.Handler, error)
func ReadUserIP ¶
func WebfingerHandler ¶
func WebfingerHandler(opts *WebfingerHandlerOptions) (http.Handler, error)
Types ¶
type AccountHandlerOptions ¶
type AccountTemplateVars ¶
type FollowersHandlerOptions ¶
type FollowingHandlerOptions ¶
type IconHandlerOptions ¶
type InboxPostHandlerOptions ¶
type InboxPostHandlerOptions struct { AccountsDatabase activitypub.AccountsDatabase FollowersDatabase activitypub.FollowersDatabase FollowingDatabase activitypub.FollowingDatabase MessagesDatabase activitypub.MessagesDatabase NotesDatabase activitypub.NotesDatabase PostsDatabase activitypub.PostsDatabase BlocksDatabase activitypub.BlocksDatabase LikesDatabase activitypub.LikesDatabase BoostsDatabase activitypub.BoostsDatabase ProcessMessageQueue activitypub.ProcessMessageQueue URIs *uris.URIs AllowFollow bool AllowCreate bool AllowLikes bool AllowBoosts bool // Allows posts to accounts not followed by author but where account is mentioned in post AllowMentions bool }
type OutboxGetHandlerOptions ¶
type PostHandlerOptions ¶
type PostHandlerVars ¶
type WebfingerHandlerOptions ¶
Click to show internal directories.
Click to hide internal directories.