config

package
v0.0.0-...-5b3434c Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrorFileLoad = errors.New("error loading the config file")
	ErrorYamlLoad = errors.New("error loading the yaml file")
)

Error

Functions

This section is empty.

Types

type Config

type Config struct {
	Server
	Client struct {
		Grpc
	}
}

Config サーバーコンフィグ

func LoadConfig

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

LoadConfig コンフィグをロード

type Grpc

type Grpc struct {
	Addr string
	Port int
}

type Server

type Server struct {
	Addr string
}

Jump to

Keyboard shortcuts

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