substreams

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2023 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReadManifest

func ReadManifest(path string, params []string) (*pbsubstreams.Package, error)

Types

type Config

type Config struct {
	Endpoint string
	APIToken string

	Package          *pbsubstreams.Package
	OutputModuleName string

	Cursor string

	DevelopmentMode bool
	BlockBufferSize int
	FinalBlocksOnly bool
}

type Stream

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

func Run

func Run(cfg *Config) (*Stream, error)

func (*Stream) Close

func (s *Stream) Close() error

func (*Stream) Recv

func (s *Stream) Recv() (*pbursa.Block, error)

Jump to

Keyboard shortcuts

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