config

package
v0.0.0-...-98b28bd Latest Latest
Warning

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

Go to latest
Published: May 22, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Celestial

type Celestial struct {
	Conf Config `yaml:"celestial"`
}

type ClientConfig

type ClientConfig struct {
	Security ClientSecurity `yaml:"security"`
}

type ClientSecurity

type ClientSecurity struct {
	Cert    string `yaml:"cert"`
	Key     string `yaml:"key"`
	Trusted string `yaml:"trusted"`
}

type Config

type Config struct {
	ConfVersion    string            `yaml:"version"`
	Address        string            `yaml:"address"`
	Apollo         string            `yaml:"apollo"`
	Gravity        string            `yaml:"gravity"`
	Meridian       string            `yaml:"meridian"`
	ClientConf     ClientConfig      `yaml:"client"`
	Endpoints      []string          `yaml:"db"`
	SEndpoints     []string          `yaml:"sdb"`
	Syncer         string            `yaml:"syncer"`
	STopic         string            `yaml:"stopic"`
	DialTimeout    int               `yaml:"dialtimeout"`
	RequestTimeout int               `yaml:"requesttimeout"`
	InstrumentConf map[string]string `yaml:"instrument"`
}

func ConfigFile

func ConfigFile(n ...string) (*Config, error)

Jump to

Keyboard shortcuts

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