stream

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LogBlock

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

func (*LogBlock) Disable

func (l *LogBlock) Disable() types.LogBlockInterface

func (*LogBlock) Do

func (l *LogBlock) Do(f func())

func (*LogBlock) DoError

func (l *LogBlock) DoError(f func() error) error

func (*LogBlock) Enable

func (l *LogBlock) Enable() types.LogBlockInterface

func (*LogBlock) Options

func (l *LogBlock) Options(f func(options types.LogBlockOptionsInterface)) types.LogBlockInterface

type LogBlockOptions

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

func (*LogBlockOptions) DisableIfLevelNotAccepted

func (opts *LogBlockOptions) DisableIfLevelNotAccepted()

func (*LogBlockOptions) Mute added in v0.4.3

func (opts *LogBlockOptions) Mute()

func (*LogBlockOptions) Style

func (opts *LogBlockOptions) Style(s color.Style)

func (*LogBlockOptions) WithIndent

func (opts *LogBlockOptions) WithIndent()

func (*LogBlockOptions) WithoutLogOptionalLn

func (opts *LogBlockOptions) WithoutLogOptionalLn()

type LogProcess

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

func (*LogProcess) Disable

func (l *LogProcess) Disable() types.LogProcessInterface

func (*LogProcess) Do

func (l *LogProcess) Do(f func())

func (*LogProcess) DoError

func (l *LogProcess) DoError(f func() error) error

func (*LogProcess) Enable

func (l *LogProcess) Enable() types.LogProcessInterface

func (*LogProcess) End

func (l *LogProcess) End()

func (*LogProcess) Fail

func (l *LogProcess) Fail()

func (*LogProcess) Options

func (*LogProcess) Start

func (l *LogProcess) Start()

func (*LogProcess) StepEnd

func (l *LogProcess) StepEnd(format string, a ...interface{})

type LogProcessInline

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

func (*LogProcessInline) Disable

func (*LogProcessInline) Do

func (l *LogProcessInline) Do(f func())

func (*LogProcessInline) DoError

func (l *LogProcessInline) DoError(f func() error) error

func (*LogProcessInline) Enable

func (*LogProcessInline) Options

type LogProcessInlineOptions

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

func (*LogProcessInlineOptions) DisableIfLevelNotAccepted

func (opts *LogProcessInlineOptions) DisableIfLevelNotAccepted()

func (*LogProcessInlineOptions) Mute added in v0.4.3

func (opts *LogProcessInlineOptions) Mute()

func (*LogProcessInlineOptions) Style

func (opts *LogProcessInlineOptions) Style(s color.Style)

type LogProcessOptions

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

func (*LogProcessOptions) DisableIfLevelNotAccepted

func (opts *LogProcessOptions) DisableIfLevelNotAccepted()

func (*LogProcessOptions) InfoSectionFunc

func (opts *LogProcessOptions) InfoSectionFunc(f func(err error))

func (*LogProcessOptions) Mute added in v0.4.3

func (opts *LogProcessOptions) Mute()

func (*LogProcessOptions) Style

func (opts *LogProcessOptions) Style(style color.Style)

func (*LogProcessOptions) SuccessInfoSectionFunc

func (opts *LogProcessOptions) SuccessInfoSectionFunc(f func())

func (*LogProcessOptions) WithIndent

func (opts *LogProcessOptions) WithIndent()

func (*LogProcessOptions) WithoutElapsedTime

func (opts *LogProcessOptions) WithoutElapsedTime()

func (*LogProcessOptions) WithoutLogOptionalLn

func (opts *LogProcessOptions) WithoutLogOptionalLn()

type StateAndModes added in v0.4.4

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

func NewStreamState

func NewStreamState() *StateAndModes

func (*StateAndModes) ContentWidth added in v0.4.4

func (s *StateAndModes) ContentWidth() int

func (*StateAndModes) DecreaseIndent added in v0.4.4

func (s *StateAndModes) DecreaseIndent()

func (*StateAndModes) DisableGitlabCollapsibleSections added in v0.4.4

func (s *StateAndModes) DisableGitlabCollapsibleSections()

func (*StateAndModes) DisableLineWrapping added in v0.4.4

func (s *StateAndModes) DisableLineWrapping()

func (*StateAndModes) DisableLogProcessBorder added in v0.4.4

func (s *StateAndModes) DisableLogProcessBorder()

func (*StateAndModes) DisableOptionalLn added in v0.4.4

func (s *StateAndModes) DisableOptionalLn()

func (*StateAndModes) DisablePrefix added in v0.6.0

func (s *StateAndModes) DisablePrefix()

func (*StateAndModes) DisablePrefixDuration added in v0.6.0

func (s *StateAndModes) DisablePrefixDuration()

func (*StateAndModes) DisablePrefixTime added in v0.6.0

func (s *StateAndModes) DisablePrefixTime()

func (*StateAndModes) DisablePrettyLog added in v0.4.4

func (s *StateAndModes) DisablePrettyLog()

func (*StateAndModes) DisableProxyStreamDataFormatting added in v0.4.4

func (s *StateAndModes) DisableProxyStreamDataFormatting()

func (*StateAndModes) DisableStyle added in v0.4.4

func (s *StateAndModes) DisableStyle()

func (*StateAndModes) DoErrorWithIndent added in v0.4.4

func (s *StateAndModes) DoErrorWithIndent(f func() error) error

func (*StateAndModes) DoErrorWithProxyStreamDataFormatting added in v0.4.4

func (s *StateAndModes) DoErrorWithProxyStreamDataFormatting(f func() error) error

func (*StateAndModes) DoErrorWithTag added in v0.4.4

func (s *StateAndModes) DoErrorWithTag(value string, style color.Style, f func() error) error

func (*StateAndModes) DoErrorWithoutIndent added in v0.4.4

func (s *StateAndModes) DoErrorWithoutIndent(f func() error) error

func (*StateAndModes) DoErrorWithoutProxyStreamDataFormatting added in v0.4.4

func (s *StateAndModes) DoErrorWithoutProxyStreamDataFormatting(f func() error) error

func (*StateAndModes) DoWithIndent added in v0.4.4

func (s *StateAndModes) DoWithIndent(f func())

func (*StateAndModes) DoWithProxyStreamDataFormatting added in v0.4.4

func (s *StateAndModes) DoWithProxyStreamDataFormatting(f func())

func (*StateAndModes) DoWithTag added in v0.4.4

func (s *StateAndModes) DoWithTag(value string, style color.Style, f func())

func (*StateAndModes) DoWithoutIndent added in v0.4.4

func (s *StateAndModes) DoWithoutIndent(f func())

func (*StateAndModes) DoWithoutProxyStreamDataFormatting added in v0.4.4

func (s *StateAndModes) DoWithoutProxyStreamDataFormatting(f func())

func (*StateAndModes) EnableGitlabCollapsibleSections added in v0.4.4

func (s *StateAndModes) EnableGitlabCollapsibleSections()

func (*StateAndModes) EnableLineWrapping added in v0.4.4

func (s *StateAndModes) EnableLineWrapping()

func (*StateAndModes) EnableLogProcessBorder added in v0.4.4

func (s *StateAndModes) EnableLogProcessBorder()

func (*StateAndModes) EnableOptionalLn added in v0.4.4

func (s *StateAndModes) EnableOptionalLn()

func (*StateAndModes) EnablePrefixDuration added in v0.6.0

func (s *StateAndModes) EnablePrefixDuration()

func (*StateAndModes) EnablePrefixTime added in v0.6.0

func (s *StateAndModes) EnablePrefixTime()

func (*StateAndModes) EnableProxyStreamDataFormatting added in v0.4.4

func (s *StateAndModes) EnableProxyStreamDataFormatting()

func (*StateAndModes) EnableStyle added in v0.4.4

func (s *StateAndModes) EnableStyle()

func (*StateAndModes) FormatWithStyle added in v0.5.2

func (s *StateAndModes) FormatWithStyle(style color.Style, format string, a ...interface{}) string

func (*StateAndModes) IncreaseIndent added in v0.4.4

func (s *StateAndModes) IncreaseIndent()

func (*StateAndModes) IsGitlabCollapsibleSections added in v0.4.4

func (s *StateAndModes) IsGitlabCollapsibleSections() bool

func (*StateAndModes) IsLineWrappingEnabled added in v0.4.4

func (s *StateAndModes) IsLineWrappingEnabled() bool

func (*StateAndModes) IsLogProcessBorderEnabled added in v0.4.4

func (s *StateAndModes) IsLogProcessBorderEnabled() bool

func (*StateAndModes) IsMuted added in v0.4.4

func (s *StateAndModes) IsMuted() bool

func (*StateAndModes) IsPrefixDurationEnabled added in v0.6.0

func (s *StateAndModes) IsPrefixDurationEnabled() bool

func (*StateAndModes) IsPrefixTimeEnabled added in v0.6.0

func (s *StateAndModes) IsPrefixTimeEnabled() bool

func (*StateAndModes) IsProxyStreamDataFormattingEnabled added in v0.4.4

func (s *StateAndModes) IsProxyStreamDataFormattingEnabled() bool

func (*StateAndModes) IsStyleEnabled added in v0.4.4

func (s *StateAndModes) IsStyleEnabled() bool

func (*StateAndModes) LogProcessDownAndRightBorderSign added in v0.4.4

func (s *StateAndModes) LogProcessDownAndRightBorderSign() string

func (*StateAndModes) LogProcessUpAndRightBorderSign added in v0.4.4

func (s *StateAndModes) LogProcessUpAndRightBorderSign() string

func (*StateAndModes) LogProcessVerticalAndRightBorderSign added in v0.4.4

func (s *StateAndModes) LogProcessVerticalAndRightBorderSign() string

func (*StateAndModes) LogProcessVerticalBorderSign added in v0.4.4

func (s *StateAndModes) LogProcessVerticalBorderSign() string

func (*StateAndModes) Mute added in v0.4.4

func (s *StateAndModes) Mute()

func (*StateAndModes) ProcessesBorderBetweenIndentWidth added in v0.4.4

func (s *StateAndModes) ProcessesBorderBetweenIndentWidth() int

func (*StateAndModes) ProcessesBorderIndentWidth added in v0.4.4

func (s *StateAndModes) ProcessesBorderIndentWidth() int

func (*StateAndModes) ResetIndent added in v0.4.4

func (s *StateAndModes) ResetIndent()

func (*StateAndModes) ResetPrefixDurationStartTime added in v0.6.0

func (s *StateAndModes) ResetPrefixDurationStartTime()

func (*StateAndModes) ResetTag added in v0.4.4

func (s *StateAndModes) ResetTag()

func (*StateAndModes) ServiceWidth added in v0.4.4

func (s *StateAndModes) ServiceWidth() int

func (*StateAndModes) SetPrefix added in v0.4.4

func (s *StateAndModes) SetPrefix(value string)

func (*StateAndModes) SetPrefixStyle added in v0.4.4

func (s *StateAndModes) SetPrefixStyle(style color.Style)

func (*StateAndModes) SetPrefixTimeFormat added in v0.6.0

func (s *StateAndModes) SetPrefixTimeFormat(format string)

func (*StateAndModes) SetTag added in v0.4.4

func (s *StateAndModes) SetTag(value string)

func (*StateAndModes) SetTagStyle added in v0.4.4

func (s *StateAndModes) SetTagStyle(style color.Style)

func (*StateAndModes) SetTagWithStyle added in v0.4.4

func (s *StateAndModes) SetTagWithStyle(value string, style color.Style)

func (*StateAndModes) SetWidth added in v0.4.4

func (s *StateAndModes) SetWidth(value int)

func (*StateAndModes) SharedState added in v0.4.4

func (s *StateAndModes) SharedState() *StateAndModes

func (*StateAndModes) SubState added in v0.4.4

func (s *StateAndModes) SubState() *StateAndModes

func (*StateAndModes) Unmute added in v0.4.4

func (s *StateAndModes) Unmute()

func (*StateAndModes) Width added in v0.4.4

func (s *StateAndModes) Width() int

type Stream

type Stream struct {
	io.Writer
	*StateAndModes
}

func NewStream

func NewStream(w io.Writer, state *StateAndModes) *Stream

func (*Stream) FitText

func (s *Stream) FitText(text string, options types.FitTextOptions) string

func (*Stream) FormatAndLogF

func (s *Stream) FormatAndLogF(style color.Style, cacheIncompleteLine bool, format string, a ...interface{})

func (*Stream) NewLogBlock

func (s *Stream) NewLogBlock(manager types.ManagerInterface, format string, a ...interface{}) *LogBlock

func (*Stream) NewLogProcess

func (s *Stream) NewLogProcess(manager types.ManagerInterface, format string, a ...interface{}) *LogProcess

func (*Stream) NewLogProcessInline

func (s *Stream) NewLogProcessInline(manager types.ManagerInterface, format string, a ...interface{}) *LogProcessInline

func (*Stream) Reset added in v0.4.3

func (s *Stream) Reset()

func (*Stream) ResetModes added in v0.4.4

func (s *Stream) ResetModes()

func (*Stream) ResetState added in v0.4.4

func (s *Stream) ResetState()

func (*Stream) Write added in v0.5.2

func (s *Stream) Write(data []byte) (int, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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