Discover Packages
github.com/Munovv/broblogo
internal
pkg
config
package
Version:
v0.0.0-...-2771b56
Opens a new window with list of versions in this module.
Published: Jun 21, 2022
License: MIT
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
type Config struct {
Mongo Mongo `yaml:"mongodb" validate:"required"`
Server Server `yaml:"server" validate:"required"`
}
type Mongo struct {
Connection string `yaml:"url" validate:"required"`
Database string `yaml:"database" validate:"required"`
Collection string `yaml:"collection" validate:"required"`
}
type Server struct {
Port string `yaml:"port"`
ReadTimeout time .Duration `yaml:"read_timeout"`
WriteTimeout time .Duration `yaml:"write_timeout"`
MaxWriteMegabytes int `yaml:"max_write_megabytes"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.