logger

package
v0.0.0-...-7107d2d Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ComponentName

type ComponentName string

ComponentName is a name of the component

var (
	// ComponentMain is a name of the main component
	ComponentMain ComponentName = "main"
	// ComponentStorage is a name of the storage component
	ComponentStorage ComponentName = "storage"
	// ComponentCollector is a name of the collector component
	ComponentCollector ComponentName = "collector"
	// ComponentExecutor is a name of the executor component
	ComponentExecutor ComponentName = "executor"
	// ComponentRobot is a name of the robot component
	ComponentRobot ComponentName = "robot"
	// ComponentParser is a name of the parser component
	ComponentParser ComponentName = "parser"
	// ComponentBatch is a name of the batch component
	ComponentBatch ComponentName = "batch"
)

type Labels

type Labels struct {
	// Version is a version of the application
	Version string
	// UserName is a name of the user
	UserName string
	// OrgName is a name of the organization
	OrgName string
	// Component is a name of the component
	Component ComponentName
	// ChName is a name of the channel
	ChName string
	// DstChName is a name of the destination channel
	DstChName string
	// SrcChName is a name of the source channel
	SrcChName string
}

Labels is a struct with labels for logger

func (Labels) Fields

func (l Labels) Fields() (fields []glog.Field)

Fields returns fields for logger

Jump to

Keyboard shortcuts

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