response

package
v1.1.10 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Stream

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

func New

func New(respFunc substreams.ResponseFunc) *Stream

func (*Stream) BlockScopedData

func (s *Stream) BlockScopedData(in *pbsubstreamsrpc.BlockScopedData) error

func (*Stream) InitialProgressMessages

func (s *Stream) InitialProgressMessages(in map[string]block.Ranges) error

func (*Stream) RPCFailedProgressResponse

func (s *Stream) RPCFailedProgressResponse(moduleName, reason string, logs []string, logsTruncated bool) error

func (*Stream) RPCProcessedBytes

func (s *Stream) RPCProcessedBytes(
	moduleName string,
	bytesReadDelta uint64,
	bytesWrittenDelta uint64,
	totalBytesRead uint64,
	totalBytesWritten uint64,
	nanoSeconds uint64,
) error

func (*Stream) RPCRangeProgressResponse

func (s *Stream) RPCRangeProgressResponse(moduleNames []string, start, end uint64) error

Jump to

Keyboard shortcuts

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