config

package
v0.0.0-...-6cf1638 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2024 License: MulanPSL-2.0 Imports: 2 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 {
	Server  *Server  `yaml:"server"`
	MySQL   *MySQL   `yaml:"mysql"`
	Redis   *Redis   `yaml:"redis"`
	Etcd    *Etcd    `yaml:"etcd"`
	Gateway *Gateway `yaml:"gateway"`
	Logs    *Logs    `yaml:"logs"`
}
var Conf *Config

type Etcd

type Etcd struct {
	Endpoints []string `yaml:"endpoints"`
	Ttl       int64    `yaml:"ttl"`
}

type Gateway

type Gateway struct {
	Name string `yaml:"name"`
}

type Logs

type Logs struct {
	Level string `yaml:"level"`
	Dir   string `yaml:"dir"`
}

type MySQL

type MySQL struct {
	DriverName string `yaml:"driver"`
	Host       string `yaml:"host"`
	Port       string `yaml:"port"`
	Database   string `yaml:"database"`
	UserName   string `yaml:"username"`
	Password   string `yaml:"password"`
	Charset    string `yaml:"charset"`
}

type Redis

type Redis struct {
	UserName string `yaml:"username"`
	Address  string `yaml:"address"`
	Password string `yaml:"password"`
}

type Server

type Server struct {
	Name    string `yaml:"name"`
	Host    string `yaml:"host"`
	Port    string `yaml:"port"`
	Version string `yaml:"version"`
	// 一个节点多个容器,支持k8s部署多个pod
	MultipleContainer bool `yaml:"multipleContainer"`
}

Jump to

Keyboard shortcuts

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