Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultFlagSet ¶
func RunWithOptions ¶
func RunWithOptions(ctx context.Context, opts *RunOptions) error
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
PostTagsDatabaseURI 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
Disabled bool
Templates *template.Template
AccountHandlerMiddleware MiddlewareFunc
PostHandlerMiddleware MiddlewareFunc
CustomHandlers CustomHandlersFunc
ProcessMessageQueueURI string
}
func OptionsFromFlagSet ¶
Click to show internal directories.
Click to hide internal directories.