spammer

package
v0.2.4-0...-2c2ceb1 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2020 License: Apache-2.0, BSD-2-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IssuePayloadFunc

type IssuePayloadFunc = func(payload payload.Payload) (*tangle.Message, error)

IssuePayloadFunc is a function which issues a payload.

type Spammer

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

Spammer spams messages with a static data payload.

func New

func New(issuePayloadFunc IssuePayloadFunc) *Spammer

New creates a new spammer.

func (*Spammer) Shutdown

func (spammer *Spammer) Shutdown()

Shutdown shuts down the spammer.

func (*Spammer) Start

func (spammer *Spammer) Start(rate int, timeUnit time.Duration)

Start starts the spammer to spam with the given messages per time unit.

Jump to

Keyboard shortcuts

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