Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var SFCSource types.Source = "SFC"
Functions ¶
This section is empty.
Types ¶
type SFCProvider ¶
type SFCProvider struct {
// contains filtered or unexported fields
}
SFCProvider fetches USD/COP TRM from datos.gov.co (Socrata API).
func NewSFCProvider ¶
func NewSFCProvider(timeout time.Duration) *SFCProvider
NewSFCProvider creates a new instance of the SFC TRM provider.
func (*SFCProvider) Fetch ¶
func (p *SFCProvider) Fetch(ctx context.Context) ([]*types.ExchangeRate, error)
func (*SFCProvider) Interval ¶
func (p *SFCProvider) Interval() time.Duration
func (*SFCProvider) Name ¶
func (p *SFCProvider) Name() string
Click to show internal directories.
Click to hide internal directories.