Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CountInfo ¶
type CountInfo struct {
// contains filtered or unexported fields
}
CountInfo records a simple count
func NewCountInfo ¶
NewCountInfo creates a new CountInfo instance
type InfoProvider ¶
InfoProvider is a general interface to provide info about a log source. It is used in the agent status page. The expected usage is for a piece of code that wants to surface something on the status page register an info provider with the source with a unique key/name. This file contains useful base implementations, but InfoProvider can be extended/implemented for more complex data.
When implementing InfoProvider - be aware of the 2 ways it is used by the status page:
- when a single message is returned, the statuspage will display a single line: InfoKey(): Info()[0]
- when multiple messages are returned, the status page will display an indented list: InfoKey(): Info()[0] Info()[1] Info()[n]
InfoKey only needs to be unique per source, and should be human readable.
type LogStatus ¶
type LogStatus struct {
// contains filtered or unexported fields
}
LogStatus tracks errors and success.
type MappedInfo ¶
type MappedInfo struct {
// contains filtered or unexported fields
}
MappedInfo collects multiple info messages with a unique key
func NewMappedInfo ¶
func NewMappedInfo(key string) *MappedInfo
NewMappedInfo creates a new MappedInfo instance
func (*MappedInfo) RemoveMessage ¶
func (m *MappedInfo) RemoveMessage(key string)
RemoveMessage removes a message with a unique key
func (*MappedInfo) SetMessage ¶
func (m *MappedInfo) SetMessage(key string, message string)
SetMessage sets a message with a unique key