http

package
v4.6.4-0...-d7d0b2a Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2024 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MockResponse

func MockResponse(responseParameters ResponseParameters)

MockResponse registers a mock responder for price quotes

func MockResponseCoincapQuotes

func MockResponseCoincapQuotes()

func MockResponseCoingeckoQuotes

func MockResponseCoingeckoQuotes()

func MockResponseCurrency

func MockResponseCurrency()

MockResponseCurrency registers a mock responder for currency rates

func MockResponseCurrencyError

func MockResponseCurrencyError()

func MockResponseForRefreshSessionError

func MockResponseForRefreshSessionError()

func MockResponseForRefreshSessionSuccess

func MockResponseForRefreshSessionSuccess()

Mocks for Yahoo session refresh

func MockResponseYahooQuotes

func MockResponseYahooQuotes()

func MockTickerSymbols

func MockTickerSymbols()

func MockTickerSymbolsError

func MockTickerSymbolsError()

Types

type ResponseParameters

type ResponseParameters struct {
	Symbol   string
	Currency string
	Price    float64
}

ResponseParameters represents response values for a templated HTTP API response

Jump to

Keyboard shortcuts

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