models

package
v0.0.0-...-8e43be5 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2020 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NewsRequest

type NewsRequest struct {

	// num response
	NumResponse int32 `json:"NumResponse,omitempty"`

	// query body
	QueryBody string `json:"QueryBody,omitempty"`

	// query type
	QueryType string `json:"QueryType,omitempty"`

	// sources list
	SourcesList []string `json:"SourcesList"`
}

NewsRequest NewsRequest

Request to News API for news articles swagger:model NewsRequest

func (*NewsRequest) MarshalBinary

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

MarshalBinary interface implementation

func (*NewsRequest) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*NewsRequest) Validate

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

Validate validates this news request

type NewsResponse

type NewsResponse struct {

	// article list
	ArticleList []string `json:"ArticleList"`
}

NewsResponse NewsResponse

Response to News API for news articles swagger:model NewsResponse

func (*NewsResponse) MarshalBinary

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

MarshalBinary interface implementation

func (*NewsResponse) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*NewsResponse) Validate

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

Validate validates this news response

type StockData

type StockData struct {

	// share value
	ShareValue int32 `json:"ShareValue,omitempty"`
}

StockData StockData

Object to hold serialized stock data swagger:model StockData

func (*StockData) MarshalBinary

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

MarshalBinary interface implementation

func (*StockData) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*StockData) Validate

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

Validate validates this stock data

Jump to

Keyboard shortcuts

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