cop

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

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

Jump to

Keyboard shortcuts

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