Documentation
¶
Index ¶
Constants ¶
View Source
const DEFAULT_CONFIG_DIR = ".agent_composer/config"
View Source
const DEFAULT_LOCALE = "en-US"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AppSettings ¶
type Config ¶
type Config struct {
App AppSettings `mapstructure:"app"`
Promtail promtail.Config `mapstructure:"promtail"`
Postgres postgres.ConnectionConfig `mapstructure:"postgres"`
}
ConfigSettings contains the config.yml settings
type Controller ¶
type Controller struct {
ctrl.BaseController
Config Config
EnvVars EnvVars
DB *relational.DB
}
func New ¶
func New() (*Controller, error)
func (*Controller) Setup ¶
func (controller *Controller) Setup() error
type EnvVars ¶
type EnvVars struct {
Environment string
ProjectRootPath string
PromtailPassword string ` mapstucture:"PROMTAIL_PASSWORD"`
PostgresPassword string ` mapstucture:"POSTGRES_PASSWORD"`
AWSSecretKey string ` mapstucture:"AWS_SECRET_KEY"`
S3SecretKey string ` mapstucture:"S3_SECRET_KEY"`
STPSecretKey string ` mapstucture:"STP_SECRET_KEY"`
STPGatewayToken string ` mapstucture:"STP_GATEWAY_TOKEN"`
FacturamaPassword string ` mapstucture:"FACTURAMA_PASSWORD"`
HikDeviceGatewayPassword string ` mapstucture:"HIK_DEVICE_GATEWAY_PASSWORD"`
}
type Locale ¶
type Locale string
Locale is a string type with validation
func NewLocaleString ¶
NewLocaleString creates a validated locale string
func (Locale) MarshalJSON ¶
MarshalJSON implements json.Marshaler
func (*Locale) UnmarshalJSON ¶
UnmarshalJSON implements json.Unmarshaler
Click to show internal directories.
Click to hide internal directories.