Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ServeConfig ¶
type ServeConfig struct { JWTKey string `mapstructure:"jwt_key" validate:"required,base64|hexadecimal"` Migrate bool `mapstructure:"migrate"` Environment string `mapstructure:"env" validate:"required,oneof=dev stg prod"` ListenHost string `mapstructure:"listen_host" validate:"required"` ListenPort uint16 `mapstructure:"listen_port" validate:"required,gt=0"` cmdCommon.MySQLConfigCommon `mapstructure:",squash" govalid:"req"` }
func (ServeConfig) AutoMigrate ¶
func (s ServeConfig) AutoMigrate() bool
func (ServeConfig) Env ¶
func (s ServeConfig) Env() string
func (ServeConfig) Listen ¶
func (s ServeConfig) Listen() interfaces.ListenConfig
func (ServeConfig) MySQL ¶
func (s ServeConfig) MySQL() interfaces.MySQLConfig
type ServeListenConfig ¶
type ServeListenConfig struct {
// contains filtered or unexported fields
}
func (ServeListenConfig) Host ¶
func (s ServeListenConfig) Host() string
func (ServeListenConfig) Port ¶
func (s ServeListenConfig) Port() uint16
type ServeMySQLConfig ¶
type ServeMySQLConfig struct {
cmdCommon.MySQLConfigCommon `mapstructure:",squash"`
}
func (ServeMySQLConfig) Database ¶
func (s ServeMySQLConfig) Database() string
func (ServeMySQLConfig) Host ¶
func (s ServeMySQLConfig) Host() string
func (ServeMySQLConfig) Password ¶
func (s ServeMySQLConfig) Password() string
func (ServeMySQLConfig) Port ¶
func (s ServeMySQLConfig) Port() uint16
func (ServeMySQLConfig) User ¶
func (s ServeMySQLConfig) User() string
Click to show internal directories.
Click to hide internal directories.