Discover Packages
github.com/setcreed/store-core
cmd
app
config
package
Version:
v0.1.0
Opens a new window with list of versions in this module.
Published: Mar 20, 2024
License: Apache-2.0
Opens a new window with license information.
Imports: 0
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
type AppConfig struct {
RpcPort int32 `yaml:"rpcPort"`
HttpPort int32 `yaml:"httpPort"`
}
type DBConfig struct {
DSN string `yaml:"dsn"`
MaxOpenConn int `yaml:"maxOpenConn"`
MinIdleConn int `yaml:"maxIdleConn"`
MaxLifeSecond int `yaml:"maxLifeTime"`
}
type DefaultConfig struct {
Mode string `yaml:"mode"`
App AppConfig `yaml:"app"`
}
type SQLConfig struct {
Name string `yaml:"name"`
Table string `yaml:"table"`
Sql string `yaml:"sql"`
Select *Select `yaml:"select"`
}
type Select struct {
Sql string `yaml:"sql"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.