server

package
v0.10.8 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2023 License: BSD-3-Clause Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultFlagSet

func DefaultFlagSet() *flag.FlagSet

func Run

func Run(ctx context.Context, logger *log.Logger) error

func RunWithFlagSet

func RunWithFlagSet(ctx context.Context, flgst *flag.FlagSet, logger *log.Logger) error

func RunWithOptions added in v0.9.0

func RunWithOptions(ctx context.Context, opts *RunOptions) error

Types

type AppendHandlersFunc added in v0.9.0

type AppendHandlersFunc func(context.Context, *gohttp.ServeMux) error

type RunOptions added in v0.9.0

type RunOptions struct {
	Logger                *log.Logger
	FlagSet               *flag.FlagSet
	Templates             []fs.FS
	AppendHandlersFunc    AppendHandlersFunc
	WrapSearchHandlerFunc WrapHandlerFunc
}

type WrapHandlerFunc added in v0.9.0

type WrapHandlerFunc func(gohttp.Handler) gohttp.Handler

Jump to

Keyboard shortcuts

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