Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { // App is a set of properties for the application such as name, port, location, etc. App struct { Name string Port int Environment string Location *time.Location Debug bool } // CORS is a set of properties for Cross Origins Resource Sharing. It should be set to allow direct request from the external web application (from browser). CORS struct { AllowedOrigins []string AllowedMethods []string ExposedHeaders []string } // Logrus is a logger package for logging. This object contains setup properties of logrus. Logrus struct { Formatter logrus.Formatter } // JWT contains both private and public key in buffered type. JWT struct { PrivateKey []byte PublicKey []byte } // BasicAuth contains credentials for basic authentication. BasicAuth struct { Username string Password string } // OpenTelemetry contains creds and other properties that will be needs to connect and run agent for application tracing and metrics collection. OpenTelemetry struct { Collector struct { Endpoint string } } Postgres struct { Host string Port int User string Password string DBName string SSLMode string MaxOpenConns int MaxIdleConns int } }
Config contains collection of the properties for the application configurations.
Click to show internal directories.
Click to hide internal directories.