Documentation
¶
Index ¶
Constants ¶
View Source
const ( StagingLog = "STG" RecentLogsLines = 100 )
Variables ¶
This section is empty.
Functions ¶
func GetStreamingLogs ¶
func GetStreamingLogs(appGUID string, client LogCacheClient) (<-chan LogMessage, <-chan error, context.CancelFunc)
Types ¶
type LogCacheClient ¶
type LogCacheClient interface {
Read(
ctx context.Context,
sourceID string,
start time.Time,
opts ...logcache.ReadOption,
) ([]*loggregator_v2.Envelope, error)
}
LogCacheClient is a client for getting logs.
type LogMessage ¶
type LogMessage struct {
Message string
MessageType string
Timestamp time.Time
SourceType string
SourceInstance string
}
func GetRecentLogs ¶
func GetRecentLogs(appGUID string, client LogCacheClient) ([]LogMessage, error)
func (LogMessage) Staging ¶
func (l LogMessage) Staging() bool
Click to show internal directories.
Click to hide internal directories.