custom

package
v0.0.0-...-df570b3 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2018 License: MIT Imports: 9 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BlockDisplay

func BlockDisplay(w io.Writer) metrics.Processors

BlockDisplay writes giving Entries as seperated blocks of contents where the each content is converted within a block like below:

 Message: We must create new standard behaviour
	Function: BuildPack
 +-----------------------------+------------------------------+
 | displayrange.address.bolder | "No 20 tokura flag"          |
 +-----------------------------+------------------------------+
 +--------------------------+----------+
 | displayrange.bolder.size |  20      |
 +--------------------------+----------+

func BlockDisplayWith

func BlockDisplayWith(w io.Writer, header string, filterFn func(metrics.Entry) bool) metrics.Processors

BlockDisplayWith writes giving Entries as seperated blocks of contents where the each content is converted within a block like below:

 Message: We must create new standard behaviour
	Function: BuildPack
 +-----------------------------+------------------------------+
 | displayrange.address.bolder | "No 20 tokura flag"          |
 +-----------------------------+------------------------------+
 +--------------------------+----------+
 | displayrange.bolder.size |  20      |
 +--------------------------+----------+

func FlatDisplay

func FlatDisplay(w io.Writer) metrics.Processors

FlatDisplay writes giving Entries as seperated blocks of contents where the each content is converted within a block like below:

Message: We must create new standard behaviour 	Function: BuildPack  |  display: red,  words: 20,

Message: We must create new standard behaviour 	Function: BuildPack  |  display: red,  words: 20,

func FlatDisplayWith

func FlatDisplayWith(w io.Writer, header string, filterFn func(metrics.Entry) bool) metrics.Processors

FlatDisplayWith writes giving Entries as seperated blocks of contents where the each content is converted within a block like below:

[Header]: We must create new standard behaviour 	Function: BuildPack  |  display: red,  words: 20,

[Header]: We must create new standard behaviour 	Function: BuildPack  |  display: red,  words: 20,

func StackDisplay

func StackDisplay(w io.Writer) metrics.Processors

StackDisplay writes giving Entries as seperated blocks of contents where the each content is converted within a block like below:

 Message: We must create new standard behaviour
	Function: BuildPack
 - displayrange.address.bolder: "No 20 tokura flag"
 - displayrange.bolder.size:  20

func StackDisplayWith

func StackDisplayWith(w io.Writer, header string, tag string, filterFn func(metrics.Entry) bool) metrics.Processors

StackDisplayWith writes giving Entries as seperated blocks of contents where the each content is converted within a block like below:

 [Header]: We must create new standard behaviour
	Function: BuildPack
 [tag] displayrange.address.bolder: "No 20 tokura flag"
 [tag] displayrange.bolder.size:  20

Types

type Emitter

type Emitter struct {
	Sink      io.Writer
	Transform func(metrics.Entry) []byte
}

Emitter emits all entries into the entries into a sink io.writer after transformation from giving transformer function..

func NewEmitter

func NewEmitter(w io.Writer, transform func(metrics.Entry) []byte) *Emitter

NewEmitter returns a new instance of Emitter.

func (*Emitter) Handle

func (ce *Emitter) Handle(e metrics.Entry) error

Handle implements the metrics.metrics interface.

Jump to

Keyboard shortcuts

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