models

package
v0.0.0-...-42e54ff Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2022 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Error

type Error struct {

	// error
	Error *ErrorError `json:"error,omitempty"`

	// success
	Success bool `json:"success,omitempty"`
}

Error error

swagger:model Error

func (*Error) ContextValidate

func (m *Error) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this error based on the context it is used

func (*Error) MarshalBinary

func (m *Error) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Error) UnmarshalBinary

func (m *Error) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Error) Validate

func (m *Error) Validate(formats strfmt.Registry) error

Validate validates this error

type ErrorError

type ErrorError struct {

	// code
	Code float64 `json:"code,omitempty"`

	// info
	Info string `json:"info,omitempty"`

	// type
	Type string `json:"type,omitempty"`
}

ErrorError error error

swagger:model ErrorError

func (*ErrorError) ContextValidate

func (m *ErrorError) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this error error based on context it is used

func (*ErrorError) MarshalBinary

func (m *ErrorError) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ErrorError) UnmarshalBinary

func (m *ErrorError) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ErrorError) Validate

func (m *ErrorError) Validate(formats strfmt.Registry) error

Validate validates this error error

type MapItemCurrency

type MapItemCurrency map[string]float64

MapItemCurrency map item currency

swagger:model MapItemCurrency

func (MapItemCurrency) ContextValidate

func (m MapItemCurrency) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this map item currency based on context it is used

func (MapItemCurrency) Validate

func (m MapItemCurrency) Validate(formats strfmt.Registry) error

Validate validates this map item currency

type Rates

type Rates struct {

	// data
	Data map[string]float64 `json:"data,omitempty"`

	// query
	Query *RatesQuery `json:"query,omitempty"`
}

Rates rates

swagger:model Rates

func (*Rates) ContextValidate

func (m *Rates) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this rates based on the context it is used

func (*Rates) MarshalBinary

func (m *Rates) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Rates) UnmarshalBinary

func (m *Rates) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Rates) Validate

func (m *Rates) Validate(formats strfmt.Registry) error

Validate validates this rates

type RatesQuery

type RatesQuery struct {

	// base currency
	BaseCurrency string `json:"base_currency,omitempty"`

	// timestamp
	Timestamp float64 `json:"timestamp,omitempty"`
}

RatesQuery rates query

swagger:model RatesQuery

func (*RatesQuery) ContextValidate

func (m *RatesQuery) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this rates query based on context it is used

func (*RatesQuery) MarshalBinary

func (m *RatesQuery) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*RatesQuery) UnmarshalBinary

func (m *RatesQuery) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*RatesQuery) Validate

func (m *RatesQuery) Validate(formats strfmt.Registry) error

Validate validates this rates query

Jump to

Keyboard shortcuts

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