models

package
v0.0.0-...-44b2fc1 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2022 License: MIT Imports: 5 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 {

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

	// message
	Message string `json:"message,omitempty"`
}

Error error

swagger:model Error

func (*Error) ContextValidate

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

ContextValidate validates this error based on 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 Feevote

type Feevote struct {

	// end point
	// Required: true
	EndPoint *string `json:"end_point"`

	// SUF value for the fee.
	// Required: true
	Value *uint64 `json:"value"`
}

Feevote feevote

swagger:model Feevote

func (*Feevote) ContextValidate

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

ContextValidate validates this feevote based on context it is used

func (*Feevote) MarshalBinary

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

MarshalBinary interface implementation

func (*Feevote) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Feevote) Validate

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

Validate validates this feevote

type Price

type Price struct {

	// end point
	// Required: true
	EndPoint *string `json:"end_point"`

	// The price for the endpoint, either in FIO tokens or USD based on the format parameter. Only present when format=float or format=usd
	Price float64 `json:"price,omitempty"`

	// SUF value for the fee. Only present when format=suf (default)
	Value uint64 `json:"value,omitempty"`
}

Price price

swagger:model Price

func (*Price) ContextValidate

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

ContextValidate validates this price based on context it is used

func (*Price) MarshalBinary

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

MarshalBinary interface implementation

func (*Price) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Price) Validate

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

Validate validates this price

Jump to

Keyboard shortcuts

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