Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Finished ¶
type Finished func()
Finished defines a function to be returned by logging methods which contain timers
type Logger ¶
type Logger interface { Log() hclog.Logger ServiceStart(address, port string) HealthHandlerCalled() Finished }
Logger defines an interface for common logging operations
type LoggerImpl ¶
type LoggerImpl struct {
// contains filtered or unexported fields
}
LoggerImpl is a concrete implementation for the logger function
func (*LoggerImpl) HealthHandlerCalled ¶
func (l *LoggerImpl) HealthHandlerCalled() Finished
HealthHandlerCalled logs information when the health handler is called, the returned function must be called once work has completed
func (*LoggerImpl) ServiceStart ¶
func (l *LoggerImpl) ServiceStart(address, port string)
ServiceStart logs information about the service start
Click to show internal directories.
Click to hide internal directories.