testutils

package
v1.6.1 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitRandom

func InitRandom()

func RandName

func RandName() string

Types

type Entry

type Entry struct {
	Labels model.LabelSet
	Time   time.Time
	Log    string
}

type TestClient

type TestClient struct {
	Log      log.Logger
	Messages []*Entry
	sync.Mutex
}

func (*TestClient) Handle

func (c *TestClient) Handle(ls model.LabelSet, t time.Time, s string) error

Jump to

Keyboard shortcuts

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