Documentation ¶
Index ¶
- func DefaultMsgReceiverMock(me []*MsgError) *msgReceiverMock
- func DefaultMsgSenderMock(s *ImmuServiceSender_StreamMock, chunkSize int) *msgSenderMock
- func GenerateDummyFile(filename string, size int) (*os.File, error)
- func GetSHA256(r io.Reader) ([]byte, error)
- func GetTrailer(payloadSize int) []byte
- type ChunkError
- type ErrReader
- type ImmuServiceReceiver_StreamMock
- type ImmuServiceSender_StreamMock
- type MsgError
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 GetTrailer ¶
Types ¶
type ChunkError ¶
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
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
Click to show internal directories.
Click to hide internal directories.