Documentation ¶
Index ¶
- func NewMigrationsFromBazel(data map[string][]byte) (source.Driver, error)
- func Trace(ctx context.Context, f string, args ...interface{})
- func TraceErrorf(ctx context.Context, f string, args ...interface{})
- func TraceInfof(ctx context.Context, f string, args ...interface{})
- func TraceSQL(driver driver.Driver, wrapped string)
- func TraceWarningf(ctx context.Context, f string, args ...interface{})
- type Mirko
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewMigrationsFromBazel ¶
func Trace ¶
Trace logs debug information to either a context trace (if present) or stderr (if not)
Types ¶
type Mirko ¶
type Mirko struct {
// contains filtered or unexported fields
}
func (*Mirko) Address ¶
Address returns a linkable address where this service is running, sans port. If running within kubernetes, this will return the pod IP. Otherwise, this will guess the main, 'external' IP address of the machine it's running on. On failures, returns loopback address.
func (*Mirko) Context ¶
Context returns a background microservice context that will be canceled when the service is shut down
func (*Mirko) Done ¶
func (m *Mirko) Done() <-chan struct{}
Done() returns a channel that will emit a value when the service is shut down. This should be used in the main() function instead of a select{} call, to allow the background context to be canceled fully.
func (*Mirko) GRPC ¶
GRPC returns the microservice's grpc.Server object
func (*Mirko) HTTPMux ¶
HTTPMux returns the microservice's debug HTTP mux