eventlog

package
v0.5.19 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 10, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCtrl

func NewCtrl(c *core.Core, size int) core.LogCtrl

Types

type Ctrl

type Ctrl struct {
	// contains filtered or unexported fields
}

func (*Ctrl) Dump

func (c *Ctrl) Dump() ([]byte, error)

func (*Ctrl) NewEvent

func (c *Ctrl) NewEvent(msg string, typ core.LogSource, srcChar int, keysAndValues ...interface{}) core.LogEvent

func (*Ctrl) NewEventBuildMsg

func (c *Ctrl) NewEventBuildMsg(typ core.LogSource, srcChar int, msg ...string) core.LogEvent

type Event

type Event struct {
	Typ      core.LogSource         `json:"event"`
	F        int                    `json:"frame"`
	Ended    int                    `json:"ended"`
	SrcChar  int                    `json:"char_index"`
	Msg      string                 `json:"msg,nocopy"`
	Logs     map[string]interface{} `json:"logs"`
	Ordering map[string]int         `json:"ordering"`
	// contains filtered or unexported fields
}

func (*Event) LogSource

func (e *Event) LogSource() core.LogSource

func (Event) MarshalEasyJSON

func (v Event) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (Event) MarshalJSON

func (v Event) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*Event) SetEnded

func (e *Event) SetEnded(end int)

func (*Event) Src

func (e *Event) Src() int

func (*Event) StartFrame

func (e *Event) StartFrame() int

func (*Event) UnmarshalEasyJSON

func (v *Event) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*Event) UnmarshalJSON

func (v *Event) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

func (*Event) Write

func (e *Event) Write(keysAndValues ...interface{})

type EventArr

type EventArr []*Event

func (EventArr) MarshalEasyJSON

func (v EventArr) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (EventArr) MarshalJSON

func (v EventArr) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*EventArr) UnmarshalEasyJSON

func (v *EventArr) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*EventArr) UnmarshalJSON

func (v *EventArr) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL