Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DummyLogger ¶
type DummyLogger struct {
// contains filtered or unexported fields
}
DummyLogger represents a process which will write silly messages to underlying writer. Implements io.Writer interface by writing silly message into given byte slice.
func New ¶
func New(options ...Option) *DummyLogger
type Option ¶
type Option func(l *DummyLogger)
Option represents functional options pattern for DummyLogger type, a function which receive a pointer to DummyLogger struct. Option functions can only be passed to DummyLogger constructor function New, and can change the default value of DummyLogger struct.
func WithServerAddr ¶
WithServerAddr sets DummyLogger server address.
Click to show internal directories.
Click to hide internal directories.