Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Version = "latest"
Functions ¶
Types ¶
type BDayService ¶
type BDayService struct { DbHost string `envconfig:"DB_HOST" required:"true"` DbUser string `envconfig:"DB_USER" required:"true"` DbPass string `envconfig:"DB_PASS" required:"true"` DbPort string `envconfig:"DB_PORT" required:"true"` DbName string `envconfig:"DB_NAME" required:"true"` HttpPort string `envconfig:"HTTP_PORT" default:"8080"` MetricsPort string `envconfig:"METRICS_PORT" default:"9090"` MigrationsDir string `envconfig:"MIGRATIONS_DIR" default:"/migrations"` ShutdownWait int `envconfig:"HTTP_SHUTDOWN_WAIT" default:"1"` Debug bool `envconfig:"DEBUG" default:"false"` // contains filtered or unexported fields }
BDayService is the struct for service config
func NewBDayService ¶
func NewBDayService() (*BDayService, error)
NewBDayService creates new instance of the services
func (*BDayService) ConnectDB ¶
func (b *BDayService) ConnectDB() error
ConnectDB connects to db and store db connection in service object
Click to show internal directories.
Click to hide internal directories.