-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.go
40 lines (33 loc) · 968 Bytes
/
config.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
package config
type Config struct {
Port int `yaml:"port"`
Email EmailConfig `yaml:"email"`
Database DatabaseConfig `yaml:"database"`
Cache CacheConfig `yaml:"cache"`
MessageBroker MessageBrokerConfig `yaml:"messageBroker"`
Tracing TracingConfig `yaml:"tracing"`
}
type EmailConfig struct {
SMTPServer string `yaml:"smtp_server"`
SMTPPort int `yaml:"smtp_port"`
SenderEmail string `yaml:"senderEmail"`
AppPassword string `yaml:"appPassword"`
}
type DatabaseConfig struct {
URL string `yaml:"url"`
Password string `yaml:"password"`
}
type CacheConfig struct {
URL string `yaml:"url"`
Password string `yaml:"password"`
}
type MessageBrokerConfig struct {
BrokersUrl []string `yaml:"brokers"`
}
type TracingConfig struct {
Enable bool `yaml:"enable"`
Jaeger JaegerConfig `yaml:"jaeger"`
}
type JaegerConfig struct {
URL string `yaml:"url"`
}