Documentation
¶
Index ¶
- Constants
- type TokenPriceRpcConfig
- type TokenPriceRpcService
- func (ms *TokenPriceRpcService) GetTokenPriceAndGasByChainId(ctx context.Context, in *gasfee.TokenGasPriceRequest) (*gasfee.TokenGasPriceResponse, error)
- func (ms *TokenPriceRpcService) Start(ctx context.Context) error
- func (ms *TokenPriceRpcService) Stop(ctx context.Context) error
- func (ms *TokenPriceRpcService) Stopped() bool
Constants ¶
View Source
const MaxRecvMessageSize = 1024 * 1024 * 30000
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TokenPriceRpcConfig ¶
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) Stopped ¶
func (ms *TokenPriceRpcService) Stopped() bool
Click to show internal directories.
Click to hide internal directories.