mockhbstream

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2022 License: Apache-2.0 Imports: 5 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HeartbeatStream

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

HeartbeatStream is used to mock HeartbeatStream for test use.

func NewHeartbeatStream

func NewHeartbeatStream() HeartbeatStream

NewHeartbeatStream creates a new HeartbeatStream.

func NewHeartbeatStreamWithTimeout

func NewHeartbeatStreamWithTimeout(timeout time.Duration) HeartbeatStream

NewHeartbeatStreamWithTimeout creates a new HeartbeatStream.

func (HeartbeatStream) BindStream

func (s HeartbeatStream) BindStream(containerID uint64, stream opt.HeartbeatStream)

BindStream mock method.

func (HeartbeatStream) Recv

Recv mocks method.

func (HeartbeatStream) Send

Send mocks method.

func (HeartbeatStream) SendMsg

SendMsg is used to send the message.

Jump to

Keyboard shortcuts

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