presets

package
v0.29.1 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2019 License: Apache-2.0 Imports: 5 Imported by: 7 modules, 6 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	Top        = "top"
	Up         = "up"
	Down       = "down"
	Info       = "info"
	Trace      = "trace"
	Minimal    = "minimal"
	Opcodes    = "opcodes"
	IncludeAny = "include-any"
	Stderr     = "stderr"
	Stdout     = "stdout"
	Terminal   = "terminal"
	JSON       = "json"
	Capture    = "capture"
	File       = "file"
)

Variables

This section is empty.

Functions

func BuildSinkConfig

func BuildSinkConfig(ops ...string) (*logconfig.SinkConfig, error)

func Describe

func Describe(name string) string

Types

type Instruction

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

Function to generate part of a tree of Sinks (e.g. append a single child node, or an entire subtree). Each Instruction takes a (sub)root, which it may modify, and appends further child sinks below that root. Returning the new subroot from which to apply any further Presets. When chained together in a pre-order instructions can be composed to form an entire Sink tree.

func Instructons

func Instructons() []Instruction

func (Instruction) Description

func (i Instruction) Description() string

func (Instruction) Name

func (i Instruction) Name() string

Jump to

Keyboard shortcuts

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