Documentation
¶
Index ¶
- type Event
- func (e *Event) AddChild(format string, args ...interface{}) *Event
- func (e *Event) Error(format string, args ...interface{}) *Event
- func (e *Event) Info(format string, args ...interface{}) *Event
- func (e *Event) Log(level string, format string, args ...interface{}) *Event
- func (e *Event) Set(key string, value interface{}) *Event
- type Message
- type WhereEvent
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Event ¶
type Event struct { Title string `json:"title,omitempty"` Params map[string]interface{} `json:"params,omitempty"` Messages []*Message `json:"messages,omitempty"` Children []*Event `json:"children,omitempty"` }
Event is used to records structured events
type Message ¶
type Message struct { Level string `json:"level,omitempty"` Content string `json:"content,omitempty"` }
Message contains level and content
type WhereEvent ¶
type WhereEvent struct { // Name is the name of where op, such as 'and', 'contains'. Name string `json:"name,omitempty"` // Result is the bool result of where op Result bool `json:"result"` // Children contains sub where op events. For example, 'and' may contain 2 children WhereEvent. Children []*WhereEvent `json:"children,omitempty"` }
WhereEvent is the event for 'where' execution.
func (*WhereEvent) AddChild ¶
func (e *WhereEvent) AddChild() *WhereEvent
AddChild adds a where child event and returns child
Click to show internal directories.
Click to hide internal directories.