chi

package
v0.1.10 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Builder

type Builder struct {
	// contains filtered or unexported fields
}

func New

func New() Builder

func (*Builder) Build

func (t *Builder) Build(cfg Cfg) error

func (*Builder) Get

func (t *Builder) Get() *chi.Mux

type Cfg

type Cfg struct {
	Timeout   time.Duration `json:"timeout"`
	Logger    bool          `json:"logger"`
	Recover   bool          `json:"recover"`
	RequestID bool          `json:"req_id"`
}

func DefaultCfg

func DefaultCfg() Cfg

Jump to

Keyboard shortcuts

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