testserver

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2022 License: AGPL-3.0, ISC Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StartServer

func StartServer(port int, alphabillService *TestAlphabillServiceServer) *grpc.Server

Types

type TestAlphabillServiceServer

type TestAlphabillServiceServer struct {
	alphabill.UnimplementedAlphabillServiceServer
	// contains filtered or unexported fields
}

func NewTestAlphabillServiceServer

func NewTestAlphabillServiceServer() *TestAlphabillServiceServer

func (*TestAlphabillServiceServer) GetBlock

func (*TestAlphabillServiceServer) GetBlocks

func (s *TestAlphabillServiceServer) GetBlocks() map[uint64]func() *alphabill.GetBlockResponse

func (*TestAlphabillServiceServer) GetMaxBlockHeight

func (s *TestAlphabillServiceServer) GetMaxBlockHeight() uint64

func (*TestAlphabillServiceServer) GetProcessedTransactions

func (s *TestAlphabillServiceServer) GetProcessedTransactions() []*txsystem.Transaction

func (*TestAlphabillServiceServer) GetPubKey

func (s *TestAlphabillServiceServer) GetPubKey() []byte

func (*TestAlphabillServiceServer) ProcessTransaction

func (*TestAlphabillServiceServer) SetBlock

func (s *TestAlphabillServiceServer) SetBlock(blockNo uint64, block *alphabill.GetBlockResponse)

func (*TestAlphabillServiceServer) SetBlockFunc

func (s *TestAlphabillServiceServer) SetBlockFunc(blockNo uint64, blockFunc func() *alphabill.GetBlockResponse)

func (*TestAlphabillServiceServer) SetMaxBlockNumber

func (s *TestAlphabillServiceServer) SetMaxBlockNumber(maxBlockHeight uint64)

Jump to

Keyboard shortcuts

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