routes

package
v0.29.0 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2024 License: AGPL-3.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Setup

func Setup(mux *chi.Mux, ver string, db cache.DB, conf config.Config)

Types

type CurrenciesResponse added in v0.27.0

type CurrenciesResponse struct {
	Base       currency.Currency   `json:"base"`
	Currencies currency.Currencies `json:"currencies"`
	// contains filtered or unexported fields
}

type ErrorResponse

type ErrorResponse struct {
	Message string `json:"message"`
	Value   string `json:"value"`
}

type ExchangeResponse added in v0.26.0

type ExchangeResponse struct {
	Base   currency.Currency `json:"base"`
	From   currency.Currency `json:"from"`
	To     currency.Currency `json:"to"`
	Amount float64           `json:"amount"`
	Result float64           `json:"result"`
	// contains filtered or unexported fields
}

type ResultsResponse added in v0.21.0

type ResultsResponse struct {
	Results []result.ResultOutput `json:"results"`
	// contains filtered or unexported fields
}

type SuggestionsResponse added in v0.22.0

type SuggestionsResponse struct {
	Suggestions []result.Suggestion `json:"suggestions"`
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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