Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CommandDirHandler ¶
type CommandDirHandler struct { generic_command.GenericCommandHandler DevMode bool // Repository is the command repository that is exposed over HTTP through this handler. Repository *repositories.Repository }
func NewCommandDirHandlerFromConfig ¶
func NewCommandDirHandlerFromConfig( config_ *config.CommandDir, options ...CommandDirHandlerOption, ) (*CommandDirHandler, error)
type CommandDirHandlerOption ¶
type CommandDirHandlerOption func(handler *CommandDirHandler)
func WithDevMode ¶
func WithDevMode(devMode bool) CommandDirHandlerOption
func WithGenericCommandHandlerOptions ¶ added in v0.5.6
func WithGenericCommandHandlerOptions(options ...generic_command.GenericCommandHandlerOption) CommandDirHandlerOption
func WithRepository ¶
func WithRepository(r *repositories.Repository) CommandDirHandlerOption
Click to show internal directories.
Click to hide internal directories.