session

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: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Emitter

type Emitter interface {
	Emit(needle string) (int, error)
}

type Probe

type Probe interface {
	Find(start time.Time, needle string, count int) (int, error)
}

type Result

type Result struct {
	GUID  string
	Found int
	Loss  float64
}

type Session

type Session struct {
	// contains filtered or unexported fields
}

func NewSession

func NewSession(emitter Emitter, probe Probe) Session

func (Session) Run

func (s Session) Run(burstInterval time.Duration) (Result, error)

Jump to

Keyboard shortcuts

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