fakepulsar

package
v0.8.7 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2019 License: Apache-2.0, BSD-3-Clause-Clear Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakePulsar

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

FakePulsar is a struct which uses at void network state.

func NewFakePulsar

func NewFakePulsar(callback network.PulseHandler, pulseDuration time.Duration) *FakePulsar

NewFakePulsar creates and returns a new FakePulsar.

func (*FakePulsar) Start

func (fp *FakePulsar) Start(ctx context.Context, firstPulseTime time.Time)

Start starts sending a fake pulse.

func (*FakePulsar) Stop

func (fp *FakePulsar) Stop(ctx context.Context)

Stop sending a fake pulse.

Jump to

Keyboard shortcuts

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