Documentation ¶
Index ¶
Constants ¶
Variables ¶
This section is empty.
Functions ¶
func BoolToString ¶
BoolToString converts a boolean value to its string representation. Returns "true" if booleanValue is true, otherwise "false".
Types ¶
type CryptoCurrency ¶
type CryptoCurrency struct { Urls UrlData `json:"urls"` Logo string `json:"logo"` ID int `json:"id"` Name string `json:"name"` Symbol string `json:"symbol"` Slug string `json:"slug"` Description string `json:"description"` DateAdded string `json:"date_added"` DateLaunched string `json:"date_launched"` Tags []string `json:"tags"` Platform string `json:"platform"` Category string `json:"category"` Notice string `json:"notice"` }
type Metadata ¶
type Metadata struct { Params *Params // contains filtered or unexported fields }
func (*Metadata) GetMetadata ¶
func (m *Metadata) GetMetadata(params *Params) (map[string]CryptoCurrency, error)
type Params ¶
type Params struct { Id *string `json:"id,omitempty"` Slugs []string `json:"slugs,omitempty"` Symbols []string `json:"symbols,omitempty"` Address *string `json:"address,omitempty"` SkipInvalid *bool `json:"skip_invalid,omitempty"` Aux []string `json:"aux,omitempty"` }
Params represents the query parameters for fetching data.
type Response ¶
type Response struct { Data map[string]CryptoCurrency `json:"data"` Status StatusData `json:"status"` }
type StatusData ¶
type UrlData ¶
type UrlData struct { Website []string `json:"website"` TechnicalDoc []string `json:"technical_doc"` Twitter []string `json:"twitter"` Reddit []string `json:"reddit"` MessageBoard []string `json:"message_board"` Announcement []string `json:"announcement"` Chat []string `json:"chat"` Explorer []string `json:"explorer"` SourceCode []string `json:"source_code"` }
Click to show internal directories.
Click to hide internal directories.