config

package
v0.0.2-rc7 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func YAML2JSON

func YAML2JSON(d []byte) ([]byte, error)

Types

type Config

type Config struct {
	Listen []string
	Mux    *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