config

package
v1.0.26 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	GitSource   string
	GitTag      string
	GitBranch   string
	GitHash     string
	GoBuildTime string
)

Functions

func PrintVersion

func PrintVersion(w io.Writer)

func Usage

func Usage(w io.Writer, flags *flag.FlagSet)

Types

type Config

type Config struct {
	Plugin  []string           `yaml:"plugins"`
	Handler map[string]Handler `yaml:"handlers"`
	Config  map[string]interface{}
}

func New

func New(patterns ...string) (*Config, error)

func (*Config) String added in v1.0.22

func (c *Config) String() string

type Handler

type Handler struct {
	Prefix     string   `yaml:"prefix"`
	Middleware []string `yaml:"middleware"`
}

func (Handler) String

func (h Handler) String() string

Jump to

Keyboard shortcuts

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