config

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2020 License: MIT Imports: 8 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 {
	Listen []string
	mux.Config
}

func (*Config) Check

func (c *Config) Check() error

func (*Config) GetServerConfig

func (c *Config) GetServerConfig() ([]*server.Config, error)

type Configs

type Configs struct {
	Server []*Config
}

func Load

func Load(conf []byte) (c *Configs, err error)

func LoadFile

func LoadFile(path string) (c *Configs, err error)

func (*Configs) GetServerConfig

func (c *Configs) GetServerConfig() ([]*server.Config, error)

Jump to

Keyboard shortcuts

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