Documentation ¶
Overview ¶
package monitor provides facilities for recording messages and storing them in files (or remote logging services) in a form (typically using JSON format) that allows for later reading and replaying the messages thus stored.
This kind of message logging may also be used for displaying messages in a user interface, e.g. in the browser using the go-frontend module.
The package also provides generic functionality also for storing messages in databases via the go-storage module.
Index ¶
- func AppendToFile(ctx *b.Context, spec m.Map, msg *b.Message)
- func Replay(ctx *b.Context, wm *b.WrappedMessage, rcvr string)
- func ReplayFromFile(ctx *b.Context, spec m.Map, msg *b.Message)
- func Wrap(ctx *b.Context, wm *b.WrappedMessage, rcvr string)
- func WrapFromFile(ctx *b.Context, spec m.Map, msg *b.Message)
- type DataHandler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Replay ¶
func Replay(ctx *b.Context, wm *b.WrappedMessage, rcvr string)
Replay takes a previously recorded message and forwards it to the receiver given.
Types ¶
type DataHandler ¶
type DataHandler = func(*b.Context, *b.WrappedMessage, string)
Click to show internal directories.
Click to hide internal directories.