Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterGRPCGatewayRoutes ¶
func RegisterGRPCGatewayRoutes(clientConn gogogrpc.ClientConn, mux *runtime.ServeMux)
RegisterGRPCGatewayRoutes mounts the Block SDK mempool service's GRPC-gateway routes on the given Mux.
Types ¶
type QueryService ¶
type QueryService struct { types.UnimplementedServiceServer // contains filtered or unexported fields }
QueryService defines the service used by the gRPC query server to query the Block SDK mempool.
func NewQueryService ¶
func NewQueryService(mempool block.Mempool) *QueryService
NewQueryService creates a new QueryService instance.
func (*QueryService) GetTxDistribution ¶
func (s *QueryService) GetTxDistribution( _ context.Context, _ *types.GetTxDistributionRequest, ) (*types.GetTxDistributionResponse, error)
GetTxDistribution returns the current distribution of transactions in the mempool.
Click to show internal directories.
Click to hide internal directories.