model

package
v0.0.0-...-749d40c Latest Latest
Warning

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

Go to latest
Published: May 14, 2021 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 ExchangeRateDocument

type ExchangeRateDocument struct {
	Base      string             `bson:"base"`
	Rates     map[string]float32 `bson:"rates"`
	CreatedAt time.Time          `bson:"created_at"`
}

func ConvertExchangeRatesModel

func ConvertExchangeRatesModel(model ExchangeRatesModel) (result *ExchangeRateDocument)

type ExchangeRatesModel

type ExchangeRatesModel struct {
	Success   bool               `json:"success"`
	Date      string             `json:"date"`
	Base      string             `json:"base"`
	Timestamp int64              `json:"timestamp"`
	Rates     map[string]float32 `json:"rates"`
}

Jump to

Keyboard shortcuts

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