Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( StatusDisconnected = -100 StatusConnected = 100 StatusStopped = -200 StatusStarted = 200 )
Functions ¶
This section is empty.
Types ¶
type Connectable ¶
type Connectable interface { Readiness() error Liveness() error Connect(ctx context.Context) error Disconnect(ctx context.Context) error }
Connectable define how our external services should be implement one of important implementation is healthcheck we don't want to start an application that cannot connect to other services like database, cache, ...
Click to show internal directories.
Click to hide internal directories.