monitor

package
v0.1.19 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2023 License: MIT Imports: 7 Imported by: 0

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

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppendToFile

func AppendToFile(ctx *b.Context, spec m.Map, msg *b.Message)

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.

func ReplayFromFile

func ReplayFromFile(ctx *b.Context, spec m.Map, msg *b.Message)

func Wrap

func Wrap(ctx *b.Context, wm *b.WrappedMessage, rcvr string)

Wrap takes a previously recorded (wrapped) message, puts it as payload in a new message and forwards it to the receiver given.

func WrapFromFile

func WrapFromFile(ctx *b.Context, spec m.Map, msg *b.Message)

Types

type DataHandler

type DataHandler = func(*b.Context, *b.WrappedMessage, string)

Jump to

Keyboard shortcuts

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