Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AwsConfig ¶
type AwsConfig struct { Encrypted bool `toml:"encrypted"` AccessKey string `toml:"access_key"` SecretKey string `toml:"secret_key"` Region string `toml:"region"` Sqs *SqsConfig `toml:"sqs"` }
AwsConfig is for Aamazon Web Service
type CassaConfig ¶
type CassaConfig struct { Encrypted bool `toml:"encrypted"` Host string `toml:"host"` Port uint16 `toml:"port"` KeySpace string `toml:"keyspace"` }
CassaConfig is for Cassandra server
type Config ¶
type Config struct { Environment int MySQL *MySQLConfig Redis *RedisConfig Mongo *MongoConfig `toml:"mongodb"` Cassa *CassaConfig `toml:"cassandra"` Mail *MailConfig Aws *AwsConfig }
Config is of root
type MailConfig ¶
type MailConfig struct { Encrypted bool `toml:"encrypted"` Address string `toml:"address"` Password string `toml:"password"` Timeout string `toml:"timeout"` SMTP *SMTPConfig `toml:"smtp"` Content []MailContentConfig `toml:"content"` }
MailConfig is for mail
type MailContentConfig ¶
MailContentConfig is for mail contents
type MongoConfig ¶
type MongoConfig struct { Encrypted bool `toml:"encrypted"` Host string `toml:"host"` Port uint16 `toml:"port"` DbName string `toml:"dbname"` User string `toml:"user"` Pass string `toml:"pass"` }
MongoConfig is for MongoDB server
type MsgAttrConfig ¶
type MsgAttrConfig struct { OpType string `toml:"operation_type"` ContentType string `toml:"content_type"` }
MsgAttrConfig is for part of SQS
type MySQLConfig ¶
type MySQLConfig struct { Encrypted bool `toml:"encrypted"` Host string `toml:"host"` Port uint16 `toml:"port"` DbName string `toml:"dbname"` User string `toml:"user"` Pass string `toml:"pass"` }
MySQLConfig is for MySQL server
type RedisConfig ¶
type RedisConfig struct { Encrypted bool `toml:"encrypted"` Host string `toml:"host"` Port uint16 `toml:"port"` Pass string `toml:"pass"` }
RedisConfig is for Redis server
type SMTPConfig ¶
SMTPConfig is for SMTP server of mail
Click to show internal directories.
Click to hide internal directories.