Documentation ¶
Index ¶
Constants ¶
View Source
const GetResultDateFormat = "02/01/2006"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GetResult ¶
type GetResult struct { Date GetResultDate `json:"date"` Price float64 `json:"price"` }
type GetResultDate ¶
func (GetResultDate) MarshalJSON ¶
func (d GetResultDate) MarshalJSON() ([]byte, error)
Format date to JSON
type GetResults ¶
type GetResults []GetResult
func Get ¶
func Get(unsafeQuery GetQuery) (GetResults, error)
func (GetResults) Less ¶
func (q GetResults) Less(i, j int) bool
func (GetResults) Swap ¶
func (q GetResults) Swap(i, j int)
type SearchQuery ¶
func (SearchQuery) Validate ¶
func (q SearchQuery) Validate() (SearchQuery, error)
type SearchResult ¶
type SearchResult struct { Page uint16 `json:"current_page"` TotalPages uint16 `json:"total_pages_count"` Assets []SearchResultAsset `json:"values"` }
func Search ¶
func Search(unsafeQuery SearchQuery) (SearchResult, error)
Click to show internal directories.
Click to hide internal directories.