Documentation ¶
Index ¶
Constants ¶
View Source
const ( Name = "fiber app" Version = "1.0.0" Mode = "debug" )
Variables ¶
View Source
var ( Conf Configuration ConfBox ms.ConfBox RuntimeRoot string Mysql *gorm.DB )
Functions ¶
This section is empty.
Types ¶
type Configuration ¶
type Configuration struct { Server ServerConf Mysql MysqlConf Jwt JwtConf Tracer TracerConf Log LogConf }
type LogConf ¶
type LogConf struct { Level log.Level `mapstructure:"level" json:"level"` Json bool `mapstructure:"json" json:"json"` LineNum LogsLineNumConf `mapstructure:"line-num" json:"lineNum"` OperationKey string `mapstructure:"operation-key" json:"operationKey"` OperationAllowedToDelete bool `mapstructure:"operation-allowed-to-delete" json:"operationAllowedToDelete"` }
type LogsLineNumConf ¶
type MysqlConf ¶
type MysqlConf struct { Uri string `mapstructure:"uri" json:"uri"` TablePrefix string `mapstructure:"table-prefix" json:"tablePrefix"` NoSql bool `mapstructure:"no-sql" json:"noSql"` Transaction bool `mapstructure:"transaction" json:"transaction"` InitData bool `mapstructure:"init-data" json:"initData"` DSN mysql.Config `json:"-"` }
type ServerConf ¶
type ServerConf struct { Mode string `mapstructure:"mode" json:"mode"` Port int `mapstructure:"port" json:"port"` Base string `mapstructure:"-" json:"-"` UrlPrefix string `mapstructure:"url-prefix" json:"urlPrefix"` ApiVersion string `mapstructure:"api-version" json:"apiVersion"` ConnectTimeout int `mapstructure:"connect-timeout" json:"connectTimeout"` }
Click to show internal directories.
Click to hide internal directories.