package
Version:
v1.0.0
Opens a new window with list of versions in this module.
Published: Sep 7, 2021
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
¶
type App struct {
HTTPAddr string `hcl:"httpAddr"`
GRPCAddr string `hcl:"grpcAddr"`
}
App config section.
type Config struct {
Database Database `hcl:"database,block"`
App App `hcl:"app,block"`
}
Config config section.
FromFile parse config from config path.
Parse config from byte slice.
type Database struct {
Host string `hcl:"host"`
Port int `hcl:"port"`
User string `hcl:"user"`
Password string `hcl:"password"`
Database string `hcl:"database"`
SSLMode string `hcl:"sslmode"`
}
Database config section.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.