Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AgoraIO ¶
type AgoraIO struct { APP_ID string `json:"APP_ID,omitempty"` APP_CERTIFICATE string `json:"APP_CERTIFICATE,omitempty"` USER_UUID string `json:"USER_UUID,omitempty"` TOKEN_EXPIRE_TIME int `json:"TOKEN_EXPIRE_TIME,omitempty"` }
AgoraIO credentials
type Clickhouse ¶
type Clickhouse struct { HOST string `mapstructure:"HOST,omitempty"` PORT int `mapstructure:"PORT,omitempty"` USER string `mapstructure:"USER,omitempty"` PASS string `mapstructure:"PASS,omitempty"` DEFAULT_DB string `mapstructure:"DEFAULT_DB,omitempty"` }
Clickhouse config
type Config ¶
type Config struct { Server Server `mapstructure:"server,omitempty"` Swagger Swagger `mapstructure:"swagger,omitempty"` Http Http `mapstructure:"http,omitempty"` Grpc Grpc `mapstructure:"grpc,omitempty"` Logger Logger `mapstructure:"logger,omitempty"` Postgresql Postgresql `mapstructure:"postgresql,omitempty"` Mysql Mysql `mapstructure:"mysql,omitempty"` Mssql Mssql `mapstructure:"mssql,omitempty"` MongoDB MongoDB `mapstructure:"mongodb,omitempty"` Redis Redis `mapstructure:"redis,omitempty"` Clickhouse Clickhouse `mapstructure:"clickhouse,omitempty"` Firestore Firestore `mapstructure:"firestore,omitempty"` AgoraIO AgoraIO `mapstructure:"agoraio,omitempty"` Sqs Sqs `mapstructure:"sqs,omitempty"` }
Config of application
type Firestore ¶
type Firestore struct { PROJECT_ID string `json:"PROJECT_ID,omitempty"` DEFULT_COLLECTION string `json:"DEFULT_COLLECTION,omitempty"` CREDENTIALS_PATH string `json:"CREDENTIALS_PATH,omitempty"` }
Firestore config
type Grpc ¶
type Grpc struct { PORT string `mapstructure:"PORT,omitempty"` TIMEOUT time.Duration `mapstructure:"TIMEOUT,omitempty"` READ_TIMEOUT time.Duration `mapstructure:"READ_TIMEOUT,omitempty"` WRITE_TIMEOUT time.Duration `mapstructure:"WRITE_TIMEOUT,omitempty"` COOKIE_LIFE_TIME int `mapstructure:"COOKIE_LIFE_TIME,omitempty"` SESSION_COOKIE_NAME string `mapstructure:"SESSION_COOKIE_NAME,omitempty"` SSL_CERT_PATH string `mapstructure:"SSL_CERT_PATH,omitempty"` SSL_CERT_KEY string `mapstructure:"SSL_CERT_KEY,omitempty"` }
Http config
type Http ¶
type Http struct { PORT string `mapstructure:"PORT,omitempty"` TIMEOUT time.Duration `mapstructure:"TIMEOUT,omitempty"` READ_TIMEOUT time.Duration `mapstructure:"READ_TIMEOUT,omitempty"` WRITE_TIMEOUT time.Duration `mapstructure:"WRITE_TIMEOUT,omitempty"` COOKIE_LIFE_TIME int `mapstructure:"COOKIE_LIFE_TIME,omitempty"` SESSION_COOKIE_NAME string `mapstructure:"SESSION_COOKIE_NAME,omitempty"` SSL_CERT_PATH string `mapstructure:"SSL_CERT_PATH,omitempty"` SSL_CERT_KEY string `mapstructure:"SSL_CERT_KEY,omitempty"` }
Http config
type Logger ¶
type Logger struct { DISABLE_CALLER bool `mapstructure:"DISABLE_CALLER,omitempty"` DISABLE_STACKTRACE bool `mapstructure:"DISABLE_STACKTRACE,omitempty"` ENCODING string `mapstructure:"ENCODING,omitempty"` LEVEL string `mapstructure:"LEVEL,omitempty"` }
Logger config
type MongoDB ¶
type MongoDB struct { HOST string `mapstructure:"HOST,omitempty"` PORT int `mapstructure:"PORT,omitempty"` USER string `mapstructure:"USER,omitempty"` PASS string `mapstructure:"PASS,omitempty"` DEFAULT_DB string `mapstructure:"DEFAULT_DB,omitempty"` MONGO_DB_ATLAS string `mapstructure:"MONGO_DB_ATLAS,omitempty"` }
MongoDB config
type Mssql ¶
type Mssql struct { HOST string `mapstructure:"HOST,omitempty"` PORT int `mapstructure:"PORT,omitempty"` USER string `mapstructure:"USER,omitempty"` PASS string `mapstructure:"PASS,omitempty"` DEFAULT_DB string `mapstructure:"DEFAULT_DB,omitempty"` MAX_CONN int `mapstructure:"MAX_CONN,omitempty"` }
Mssql config
type Mysql ¶
type Mysql struct { HOST string `mapstructure:"HOST,omitempty"` PORT int `mapstructure:"PORT,omitempty"` USER string `mapstructure:"USER,omitempty"` PASS string `mapstructure:"PASS,omitempty"` DEFAULT_DB string `mapstructure:"DEFAULT_DB,omitempty"` MAX_CONN int `mapstructure:"MAX_CONN,omitempty"` }
Mysql config
type Postgresql ¶
type Postgresql struct { HOST string `mapstructure:"HOST,omitempty"` PORT int `mapstructure:"PORT,omitempty"` USER string `mapstructure:"USER,omitempty"` PASS string `mapstructure:"PASS,omitempty"` DEFAULT_DB string `mapstructure:"DEFAULT_DB,omitempty"` MAX_CONN int `mapstructure:"MAX_CONN,omitempty"` DRIVER string `mapstructure:"DRIVER,omitempty"` }
Postgresql config
type Redis ¶
type Redis struct { HOST string `mapstructure:"HOST,omitempty"` PORT int `mapstructure:"PORT,omitempty"` USER string `mapstructure:"USER,omitempty"` PASS string `mapstructure:"PASS,omitempty"` DEFAULT_DB int `mapstructure:"DEFAULT_DB,omitempty"` MIN_IDLE_CONN int `mapstructure:"MIN_IDLE_CONN,omitempty"` POOL_SIZE int `mapstructure:"POOL_SIZE,omitempty"` POOL_TIMEOUT int `mapstructure:"POOL_TIMEOUT,omitempty"` }
Redis config
type Server ¶
type Server struct { PROJECT_NAME string `mapstructure:"PROJECT_NAME,omitempty"` SERVICE_NAME string `mapstructure:"SERVICE_NAME,omitempty"` APP_ENV string `mapstructure:"APP_ENV,omitempty"` API_VER string `mapstructure:"API_VER,omitempty"` APP_DEBUG bool `mapstructure:"APP_DEBUG,omitempty"` TIMEOUT int `mapstructure:"TIMEOUT,omitempty"` APP_SECRET string `mapstructure:"APP_SECRET,omitempty"` JWT_TOKEN_EXPIRE_TIME int `mapstructure:"JWT_TOKEN_EXPIRE_TIME,omitempty"` APP_VERSION string `mapstructure:"APP_VERSION,omitempty"` READ_TIMEOUT time.Duration `mapstructure:"READ_TIMEOUT,omitempty"` WRITE_TIMEOUT time.Duration `mapstructure:"WRITE_TIMEOUT,omitempty"` MAX_CONN_IDLE time.Duration `mapstructure:"MAX_CONN_IDLE,omitempty"` MAX_CONN_AGE time.Duration `mapstructure:"MAX_CONN_AGE,omitempty"` }
Server config
type Sqs ¶
type Sqs struct { REGION string `mapstructure:"REGION,omitempty"` APP_ID string `mapstructure:"APP_ID,omitempty"` AWS_ACCESS_KEY_ID string `mapstructure:"AWS_ACCESS_KEY_ID,omitempty"` AWS_SECRET_ACCESS_KEY string `mapstructure:"AWS_SECRET_ACCESS_KEY,omitempty"` SMS_NORMAL_QUEUE string `mapstructure:"SMS_NORMAL_QUEUE,omitempty"` SMS_OTP_QUEUE string `mapstructure:"SMS_OTP_QUEUE,omitempty"` }
Sqs AWS SQS Keys
Click to show internal directories.
Click to hide internal directories.