Documentation ¶
Index ¶
- func StartServer(alphabillService *TestAlphabillServiceServer, tp trace.TracerProvider) (*grpc.Server, net.Addr)
- type TestAlphabillServiceServer
- func (s *TestAlphabillServiceServer) GetAllBlocks() map[uint64]func() *types.Block
- func (s *TestAlphabillServiceServer) GetBlock(_ context.Context, req *alphabill.GetBlockRequest) (*alphabill.GetBlockResponse, error)
- func (s *TestAlphabillServiceServer) GetBlocks(_ context.Context, req *alphabill.GetBlocksRequest) (*alphabill.GetBlocksResponse, error)
- func (s *TestAlphabillServiceServer) GetMaxBlockHeight() uint64
- func (s *TestAlphabillServiceServer) GetProcessedTransactions() []*types.TransactionOrder
- func (s *TestAlphabillServiceServer) GetPubKey() []byte
- func (s *TestAlphabillServiceServer) GetRoundNumber(context.Context, *emptypb.Empty) (*alphabill.GetRoundNumberResponse, error)
- func (s *TestAlphabillServiceServer) ProcessTransaction(_ context.Context, tx *alphabill.Transaction) (*emptypb.Empty, error)
- func (s *TestAlphabillServiceServer) SetBlock(blockNo uint64, b *types.Block)
- func (s *TestAlphabillServiceServer) SetBlockFunc(blockNo uint64, blockFunc func() *types.Block)
- func (s *TestAlphabillServiceServer) SetMaxBlockNumber(maxBlockHeight uint64)
- func (s *TestAlphabillServiceServer) SetProcessTxError(processTxError error)
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 (s *TestAlphabillServiceServer) GetBlock(_ context.Context, req *alphabill.GetBlockRequest) (*alphabill.GetBlockResponse, error)
func (*TestAlphabillServiceServer) GetBlocks ¶
func (s *TestAlphabillServiceServer) GetBlocks(_ context.Context, req *alphabill.GetBlocksRequest) (*alphabill.GetBlocksResponse, error)
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 (s *TestAlphabillServiceServer) GetRoundNumber(context.Context, *emptypb.Empty) (*alphabill.GetRoundNumberResponse, error)
func (*TestAlphabillServiceServer) ProcessTransaction ¶
func (s *TestAlphabillServiceServer) ProcessTransaction(_ context.Context, tx *alphabill.Transaction) (*emptypb.Empty, error)
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)
Click to show internal directories.
Click to hide internal directories.