Documentation ¶
Index ¶
- func StartServer(port int, alphabillService *TestAlphabillServiceServer) *grpc.Server
- type TestAlphabillServiceServer
- func (s *TestAlphabillServiceServer) GetBlock(_ context.Context, req *alphabill.GetBlockRequest) (*alphabill.GetBlockResponse, error)
- func (s *TestAlphabillServiceServer) GetBlocks() map[uint64]func() *alphabill.GetBlockResponse
- func (s *TestAlphabillServiceServer) GetMaxBlockHeight() uint64
- func (s *TestAlphabillServiceServer) GetMaxBlockNo(context.Context, *alphabill.GetMaxBlockNoRequest) (*alphabill.GetMaxBlockNoResponse, error)
- func (s *TestAlphabillServiceServer) GetProcessedTransactions() []*txsystem.Transaction
- func (s *TestAlphabillServiceServer) GetPubKey() []byte
- func (s *TestAlphabillServiceServer) ProcessTransaction(_ context.Context, tx *txsystem.Transaction) (*txsystem.TransactionResponse, error)
- func (s *TestAlphabillServiceServer) SetBlock(blockNo uint64, block *alphabill.GetBlockResponse)
- func (s *TestAlphabillServiceServer) SetBlockFunc(blockNo uint64, blockFunc func() *alphabill.GetBlockResponse)
- func (s *TestAlphabillServiceServer) SetMaxBlockNumber(maxBlockHeight uint64)
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 (s *TestAlphabillServiceServer) GetBlock(_ context.Context, req *alphabill.GetBlockRequest) (*alphabill.GetBlockResponse, error)
func (*TestAlphabillServiceServer) GetBlocks ¶
func (s *TestAlphabillServiceServer) GetBlocks() map[uint64]func() *alphabill.GetBlockResponse
func (*TestAlphabillServiceServer) GetMaxBlockHeight ¶
func (s *TestAlphabillServiceServer) GetMaxBlockHeight() uint64
func (*TestAlphabillServiceServer) GetMaxBlockNo ¶
func (s *TestAlphabillServiceServer) GetMaxBlockNo(context.Context, *alphabill.GetMaxBlockNoRequest) (*alphabill.GetMaxBlockNoResponse, error)
func (*TestAlphabillServiceServer) GetProcessedTransactions ¶
func (s *TestAlphabillServiceServer) GetProcessedTransactions() []*txsystem.Transaction
func (*TestAlphabillServiceServer) GetPubKey ¶
func (s *TestAlphabillServiceServer) GetPubKey() []byte
func (*TestAlphabillServiceServer) ProcessTransaction ¶
func (s *TestAlphabillServiceServer) ProcessTransaction(_ context.Context, tx *txsystem.Transaction) (*txsystem.TransactionResponse, error)
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)
Click to show internal directories.
Click to hide internal directories.