entity

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 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 CurrencyRate

type CurrencyRate struct {
	// Id
	ID uint

	// Base currency of currency pair
	BaseCurrency string

	// Quoted currency of currency pair
	QuotedCurrency string

	// Rate value
	Value float64

	// The date on which the rates are requested. String is used so that there is no conversion to the server timezone
	RateDate string `json:"rate_date"`

	// Provider API request time (UTC)
	RequestTime time.Time `json:"request_time"`

	// Provider generated rates time (UTC)
	ProviderGeneratedTime time.Time `json:"provider_generated_time"`

	// Provider of this currency exchange rate
	Provider string

	// Currency rate endpoint
	Endpoint string
}

CurrencyRate represents one currency pair exchange rate

func (CurrencyRate) TableName

func (r CurrencyRate) TableName() string

TableName returns MySQL table name

Jump to

Keyboard shortcuts

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