conf

package
v0.0.0-...-8293e18 Latest Latest
Warning

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

Go to latest
Published: May 18, 2022 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Conf

type Conf struct {
	Server *Server `yaml:"server"`
	Data   *Data   `yaml:"data"`
}

type Data

type Data struct {
	Mongo *Mongo `yaml:"mongo"`
}

type Http

type Http struct {
	Addr string `yaml:"addr"`
}

type Mongo

type Mongo struct {
	Uri string `yaml:"uri"`
	// 认证
	AuthSource string `yaml:"auth_source"`
	Username   string `yaml:"username"`
	Password   string `yaml:"password"`
}

type Server

type Server struct {
	Http *Http `yaml:"http"`
}

Jump to

Keyboard shortcuts

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