Documentation
¶
Index ¶
- func StartServer(port int, alphabillService *TestAlphabillServiceServer) *grpc.Server
- type TestAlphabillServiceServer
- func (s *TestAlphabillServiceServer) GetAllBlocks() map[uint64]func() *block.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) 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, b *block.Block)
- func (s *TestAlphabillServiceServer) SetBlockFunc(blockNo uint64, blockFunc func() *block.Block)
- 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) GetAllBlocks ¶ added in v0.1.1
func (s *TestAlphabillServiceServer) GetAllBlocks() map[uint64]func() *block.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) 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, b *block.Block)
func (*TestAlphabillServiceServer) SetBlockFunc ¶
func (s *TestAlphabillServiceServer) SetBlockFunc(blockNo uint64, blockFunc func() *block.Block)
func (*TestAlphabillServiceServer) SetMaxBlockNumber ¶
func (s *TestAlphabillServiceServer) SetMaxBlockNumber(maxBlockHeight uint64)
Click to show internal directories.
Click to hide internal directories.