config

package
v0.0.0-...-66819b2 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RedisConfig

type RedisConfig struct {
	Addr     string `yaml:"addr"`
	Password string `yaml:"password"`
	Database int    `yaml:"database"`
}

type YmlConfig

type YmlConfig struct {
	DnsDomain string      `yaml:"dns_domain"`
	ServerIp  string      `yaml:"server_ip"`
	SaveTime  int64       `yaml:"save_time"`
	ApiAddr   string      `yaml:"api_addr"`
	Redis     RedisConfig `yaml:"redis,flow"`
}

func Parse

func Parse(file string) (YmlConfig, error)

Jump to

Keyboard shortcuts

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