facade

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: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHyperBlockFacade

func NewHyperBlockFacade(
	multiversxProxyUrl string,
	avroEncoder AvroEncoder,
	multiversxHyperBlockEndpoint api.MultiversxHyperBlockEndpointHandler,
	hyperBlockProcessor covalent.HyperBlockProcessor,
) (*hyperBlockFacade, error)

NewHyperBlockFacade will create a hyper block facade, which can fetch hyper blocks from Multiversx proxy

Types

type AvroEncoder

type AvroEncoder interface {
	Encode(record avro.AvroRecord) ([]byte, error)
}

AvroEncoder should be able to encode any avro schema in a byte array

Jump to

Keyboard shortcuts

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