Documentation ¶
Index ¶
Constants ¶
View Source
const LogTimestampFormat = "2006-01-02T15:04:05.00-0700"
Variables ¶
View Source
var CurrentTimezoneLocation = time.Now().Location()
Functions ¶
func NewLogClientBuilder ¶
func NewLogClientBuilder() *logClientBuilder
Types ¶
type Consumer ¶
type Consumer interface { SetRecentPathBuilder(b consumer.RecentPathBuilder) SetStreamPathBuilder(b consumer.StreamPathBuilder) SetDebugPrinter(debugPrinter consumer.DebugPrinter) RecentLogs(appGuid string, authToken string) ([]*events.LogMessage, error) TailingLogs(appGuid, authToken string) (<-chan *events.LogMessage, <-chan error) }
Wrap interactions with NOAA consumer.consumer inside an interface whose behaviour can be faked in tests
type LogClientBuilder ¶
type LogClientBuilder interface { Endpoint(url string) LogClientBuilder InsecureSkipVerify(skipVerify bool) LogClientBuilder Build() LogClient }
type Sorter ¶
type Sorter interface {
SortRecent(messages []*events.LogMessage) []*events.LogMessage
}
Wrap interactions with noaa.SortRecent inside an interface whose behaviour can be faked in tests
Click to show internal directories.
Click to hide internal directories.