client

package
v0.0.0-...-c0a7c97 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2022 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Beamer

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

Beamer ...

func NewBeamer

func NewBeamer(address string) *Beamer

NewBeamer host:port

func (*Beamer) Beam

func (bm *Beamer) Beam(batchsize, batchcount int, start <-chan struct{}) (uint64, <-chan error, <-chan int64)

Beam send batchsize bytes random data by batchcount times

func (*Beamer) Close

func (bm *Beamer) Close() (err error)

Close ...

func (*Beamer) Connect

func (bm *Beamer) Connect(network string, timeout time.Duration) (err error)

Connect to address in timeout

func (*Beamer) See

func (bm *Beamer) See(batchsize, batchcount int, hash uint64) (successcount int, max, min, sum int64, err error)

See whether all data have been reflected by peer

Jump to

Keyboard shortcuts

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