seek

package
v1.0.0-beta33 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2020 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
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.

Jump to

Keyboard shortcuts

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