grpc

package
v0.9.0-beta9 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2021 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const CursorMagicValue = 4374

Variables

This section is empty.

Functions

func ActionKeyToCursor

func ActionKeyToCursor(key []byte, shardNo byte, seqNum uint64) *pbaccounthist.Cursor

Types

type EOSName

type EOSName uint64

func (EOSName) String

func (n EOSName) String() string

type Server

type Server struct {
	*shutter.Shutter

	MaxEntries uint64
	KVStore    store.KVStore
	// contains filtered or unexported fields
}

func New

func New(grpcAddr string, maxEntries uint64, kvStore store.KVStore) *Server

func (*Server) ServeAccountContractMode

func (s *Server) ServeAccountContractMode()

func (*Server) ServeAccountMode

func (s *Server) ServeAccountMode()

func (*Server) StreamAccountActions

func (s *Server) StreamAccountActions(
	ctx context.Context,
	account uint64,
	limit uint64,
	cursor *pbaccounthist.Cursor,
	onAction func(cursor *pbaccounthist.Cursor, actionTrace *pbcodec.ActionTrace) error,
) error

func (*Server) StreamAccountContractActions

func (s *Server) StreamAccountContractActions(
	ctx context.Context,
	account uint64,
	contract uint64,
	limit uint64,
	cursor *pbaccounthist.Cursor,
	onAction func(cursor *pbaccounthist.Cursor, actionTrace *pbcodec.ActionTrace) error,
) error

func (*Server) Terminate

func (s *Server) Terminate(err error)

Jump to

Keyboard shortcuts

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