Discover Packages
github.com/louis296/mesence-communicate
conf
package
Version:
v0.0.0-...-d4a31e9
Opens a new window with list of versions in this module.
Published: Aug 22, 2023
License: MIT
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
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"`
}
type Jwt struct {
Secret string `yaml:"secret"`
}
type Kafka struct {
Url string `yaml:"url"`
Topic string `yaml:"topic"`
}
type MongoDB struct {
Url string `yaml:"url"`
Database string `yaml:"database"`
}
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 struct {
Url string `yaml:"url"`
Password string `yaml:"password"`
DB int `yaml:"db"`
}
type Server struct {
Port int `yaml:"port"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.