Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Log ¶ added in v1.2.0
type Log struct {
// contains filtered or unexported fields
}
Log base model
func (*Log) Close ¶ added in v1.2.0
func (l *Log) Close()
Close waiting for all messages to finish recording
type Logger ¶
type Logger interface {
SetOutput(out io.Writer)
Infof(format string, args ...interface{})
Warnf(format string, args ...interface{})
Errorf(format string, args ...interface{})
Debugf(format string, args ...interface{})
}
Logger base interface
type Message ¶ added in v1.2.0
type Message struct {
Time int64 `json:"time"`
Type string `json:"type"`
Data string `json:"data"`
}
Message model
func (Message) MarshalEasyJSON ¶ added in v1.2.0
MarshalEasyJSON supports easyjson.Marshaler interface
func (Message) MarshalJSON ¶ added in v1.2.0
MarshalJSON supports json.Marshaler interface
func (*Message) UnmarshalEasyJSON ¶ added in v1.2.0
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*Message) UnmarshalJSON ¶ added in v1.2.0
UnmarshalJSON supports json.Unmarshaler interface
Click to show internal directories.
Click to hide internal directories.