testserver

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StartServer

func StartServer(alphabillService *TestAlphabillServiceServer, tp trace.TracerProvider) (*grpc.Server, net.Addr)

Types

type TestAlphabillServiceServer

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

func NewTestAlphabillServiceServer

func NewTestAlphabillServiceServer() *TestAlphabillServiceServer

func (*TestAlphabillServiceServer) GetAllBlocks

func (s *TestAlphabillServiceServer) GetAllBlocks() map[uint64]func() *types.Block

func (*TestAlphabillServiceServer) GetBlock

func (*TestAlphabillServiceServer) GetBlocks

func (*TestAlphabillServiceServer) GetMaxBlockHeight

func (s *TestAlphabillServiceServer) GetMaxBlockHeight() uint64

func (*TestAlphabillServiceServer) GetProcessedTransactions

func (s *TestAlphabillServiceServer) GetProcessedTransactions() []*types.TransactionOrder

func (*TestAlphabillServiceServer) GetPubKey

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

func (*TestAlphabillServiceServer) GetRoundNumber

func (*TestAlphabillServiceServer) ProcessTransaction

func (*TestAlphabillServiceServer) SetBlock

func (s *TestAlphabillServiceServer) SetBlock(blockNo uint64, b *types.Block)

func (*TestAlphabillServiceServer) SetBlockFunc

func (s *TestAlphabillServiceServer) SetBlockFunc(blockNo uint64, blockFunc func() *types.Block)

func (*TestAlphabillServiceServer) SetMaxBlockNumber

func (s *TestAlphabillServiceServer) SetMaxBlockNumber(maxBlockHeight uint64)

func (*TestAlphabillServiceServer) SetProcessTxError

func (s *TestAlphabillServiceServer) SetProcessTxError(processTxError error)

Jump to

Keyboard shortcuts

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