data

package
v0.0.0-...-3b4effe Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2019 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var PredefinedLevels = []string{
	"OFF",
	"ERROR",
	"WARN",
	"INFO",
	"DEBUG",
	"TRACE",
}

PredefinedLevels contains an array with the possible logger levels

Functions

func IsValidLevel

func IsValidLevel(level string) bool

IsValidLevel checks if the provided level is valid or not

Types

type ActuatorData

type ActuatorData struct {
	Levels  Levels  `json:"levels"`
	Loggers Loggers `json:"loggers"`
}

ActuatorData is the top structure to manage actuators and their levels

type Levels

type Levels []string

Levels contains an array of the different available levels

type LoggerLevel

type LoggerLevel struct {
	ConfiguredLevel string `json:"configuredLevel"`
	EffectiveLevel  string `json:"effectiveLevel"`
}

LoggerLevel encapsulate the levels of a logger

type Loggers

type Loggers map[string]LoggerLevel

Loggers contains a map between loggers and their levels

func (Loggers) GetSortedLoggerNames

func (loggers Loggers) GetSortedLoggerNames() []string

GetSortedLoggerNames gets a list of the loggers sorted alphabetically

func (Loggers) PrettyPrint

func (loggers Loggers) PrettyPrint(maxWidth int)

PrettyPrint returns a pretty representation of a list of Loggers

func (Loggers) Raw

func (loggers Loggers) Raw() string

Raw returns the raw representation of a list of Loggers

func (Loggers) String

func (loggers Loggers) String() string

Jump to

Keyboard shortcuts

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