options

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

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

Go to latest
Published: Aug 30, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewFormatOption

func NewFormatOption() formatOptions

func NewOutputOption

func NewOutputOption() outputOption

NewHideOptions return OutputHideOptions set with all NOT hide

Types

type Child

type Child interface {
	// contains filtered or unexported methods
}

type Controller

type Controller interface {
	OutputController
	FormatController
}

func NewController

func NewController(options ...Child) Controller

type FormatController

type FormatController interface {
	IsFormatReadable() bool
	IsFormatJson() bool
}

type FormatOptions

type FormatOptions interface {
	FormatJson() FormatOptions
	FormatText() FormatOptions
	FormatReadable() FormatOptions
	FormatOneline() FormatOptions
	FormatMessageRowLimit(row uint) FormatOptions
	FormatMessageRowUnlimit() FormatOptions
	// contains filtered or unexported methods
}

type OutputController

type OutputController interface {
	OutputLevel(lvl string) string
	OutputCursor(cursor string) string
	OutputTimestamp(t *time.Time) *time.Time
	OutputMessage(msg interface{}) interface{}
	OutputData(data interface{}) interface{}
	OutputStructName(sn string) string
	IsFormatMsgRowLimitted() bool
	LimitRowNum() int
}

type OutputOption

type OutputOption interface {
	HideLevel() OutputOption
	ShowLevel() OutputOption
	HideTimestamp() OutputOption
	ShowTimestamp() OutputOption
	HideCursor() OutputOption
	ShowCursor() OutputOption

	HideMessage() OutputOption
	ShowMessage() OutputOption
	HideData() OutputOption
	ShowData() OutputOption
	HideStructName() OutputOption
	ShowStructName() OutputOption
	// contains filtered or unexported methods
}

Jump to

Keyboard shortcuts

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