model

package
v0.0.0-...-9aa97c8 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Rate

type Rate struct {
	ID             int       `json:"id" example:"1"`
	FirstCurrency  string    `json:"first_currency" example:"RUB"`
	SecondCurrency string    `json:"second_currency" example:"USD"`
	Value          float32   `json:"value" example:"75.4"`
	LastUpdateTime time.Time `json:"last_update_time" example:"2019-11-09T21:21:46+00:00"`
}

func TestRate

func TestRate(t *testing.T) *Rate

func (*Rate) Validate

func (r *Rate) Validate() error

Jump to

Keyboard shortcuts

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