Documentation ¶
Index ¶
- func DefaultFlagSet() *flag.FlagSet
- func Run(ctx context.Context, logger *slog.Logger) error
- func RunWithFlagSet(ctx context.Context, fs *flag.FlagSet, logger *slog.Logger) error
- func RunWithOptions(ctx context.Context, opts *RunOptions, logger *slog.Logger) error
- type CustomHandlersFunc
- type MiddlewareFunc
- type RunOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultFlagSet ¶
func RunWithFlagSet ¶
func RunWithOptions ¶
Types ¶
type CustomHandlersFunc ¶
CustomHandlersFunc is an optional function for assigning custom handlers to a [http.ServeMux] instance.
type MiddlewareFunc ¶
MiddlewareFunc is an optional function for applying custom middleware to human-facing web pages.
type RunOptions ¶
type RunOptions struct { ServerURI string URIs *uris.URIs AccountsDatabaseURI string AliasesDatabaseURI string FollowersDatabaseURI string FollowingDatabaseURI string NotesDatabaseURI string MessagesDatabaseURI string BlocksDatabaseURI string PostsDatabaseURI string PropertiesDatabaseURI string LikesDatabaseURI string BoostsDatabaseURI string 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 AllowRemoteIconURI bool Verbose bool Templates *template.Template AccountHandlerMiddleware MiddlewareFunc PostHandlerMiddleware MiddlewareFunc CustomHandlers CustomHandlersFunc ProcessMessageQueueURI string }
func OptionsFromFlagSet ¶
Click to show internal directories.
Click to hide internal directories.