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
	Profiler
}

Config コンフィグ

func LoadConfig

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

LoadConfig コンフィグをロード

type Profiler

type Profiler struct {
	ProjectID string `yaml:"project_id"`
	Service   string `yaml:"service"`
}

Profiler プロファイラ

type Server

type Server struct {
	Address string `yaml:"address"`
}

Server サーバー

Jump to

Keyboard shortcuts

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