mockhbstream

package
v0.0.0-...-3a1a44b Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

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 (HeartbeatStream) Recv

Recv mocks method.

func (HeartbeatStream) Send

Send mocks method.

func (HeartbeatStream) SendMsg

SendMsg is used to send the message.

type HeartbeatStreams

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

HeartbeatStreams is used to mock heartbeatstreams for test use.

func NewHeartbeatStreams

func NewHeartbeatStreams(clusterID uint64) *HeartbeatStreams

NewHeartbeatStreams creates a new HeartbeatStreams.

func (*HeartbeatStreams) MsgCh

MsgCh returns the internal channel which contains the heartbeat responses from PD. It can be used to inspect the content of a PD response

func (*HeartbeatStreams) 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