Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HelloWorldEventLogger ¶
type HelloWorldEventLogger struct {
// contains filtered or unexported fields
}
HelloWorldEventLogger logs hello world events.
func NewHelloWorldEventLogger ¶
func NewHelloWorldEventLogger(logger Logger) *HelloWorldEventLogger
NewHelloWorldEventLogger returns a new HelloWorldEventLogger.
type Logger ¶
type Logger interface { // Debug logs an info event. Debug(msg string, fields ...map[string]interface{}) // Info logs an info event. Info(msg string, fields ...map[string]interface{}) // WithFields annotates a logger with some context. WithFields(fields map[string]interface{}) Logger }
Logger is the fundamental interface for all log operations.
type SaidHelloTo ¶
SaidHelloTo indicates that hello was said to someone.
type SayHelloEventLogger ¶
type SayHelloEventLogger struct {
// contains filtered or unexported fields
}
SayHelloEventLogger logs hello world events.
func NewSayHelloEventLogger ¶
func NewSayHelloEventLogger(logger Logger) *SayHelloEventLogger
NewSayHelloEventLogger returns a new SayHelloEventLogger.
func (*SayHelloEventLogger) SaidHelloTo ¶
func (e *SayHelloEventLogger) SaidHelloTo(ctx context.Context, event SaidHelloTo) error
SaidHelloTo logs a SaidHelloTo event.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.