Documentation
¶
Index ¶
- Constants
- Variables
- type Cfg
- func (c *Cfg) InitGormPgx(l *logrus.Logger) *gorm.DB
- func (c *Cfg) InitMessageBroker() rmqp.AMQP
- func (c *Cfg) InitPsql(l *logrus.Logger) *sql.DB
- func (c *Cfg) InitRedis(l *logrus.Logger, dbindex int) *redis.Client
- func (c *Cfg) InitRedisJSON(l *logrus.Logger, dbindex int) *rueidis.Storage
- func (c *Cfg) Initiate(logname string) *Setup
- type Setup
Constants ¶
View Source
const ( //APP_PATH = "/app" EVENT_TRAFFIC = "Traffic" EVENT_LANDING = "Landing" EVENT_CLICK = "Click Landing" EVENT_REDIRECT = "Redirect" OK_DESC = "OK" BAD_REQUEST_DESC = "Bad Request" )
Variables ¶
View Source
var APP_PATH = "/Users/wiliewahyuhidayat/Documents/GO/mediaplatform/cores/" // local
Functions ¶
This section is empty.
Types ¶
type Cfg ¶
type Cfg struct {
AppHost string
AppHostPort string
AppApi string
AppApiPort string
RedisHost string
RedisPort int
RedisDBIndex int
RedisPwd string
RedisKeyExpiration int64
PSQLHost string
PSQLUsername string
PSQLPassword string
PSQLPort string
PSQLDB string
RabbitMQHost string
RabbitMQPort int
RabbitMQUsername string
RabbitMQPassword string
RabbitMQVHost string
RabbitMQDataType string
RabbitMQPixelStorageExchangeName string
RabbitMQPixelStorageQueueName string
RabbitMQRedisCounterExchangeName string
RabbitMQRedisCounterQueueName string
RabbitMQRatioExchangeName string
RabbitMQRatioQueueName string
RabbitMQPostbackAdnetExchangeName string
RabbitMQPostbackAdnetQueueName string
RabbitMQCampaignManagementExchangeName string
RabbitMQCampaignManagementQueueName string
RabbitMQAlertManagementExchangeName string
RabbitMQAlertManagementQueueName string
LogEnv string
LogPath string
LogLevel string
TZ *time.Location
APIARPU string
}
func (*Cfg) InitMessageBroker ¶
func (*Cfg) InitRedisJSON ¶
Click to show internal directories.
Click to hide internal directories.