logclient

package
v1.0.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 6, 2026 License: Apache-2.0 Imports: 8 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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 LogClient

type LogClient interface {
	RecentLogs(serviceGUID string, authToken string) ([]string, error)
	TailingLogs(serviceGUID string, authToken string) (<-chan string, <-chan error)
}

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

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL