internalrpc

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: 13 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 IInternalRpcServices

type IInternalRpcServices interface {
	GetAddressInfo(ctx context.Context, req *protobuf.AddressInfoReq) (*protobuf.AddressInfoRep, error)
	GetNftCollectionsInfo(ctx context.Context, req *protobuf.NftCollectionsInfoReq) (*protobuf.NftCollectionsInfoRep, error)
	GetNftInfo(ctx context.Context, req *protobuf.NftInfoReq) (*protobuf.NftInfoRep, error)
}

type InternalRpcConfig

type InternalRpcConfig struct {
	RpcHost  string
	RpcPort  string
	Database *db.Database
}

type InternalRpcServices

type InternalRpcServices struct {
	Ctx context.Context
	Cfg *InternalRpcConfig

	IInternalRpcServices
	// contains filtered or unexported fields
}

func NewIndexerRPCServices

func NewIndexerRPCServices(ctx context.Context, cfg *InternalRpcConfig) (*InternalRpcServices, error)

func (*InternalRpcServices) GetAddressInfo

func (*InternalRpcServices) GetNftCollectionsInfo

func (*InternalRpcServices) GetNftInfo

func (*InternalRpcServices) Start

func (rpc *InternalRpcServices) Start() error

func (*InternalRpcServices) Stop

func (rpc *InternalRpcServices) Stop()

Jump to

Keyboard shortcuts

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