Documentation ¶
Index ¶
- func GenerateUniqueID(length int) string
- func Name2Color(name string) func(a ...interface{}) string
- type ColorTracker
- type Connector
- type LogObserver
- type PCLog
- type PcLogger
- type PcNilLog
- type ProcessLogBuffer
- func (b *ProcessLogBuffer) Close()
- func (b *ProcessLogBuffer) GetLogLength() int
- func (b *ProcessLogBuffer) GetLogRange(offsetFromEnd, limit int) []string
- func (b *ProcessLogBuffer) GetLogsAndSubscribe(observer LogObserver)
- func (b *ProcessLogBuffer) Subscribe(observer LogObserver)
- func (b *ProcessLogBuffer) UnSubscribe(observer LogObserver)
- func (b *ProcessLogBuffer) Write(message string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateUniqueID ¶ added in v0.43.1
func Name2Color ¶ added in v1.46.0
Name2Color returns the color for the given name.
Types ¶
type ColorTracker ¶ added in v1.46.0
type ColorTracker struct {
// contains filtered or unexported fields
}
func NewColorTracker ¶ added in v1.46.0
func NewColorTracker() *ColorTracker
func (*ColorTracker) GetColor ¶ added in v1.46.0
func (c *ColorTracker) GetColor(name string) func(a ...interface{}) string
GetColor returns the color for the given name.
type Connector ¶ added in v0.43.1
type Connector struct { LogObserver // contains filtered or unexported fields }
func NewConnector ¶ added in v0.43.1
func (*Connector) GetTailLength ¶ added in v0.43.1
func (*Connector) GetUniqueID ¶ added in v0.43.1
type LogObserver ¶ added in v0.43.1
type PcNilLog ¶
type PcNilLog struct { }
func NewNilLogger ¶
func NewNilLogger() *PcNilLog
type ProcessLogBuffer ¶
type ProcessLogBuffer struct {
// contains filtered or unexported fields
}
func NewLogBuffer ¶
func NewLogBuffer(size int) *ProcessLogBuffer
func (*ProcessLogBuffer) Close ¶ added in v0.55.0
func (b *ProcessLogBuffer) Close()
func (*ProcessLogBuffer) GetLogLength ¶ added in v0.10.0
func (b *ProcessLogBuffer) GetLogLength() int
func (*ProcessLogBuffer) GetLogRange ¶ added in v0.10.0
func (b *ProcessLogBuffer) GetLogRange(offsetFromEnd, limit int) []string
func (*ProcessLogBuffer) GetLogsAndSubscribe ¶ added in v0.10.0
func (b *ProcessLogBuffer) GetLogsAndSubscribe(observer LogObserver)
func (*ProcessLogBuffer) Subscribe ¶ added in v0.43.1
func (b *ProcessLogBuffer) Subscribe(observer LogObserver)
func (*ProcessLogBuffer) UnSubscribe ¶ added in v0.10.0
func (b *ProcessLogBuffer) UnSubscribe(observer LogObserver)
func (*ProcessLogBuffer) Write ¶
func (b *ProcessLogBuffer) Write(message string)
Click to show internal directories.
Click to hide internal directories.