Back to godoc.org

Package seek

v1.0.0-beta2.0...-bdbc9bd
Latest Go to latest

The latest major version is .

Published: Jul 30, 2020 | License: Apache-2.0 | Module: github.com/hyperledger/fabric-sdk-go

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"
)

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)

type Type

type Type string

Type is the type of Seek request to perform.

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier