util

package
v0.9.28 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2022 License: Apache-2.0 Imports: 9 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseJSONRPC

func ParseJSONRPC(r io.Reader, cb func(dec *json.Decoder) error) error

ParseJSONRPC manual parse JSONRPC with a callback on the results. Memory efficient for large result arrays.

func SendS3Bytes added in v0.9.23

func SendS3Bytes(ctx context.Context, hc *http.Client, retryHTTP uint64, addr, network, chainID, typ, file string, position uint64, body []byte) error

Types

type S3Chunker added in v0.9.23

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

func NewS3Chunker added in v0.9.23

func NewS3Chunker(maxSize, maxChunk uint64, send func([]byte, uint64) error) *S3Chunker

func (*S3Chunker) Append added in v0.9.23

func (c *S3Chunker) Append(data func(pos, maxChunk uint64) ([]byte, error)) error

func (*S3Chunker) Final added in v0.9.23

func (c *S3Chunker) Final() error

Jump to

Keyboard shortcuts

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