Documentation ¶
Index ¶
- type GRPCAdapter
- func (c *GRPCAdapter) CheckTransaction(ctx context.Context, req *apipb.CheckTransactionRequest) (*apipb.CheckTransactionResponse, error)
- func (c *GRPCAdapter) Host() string
- func (c *GRPCAdapter) LastBlock(ctx context.Context) (nodetypes.LastBlock, error)
- func (c *GRPCAdapter) SpamStatistics(ctx context.Context, party string) (nodetypes.SpamStatistics, error)
- func (c *GRPCAdapter) Statistics(ctx context.Context) (nodetypes.Statistics, error)
- func (c *GRPCAdapter) Stop() error
- func (c *GRPCAdapter) SubmitTransaction(ctx context.Context, req *apipb.SubmitTransactionRequest) (*apipb.SubmitTransactionResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GRPCAdapter ¶ added in v0.70.0
type GRPCAdapter struct {
// contains filtered or unexported fields
}
func NewGRPCAdapter ¶ added in v0.70.0
func NewGRPCAdapter(host string) (*GRPCAdapter, error)
func (*GRPCAdapter) CheckTransaction ¶ added in v0.70.0
func (c *GRPCAdapter) CheckTransaction(ctx context.Context, req *apipb.CheckTransactionRequest) (*apipb.CheckTransactionResponse, error)
func (*GRPCAdapter) Host ¶ added in v0.70.0
func (c *GRPCAdapter) Host() string
func (*GRPCAdapter) SpamStatistics ¶ added in v0.70.0
func (c *GRPCAdapter) SpamStatistics(ctx context.Context, party string) (nodetypes.SpamStatistics, error)
func (*GRPCAdapter) Statistics ¶ added in v0.70.0
func (c *GRPCAdapter) Statistics(ctx context.Context) (nodetypes.Statistics, error)
func (*GRPCAdapter) Stop ¶ added in v0.70.0
func (c *GRPCAdapter) Stop() error
func (*GRPCAdapter) SubmitTransaction ¶ added in v0.70.0
func (c *GRPCAdapter) SubmitTransaction(ctx context.Context, req *apipb.SubmitTransactionRequest) (*apipb.SubmitTransactionResponse, error)
Click to show internal directories.
Click to hide internal directories.