conf

package
v0.0.0-...-d4a31e9 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2023 License: MIT Imports: 2 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"`
	MySQL   MySQL   `yaml:"mysql"`
	Jwt     Jwt     `yaml:"jwt"`
	MongoDB MongoDB `yaml:"mongodb"`
	Kafka   Kafka   `yaml:"kafka"`
	Redis   Redis   `yaml:"redis"`
}

func GetConf

func GetConf() (Conf, error)

type Jwt

type Jwt struct {
	Secret string `yaml:"secret"`
}

type Kafka

type Kafka struct {
	Url   string `yaml:"url"`
	Topic string `yaml:"topic"`
}

type MongoDB

type MongoDB struct {
	Url      string `yaml:"url"`
	Database string `yaml:"database"`
}

type MySQL

type MySQL struct {
	URL          string `yaml:"url"`
	UserName     string `yaml:"userName"`
	Password     string `yaml:"password"`
	DatabaseName string `yaml:"databaseName"`
	MaxConn      int    `yaml:"maxConn"`
	MaxOpen      int    `yaml:"maxOpen"`
}

type Redis

type Redis struct {
	Url      string `yaml:"url"`
	Password string `yaml:"password"`
	DB       int    `yaml:"db"`
}

type Server

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

Jump to

Keyboard shortcuts

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