options

package
v1.4.3 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2021 License: MIT Imports: 1 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Fields

type Fields map[string]interface{}

Fields allows to add structured fields to a message.

type Options

type Options struct {
	// Structured fields.
	Fields Fields

	// Flags define behaviors.
	Flag flag.Flag

	// OutputsNames are the names of the outputs to be used.
	OutputsNames []string

	// ProcessorsNames are the names of the processors to be used.
	ProcessorsNames []string

	// Tags are indicators consumed by `Output`s and `Processor`s.
	Tags []string
}

Options extends printer's capabilities.

Note: Changes in the `Message` or `Options` data structure may trigger changes in the `Copy`, `mergeOptions`, `New`, or `NewOptions` methods.

func New added in v1.4.0

func New() *Options

New is the `Options` factory.

Note: Changes in the `Message` or `Options` data structure may reflects here.

Jump to

Keyboard shortcuts

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