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 AccountHandlerOptions struct { AccountsDatabase database.AccountsDatabase AliasesDatabase database.AliasesDatabase PropertiesDatabase database.PropertiesDatabase URIs *uris.URIs Templates *template.Template RedirectOnAlias bool }
type AccountTemplateVars ¶
type FollowersHandlerOptions ¶
type FollowersHandlerOptions struct { AccountsDatabase database.AccountsDatabase FollowersDatabase database.FollowersDatabase URIs *uris.URIs }
type FollowingHandlerOptions ¶
type FollowingHandlerOptions struct { AccountsDatabase database.AccountsDatabase FollowingDatabase database.FollowingDatabase URIs *uris.URIs }
type IconHandlerOptions ¶
type IconHandlerOptions struct { AccountsDatabase database.AccountsDatabase URIs *uris.URIs AllowRemote bool }
type InboxPostHandlerOptions ¶
type InboxPostHandlerOptions struct { AccountsDatabase database.AccountsDatabase FollowersDatabase database.FollowersDatabase FollowingDatabase database.FollowingDatabase MessagesDatabase database.MessagesDatabase NotesDatabase database.NotesDatabase PostsDatabase database.PostsDatabase BlocksDatabase database.BlocksDatabase LikesDatabase database.LikesDatabase BoostsDatabase database.BoostsDatabase ProcessMessageQueue queue.ProcessMessageQueue ProcessFollowerQueue queue.ProcessFollowerQueue 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 OutboxGetHandlerOptions struct { AccountsDatabase database.AccountsDatabase PostsDatabase database.PostsDatabase URIs *uris.URIs }
type OutboxPostHandlerOptions ¶
type OutboxPostHandlerOptions struct { AccountsDatabase database.AccountsDatabase PostsDatabase database.PostsDatabase URIs *uris.URIs }
type PostHandlerOptions ¶
type PostHandlerOptions struct { AccountsDatabase database.AccountsDatabase PostsDatabase database.PostsDatabase PostTagsDatabase database.PostTagsDatabase URIs *uris.URIs Templates *template.Template }
type PostHandlerVars ¶
type WebfingerHandlerOptions ¶
type WebfingerHandlerOptions struct { AccountsDatabase database.AccountsDatabase AliasesDatabase database.AliasesDatabase URIs *uris.URIs }
Click to show internal directories.
Click to hide internal directories.