Documentation
¶
Index ¶
- func NewDB(cfg DbConfig) *sqlx.DB
- func Start(ctx context.Context, lock *latch.CountDownLatch, cfg Config)
- func StartMQ(ctx context.Context, lock *latch.CountDownLatch, ...) *fake.FakeMQ
- func StartWebServer(ctx context.Context, lock *latch.CountDownLatch, cfg WebConfig, ...)
- type Config
- type DbConfig
- type WebConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewDB ¶
NewDB creates a new postgres database connection. It should receive database connection configuration but for the demo purposes we will ignore it
func StartMQ ¶
func StartMQ( ctx context.Context, lock *latch.CountDownLatch, regSub fakesub.RegistrationController, ) *fake.FakeMQ
func StartWebServer ¶
func StartWebServer( ctx context.Context, lock *latch.CountDownLatch, cfg WebConfig, c web.CustomerController, r web.RegistrationController, )
Types ¶
type Config ¶
type Config struct { WebConfig DbConfig OutboxHeartbeat time.Duration `env:"OUTBOX_HEARTBEAT" envDefault:"5s"` }
func LoadEnvVars ¶
func LoadEnvVars() Config
Click to show internal directories.
Click to hide internal directories.