Documentation ¶ Index ¶ Variables type Crawler func New(url, key string) *Crawler func (c *Crawler) Get(symbol, currency string) (*pb.Value, error) func (c *Crawler) GetPrices(base string) func (c *Crawler) List(currency string) ([]*pb.Value, error) func (c *Crawler) Run() type Data type Response Constants ¶ This section is empty. Variables ¶ View Source var ( Index = map[string]string{}/* 201 elements not displayed */ ) Functions ¶ This section is empty. Types ¶ type Crawler ¶ type Crawler struct { Url string Key string } func New ¶ func New(url, key string) *Crawler func (*Crawler) Get ¶ func (c *Crawler) Get(symbol, currency string) (*pb.Value, error) func (*Crawler) GetPrices ¶ func (c *Crawler) GetPrices(base string) func (*Crawler) List ¶ func (c *Crawler) List(currency string) ([]*pb.Value, error) func (*Crawler) Run ¶ func (c *Crawler) Run() type Data ¶ type Data struct { Success bool `json:"success"` Timestamp int64 `json:"timestamp"` Date string `json:"date"` Base string `json:"base"` Rates map[string]float64 `json:"rates"` Unit string `json:"unit,omitempty"` } type Response ¶ type Response struct { Data Data `json:"data"` } Source Files ¶ View all Source files crawler.goindex.go Click to show internal directories. Click to hide internal directories.