services

package
v0.0.0-...-d9430aa Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 8, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

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 IndexerRPCConfig struct {
	RpcHost  string
	RpcPort  string
	Database *db.Database
}

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 (*IndexerRPCServices) Start

func (rpc *IndexerRPCServices) Start() error

func (*IndexerRPCServices) Stop

func (rpc *IndexerRPCServices) Stop()

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL