Documentation ¶
Index ¶
Constants ¶
View Source
const ( // mode MetaDataModeWeb MetaDataMode = "web" MetaDataModeApp MetaDataMode = "app" // channel MetaDataChannelAdmin MetaDataChannel = "admin" MetaDataChannelClient MetaDataChannel = "client" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { App struct { Server struct { Port string `mapstructure:"port"` Host string `mapstructure:"host"` } `mapstructure:"server"` Redis struct { Password string `mapstructure:"password"` Host string `mapstructure:"host"` } `mapstructure:"redis"` Postgres struct { Password string `mapstructure:"password"` User string `mapstructure:"user"` Host string `mapstructure:"host"` Port int `mapstructure:"port"` DBName string `mapstructure:"name"` } `mapstructure:"postgres"` Postgres2 struct { Password string `mapstructure:"password"` User string `mapstructure:"user"` Host string `mapstructure:"host"` Port int `mapstructure:"port"` DBName string `mapstructure:"name"` } `mapstructure:"postgres2"` } `mapstructure:"app"` }
type HandlerCtx ¶
type MetaData ¶
type MetaData struct { Mode MetaDataMode Channel MetaDataChannel }
type MetaDataChannel ¶
type MetaDataChannel string
type MetaDataMode ¶
type MetaDataMode string
Click to show internal directories.
Click to hide internal directories.