command_dir

package
v0.5.12 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 14, 2024 License: MIT Imports: 9 Imported by: 2

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)

func (*CommandDirHandler) Serve

func (cd *CommandDirHandler) Serve(server *parka.Server, basePath string) error

func (*CommandDirHandler) Watch added in v0.5.6

func (cd *CommandDirHandler) Watch(ctx context.Context) 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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL