fakes

package
v2.1.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2019 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfigurableProbe

type ConfigurableProbe struct {
	FindFunc func(time.Time, string, int) (int, error)
}

func (*ConfigurableProbe) Find

func (m *ConfigurableProbe) Find(start time.Time, needle string, count int) (int, error)

type FailingWriter

type FailingWriter struct {
	Err error
}

func (*FailingWriter) Write

func (f *FailingWriter) Write(p []byte) (n int, err error)

type LosslessProbe

type LosslessProbe struct {
}

func (*LosslessProbe) Find

func (m *LosslessProbe) Find(start time.Time, needle string, count int) (int, error)

type Writer

type Writer struct {
	Writes []string
}

func (*Writer) Write

func (m *Writer) Write(p []byte) (n int, err error)

Jump to

Keyboard shortcuts

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