grpc

package
v0.0.0-...-0cb664c Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2025 License: BSD-2-Clause Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const MaxRecvMessageSize = 1024 * 1024 * 30000

Variables

This section is empty.

Functions

This section is empty.

Types

type TokenPriceRpcConfig

type TokenPriceRpcConfig struct {
	Host string
	Port int
}

type TokenPriceRpcService

type TokenPriceRpcService struct {
	*TokenPriceRpcConfig

	gasfee.UnimplementedTokenGasPriceServicesServer
	// contains filtered or unexported fields
}

func NewTokenPriceRpcService

func NewTokenPriceRpcService(conf *TokenPriceRpcConfig, db *database.DB) (*TokenPriceRpcService, error)

func (*TokenPriceRpcService) GetTokenPriceAndGasByChainId

func (ms *TokenPriceRpcService) GetTokenPriceAndGasByChainId(ctx context.Context, in *gasfee.TokenGasPriceRequest) (*gasfee.TokenGasPriceResponse, error)

func (*TokenPriceRpcService) Start

func (ms *TokenPriceRpcService) Start(ctx context.Context) error

func (*TokenPriceRpcService) Stop

func (ms *TokenPriceRpcService) Stop(ctx context.Context) error

func (*TokenPriceRpcService) Stopped

func (ms *TokenPriceRpcService) Stopped() bool

Jump to

Keyboard shortcuts

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