gw_builder

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: May 1, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultTimeout = time.Second * 2

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, opts ...gw.ServeMuxOption) error

func (*Builder) Get

func (t *Builder) Get() *gw.ServeMux

type Cfg

type Cfg struct {
	Timeout time.Duration `json:"timeout"`
}

func DefaultCfg

func DefaultCfg() Cfg

type ServeMux

type ServeMux = gw.ServeMux

Jump to

Keyboard shortcuts

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