config

package
v0.0.0-...-b0c7cc0 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2019 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Load

func Load(cfg *Config, filename string) error

Types

type Config

type Config struct {
	Listens            []string `toml:"listens"`
	DataDir            string   `toml:"data-dir"`
	DataReadonly       bool     `toml:"data-readonly"`
	ShutdownTimeout    Duration `toml:"shutdown-timeout"`
	ConcurrentRequests int      `toml:"concurrent-requests"`
}

type Duration

type Duration time.Duration

func (*Duration) MarshalText

func (d *Duration) MarshalText() ([]byte, error)

func (*Duration) UnmarshalText

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

Jump to

Keyboard shortcuts

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