currency

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2019 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConvertRequest

type ConvertRequest struct {
	Amount float64
	From   string
	To     string
}

type ConvertResponse

type ConvertResponse struct {
	Time   time.Time `json:"time"`
	Amount float64   `json:"amount"`
}

type Currency

type Currency struct {
	Name   string `json:"name"`
	Code   string `json:"code"`
	Symbol string `json:"symbol"`
}

type ListRequest

type ListRequest struct {
}

type ListResponse

type ListResponse struct {
	Currencies []*Currency `json:"currencies"`
}

type RatesRequest added in v1.0.2

type RatesRequest struct {
}

type RatesResponse added in v1.0.2

type RatesResponse struct {
	Time  time.Time          `json:"time"`
	Base  string             `json:"base"`
	Rates map[string]float64 `json:"rates"`
}

Jump to

Keyboard shortcuts

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