Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApiConfig ¶
type ApiConfig struct { Port int `env:"PORT, default=5000"` EnvName string `env:"ENV_NAME, default=development"` ApiVersion string `env:"VERSION, default=v1"` LocationRegion string `env:"LOCATION, default=America/Sao_Paulo"` Location *time.Location }
func (*ApiConfig) IsDevelopment ¶
type CacheConfig ¶
type CloudConfig ¶
type CloudConfig struct { BaseEndpoint string `env:"BASE_ENDPOINT"` AppointmentTopicName string `env:"APPOINTMENT_TOPIC_NAME"` FeedbackTopicName string `env:"FEEDBACK_TOPIC_NAME"` BucketName string `env:"BUCKET_NAME"` }
func (*CloudConfig) IsBaseEndpointSet ¶
func (c *CloudConfig) IsBaseEndpointSet() bool
type Config ¶
type Config struct { ApiConfig *ApiConfig `env:",prefix=API_"` DbConfig *DatabaseConfig `env:",prefix=DB_"` CloudConfig *CloudConfig `env:",prefix=AWS_"` CacheConfig *CacheConfig `env:",prefix=CACHE_"` }
type DatabaseConfig ¶
Click to show internal directories.
Click to hide internal directories.