config

package
v1.0.38 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

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