mock

package
v1.0.7 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2023 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 AvroEncoderStub

type AvroEncoderStub struct {
	EncodeCalled func(record avro.AvroRecord) ([]byte, error)
}

AvroEncoderStub -

func (*AvroEncoderStub) Encode

func (aes *AvroEncoderStub) Encode(record avro.AvroRecord) ([]byte, error)

Encode -

type HTTPClientStub

type HTTPClientStub struct {
	GetCalled func(url string) (resp *http.Response, err error)
}

HTTPClientStub -

func (*HTTPClientStub) Get

func (hcs *HTTPClientStub) Get(url string) (resp *http.Response, err error)

Get -

type HyperBlockProcessorStub

type HyperBlockProcessorStub struct {
	ProcessCalled func(hyperBlock *hyperBlock.HyperBlock) (*schema.HyperBlock, error)
}

HyperBlockProcessorStub -

func (*HyperBlockProcessorStub) Process

func (hbp *HyperBlockProcessorStub) Process(hyperBlock *hyperBlock.HyperBlock) (*schema.HyperBlock, error)

Process -

type LogHandlerStub

type LogHandlerStub struct {
	ProcessLogCalled func(log *transaction.ApiLogs) *schema.Log
}

LogHandlerStub -

func (*LogHandlerStub) ProcessLog

func (lhs *LogHandlerStub) ProcessLog(log *transaction.ApiLogs) *schema.Log

ProcessLog -

type ReadCloserStub

type ReadCloserStub struct {
	ReadCalled  func(p []byte) (n int, err error)
	CloseCalled func() error
}

ReadCloserStub -

func (*ReadCloserStub) Close

func (rcs *ReadCloserStub) Close() error

Close -

func (*ReadCloserStub) Read

func (rcs *ReadCloserStub) Read(p []byte) (n int, err error)

Read -

type ReceiptHandlerStub

type ReceiptHandlerStub struct {
	ProcessReceiptCalled func(apiReceipt *transaction.ApiReceipt) (*schema.Receipt, error)
}

ReceiptHandlerStub -

func (*ReceiptHandlerStub) ProcessReceipt

func (rhs *ReceiptHandlerStub) ProcessReceipt(apiReceipt *transaction.ApiReceipt) (*schema.Receipt, error)

ProcessReceipt -

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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