Documentation

Index

Constants

const (
	// Oldest seeks from the first block
	Oldest = "oldest"
	// Newest seeks from the last block
	Newest = "newest"
	// FromBlock seeks from a specific block
	FromBlock = "from"
)

Variables

This section is empty.

Functions

func InfoFrom

func InfoFrom(fromBlock uint64) *ab.SeekInfo

InfoFrom returns a SeekInfo struct that indicates to the deliver server that we want all blocks starting from the given block number

func InfoNewest

func InfoNewest() *ab.SeekInfo

InfoNewest returns a SeekInfo struct that indicates to the deliver server that we just want the latest blocks

func InfoOldest

func InfoOldest() *ab.SeekInfo

InfoOldest returns a SeekInfo struct that indicates to the deliver server that we want all blocks starting from the oldest block (block 0)

Types

type Type

type Type string

Type is the type of Seek request to perform.

Source Files