client

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2020 License: MPL-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TypeWebsocket = "websocket"
	TypeQuic      = "quic"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config added in v0.6.0

type Config struct {
	Type       string   `toml:"type"` // support websocket and quic
	Host       string   `toml:"host"`
	Path       string   `toml:"path"`
	DebugCA    string   `toml:"debug_ca"`
	ListenAddr string   `toml:"listen_addr"`
	Timeout    Duration `toml:"timeout"`
	Secret     string   `toml:"secret"`
	Period     uint     `toml:"period"`
	Pprof      string   `toml:"pprof"`
}

func New

func New(path string) (Config, error)

type Duration added in v0.6.4

type Duration struct {
	time.Duration
}

func (*Duration) UnmarshalText added in v0.6.4

func (d *Duration) UnmarshalText(text []byte) (err error)

Jump to

Keyboard shortcuts

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