coingecko_api

package
v0.0.0-...-accc4e5 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CoinGeckoAPI

type CoinGeckoAPI interface {
	GetPrice(ctx context.Context, symbol string) (float64, error)
}

type Implementation

type Implementation struct {
	desc.UnimplementedCoinGeckoAPIServer
	// contains filtered or unexported fields
}

func New

func New(coinGeckoAPI CoinGeckoAPI) *Implementation

func (*Implementation) GetDescription

func (i *Implementation) GetDescription() *grpc.ServiceDesc

func (*Implementation) GetPrice

Jump to

Keyboard shortcuts

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