Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CommonRequest ¶
type CommonRequest interface {
GetConsumerToken() string
}
type IIndexerRpcServices ¶
type IIndexerRpcServices interface {
GetLatestBlock(ctx context.Context, req *protobuf.LatestBlock) (*protobuf.LatestBlockRep, error)
}
type IndexerRPCConfig ¶
type IndexerRPCServices ¶
type IndexerRPCServices struct { Ctx context.Context Cfg *IndexerRPCConfig IIndexerRpcServices // contains filtered or unexported fields }
func NewIndexerRPCServices ¶
func NewIndexerRPCServices(ctx context.Context, cfg *IndexerRPCConfig) (*IndexerRPCServices, error)
func (*IndexerRPCServices) GetLatestBlock ¶
func (rpc *IndexerRPCServices) GetLatestBlock(ctx context.Context, req *protobuf.LatestBlock) (*protobuf.LatestBlockRep, error)
func (*IndexerRPCServices) Start ¶
func (rpc *IndexerRPCServices) Start() error
func (*IndexerRPCServices) Stop ¶
func (rpc *IndexerRPCServices) Stop()
Click to show internal directories.
Click to hide internal directories.