config

package
v1.1.6 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2021 License: MIT, MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Configuration

type Configuration struct {
	Server   Server   `yaml:"server"`
	Database Database `yaml:"database"`
}

Yaml2Go

var Config *Configuration

type Database

type Database struct {
	Mysql Mysql `yaml:"mysql"`
}

Database

type Grpc

type Grpc struct {
	Port int `yaml:"port"`
}

Grpc

type Http

type Http struct {
	Port int `yaml:"port"`
}

Http

type Mysql

type Mysql struct {
	User     string `yaml:"user"`
	Password string `yaml:"password"`
	Host     string `yaml:"host"`
	Database string `yaml:"database"`
	Port     int    `yaml:"port"`
}

Mysql

type Server

type Server struct {
	Grpc Grpc `yaml:"grpc"`
	Http Http `yaml:"http"`
}

Server

Jump to

Keyboard shortcuts

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