streamtest

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2021 License: Apache-2.0 Imports: 7 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

func DefaultMsgReceiverMock

func DefaultMsgReceiverMock(me []*MsgError) *msgReceiverMock

func DefaultMsgSenderMock

func DefaultMsgSenderMock(s *ImmuServiceSender_StreamMock, chunkSize int) *msgSenderMock

func GenerateDummyFile

func GenerateDummyFile(filename string, size int) (*os.File, error)

func GetSHA256

func GetSHA256(r io.Reader) ([]byte, error)

func GetTrailer

func GetTrailer(payloadSize int) []byte

Types

type ChunkError

type ChunkError struct {
	C *schema.Chunk
	E error
}

type ErrReader

type ErrReader struct {
	ReadF func([]byte) (int, error)
}

func (*ErrReader) Read

func (r *ErrReader) Read(m []byte) (int, error)

type ImmuServiceReceiver_StreamMock

type ImmuServiceReceiver_StreamMock struct {
	RecvF func() (*schema.Chunk, error)
	// contains filtered or unexported fields
}

func DefaultImmuServiceReceiverStreamMock

func DefaultImmuServiceReceiverStreamMock(ce []*ChunkError) *ImmuServiceReceiver_StreamMock

func (*ImmuServiceReceiver_StreamMock) Recv

type ImmuServiceSender_StreamMock

type ImmuServiceSender_StreamMock struct {
	SendF    func(*schema.Chunk) error
	RecvMsgF func(m interface{}) error
}

func DefaultImmuServiceSenderStreamMock

func DefaultImmuServiceSenderStreamMock() *ImmuServiceSender_StreamMock

func (*ImmuServiceSender_StreamMock) RecvMsg

func (iss *ImmuServiceSender_StreamMock) RecvMsg(m interface{}) error

func (*ImmuServiceSender_StreamMock) Send

type MsgError

type MsgError struct {
	M []byte
	E error
}

Jump to

Keyboard shortcuts

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