config

package
v0.0.0-...-bb5b024 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2023 License: MIT Imports: 4 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 {
	Protocol []string `yaml:"protocol"`
	TcpPort  string   `yaml:"tcp_port"`
	ListenIp string   `yaml:"listen_ip"`
	HttpPort string   `yaml:"http_port"`
	GrpcAddr string   `yaml:"grpc_addr"`
	GrpcHost string   `yaml:"grpc_host"`
	EtcdAddr []string `yaml:"etcd"`
	Host     string   `yaml:"host"`
}

func ParseConfig

func ParseConfig(path string) (*Config, error)

Jump to

Keyboard shortcuts

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