kurs

package
v0.0.0-...-42525f0 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2024 License: GPL-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrMissingValidDate = errors.New("validation date is missing")
)

Functions

func Router

func Router() *chi.Mux

func UpdateKurs

func UpdateKurs() error

Types

type KursData

type KursData struct {
	UpdatedAt  time.Time
	ValidFrom  string
	ValidTo    string
	Currencies []currency.Currency
}

func NewKursData

func NewKursData() KursData

func (KursData) MarshalJSON

func (k KursData) MarshalJSON() ([]byte, error)

func (*KursData) UnmarshalJSON

func (k *KursData) UnmarshalJSON(data []byte) error

type Response

type Response struct {
	Message string `json:"message"`
	Data    any    `json:"data"`
}

Jump to

Keyboard shortcuts

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