Documentation ¶
Index ¶
- type LogBlock
- type LogBlockOptions
- type LogProcess
- func (l *LogProcess) Disable() types.LogProcessInterface
- func (l *LogProcess) Do(f func())
- func (l *LogProcess) DoError(f func() error) error
- func (l *LogProcess) Enable() types.LogProcessInterface
- func (l *LogProcess) End()
- func (l *LogProcess) Fail()
- func (l *LogProcess) Options(f func(options types.LogProcessOptionsInterface)) types.LogProcessInterface
- func (l *LogProcess) Start()
- func (l *LogProcess) StepEnd(format string, a ...interface{})
- type LogProcessInline
- func (l *LogProcessInline) Disable() types.LogProcessInlineInterface
- func (l *LogProcessInline) Do(f func())
- func (l *LogProcessInline) DoError(f func() error) error
- func (l *LogProcessInline) Enable() types.LogProcessInlineInterface
- func (l *LogProcessInline) Options(f func(options types.LogProcessInlineOptionsInterface)) types.LogProcessInlineInterface
- type LogProcessInlineOptions
- type LogProcessOptions
- func (opts *LogProcessOptions) DisableIfLevelNotAccepted()
- func (opts *LogProcessOptions) InfoSectionFunc(f func(err error))
- func (opts *LogProcessOptions) Mute()
- func (opts *LogProcessOptions) Style(style color.Style)
- func (opts *LogProcessOptions) SuccessInfoSectionFunc(f func())
- func (opts *LogProcessOptions) WithIndent()
- func (opts *LogProcessOptions) WithoutElapsedTime()
- func (opts *LogProcessOptions) WithoutLogOptionalLn()
- type StateAndModes
- func (s *StateAndModes) ContentWidth() int
- func (s *StateAndModes) DecreaseIndent()
- func (s *StateAndModes) DisableGitlabCollapsibleSections()
- func (s *StateAndModes) DisableLineWrapping()
- func (s *StateAndModes) DisableLogProcessBorder()
- func (s *StateAndModes) DisableOptionalLn()
- func (s *StateAndModes) DisablePrefix()
- func (s *StateAndModes) DisablePrefixDuration()
- func (s *StateAndModes) DisablePrefixTime()
- func (s *StateAndModes) DisablePrettyLog()
- func (s *StateAndModes) DisableProxyStreamDataFormatting()
- func (s *StateAndModes) DisableStyle()
- func (s *StateAndModes) DoErrorWithIndent(f func() error) error
- func (s *StateAndModes) DoErrorWithProxyStreamDataFormatting(f func() error) error
- func (s *StateAndModes) DoErrorWithTag(value string, style color.Style, f func() error) error
- func (s *StateAndModes) DoErrorWithoutIndent(f func() error) error
- func (s *StateAndModes) DoErrorWithoutProxyStreamDataFormatting(f func() error) error
- func (s *StateAndModes) DoWithIndent(f func())
- func (s *StateAndModes) DoWithProxyStreamDataFormatting(f func())
- func (s *StateAndModes) DoWithTag(value string, style color.Style, f func())
- func (s *StateAndModes) DoWithoutIndent(f func())
- func (s *StateAndModes) DoWithoutProxyStreamDataFormatting(f func())
- func (s *StateAndModes) EnableGitlabCollapsibleSections()
- func (s *StateAndModes) EnableLineWrapping()
- func (s *StateAndModes) EnableLogProcessBorder()
- func (s *StateAndModes) EnableOptionalLn()
- func (s *StateAndModes) EnablePrefixDuration()
- func (s *StateAndModes) EnablePrefixTime()
- func (s *StateAndModes) EnableProxyStreamDataFormatting()
- func (s *StateAndModes) EnableStyle()
- func (s *StateAndModes) FormatWithStyle(style color.Style, format string, a ...interface{}) string
- func (s *StateAndModes) IncreaseIndent()
- func (s *StateAndModes) IsGitlabCollapsibleSections() bool
- func (s *StateAndModes) IsLineWrappingEnabled() bool
- func (s *StateAndModes) IsLogProcessBorderEnabled() bool
- func (s *StateAndModes) IsMuted() bool
- func (s *StateAndModes) IsPrefixDurationEnabled() bool
- func (s *StateAndModes) IsPrefixTimeEnabled() bool
- func (s *StateAndModes) IsProxyStreamDataFormattingEnabled() bool
- func (s *StateAndModes) IsStyleEnabled() bool
- func (s *StateAndModes) LogProcessDownAndRightBorderSign() string
- func (s *StateAndModes) LogProcessUpAndRightBorderSign() string
- func (s *StateAndModes) LogProcessVerticalAndRightBorderSign() string
- func (s *StateAndModes) LogProcessVerticalBorderSign() string
- func (s *StateAndModes) Mute()
- func (s *StateAndModes) ProcessesBorderBetweenIndentWidth() int
- func (s *StateAndModes) ProcessesBorderIndentWidth() int
- func (s *StateAndModes) ResetIndent()
- func (s *StateAndModes) ResetPrefixDurationStartTime()
- func (s *StateAndModes) ResetTag()
- func (s *StateAndModes) ServiceWidth() int
- func (s *StateAndModes) SetPrefix(value string)
- func (s *StateAndModes) SetPrefixStyle(style color.Style)
- func (s *StateAndModes) SetPrefixTimeFormat(format string)
- func (s *StateAndModes) SetTag(value string)
- func (s *StateAndModes) SetTagStyle(style color.Style)
- func (s *StateAndModes) SetTagWithStyle(value string, style color.Style)
- func (s *StateAndModes) SetWidth(value int)
- func (s *StateAndModes) SharedState() *StateAndModes
- func (s *StateAndModes) SubState() *StateAndModes
- func (s *StateAndModes) Unmute()
- func (s *StateAndModes) Width() int
- type Stream
- func (s *Stream) FitText(text string, options types.FitTextOptions) string
- func (s *Stream) FormatAndLogF(style color.Style, cacheIncompleteLine bool, format string, a ...interface{})
- func (s *Stream) NewLogBlock(manager types.ManagerInterface, format string, a ...interface{}) *LogBlock
- func (s *Stream) NewLogProcess(manager types.ManagerInterface, format string, a ...interface{}) *LogProcess
- func (s *Stream) NewLogProcessInline(manager types.ManagerInterface, format string, a ...interface{}) *LogProcessInline
- func (s *Stream) Reset()
- func (s *Stream) ResetModes()
- func (s *Stream) ResetState()
- func (s *Stream) Write(data []byte) (int, error)
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) 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 (l *LogProcess) Options(f func(options types.LogProcessOptionsInterface)) types.LogProcessInterface
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 (l *LogProcessInline) Disable() types.LogProcessInlineInterface
func (*LogProcessInline) Do ¶
func (l *LogProcessInline) Do(f func())
func (*LogProcessInline) DoError ¶
func (l *LogProcessInline) DoError(f func() error) error
func (*LogProcessInline) Enable ¶
func (l *LogProcessInline) Enable() types.LogProcessInlineInterface
func (*LogProcessInline) Options ¶
func (l *LogProcessInline) Options(f func(options types.LogProcessInlineOptionsInterface)) types.LogProcessInlineInterface
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 (*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 (*Stream) FormatAndLogF ¶
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) ResetModes ¶ added in v0.4.4
func (s *Stream) ResetModes()
func (*Stream) ResetState ¶ added in v0.4.4
func (s *Stream) ResetState()
Click to show internal directories.
Click to hide internal directories.