Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
func NewHandler ¶
func NewHandler(repo Repository, logger *zerolog.Logger) *Handler
func (*Handler) GetSupportedCurrencies ¶
func (h *Handler) GetSupportedCurrencies(w http.ResponseWriter, r *http.Request)
func (*Handler) GetSupportedLanguages ¶
func (h *Handler) GetSupportedLanguages(w http.ResponseWriter, r *http.Request)
type Repository ¶
type Repository interface {
// GetCurrencies retrieves all supported currencies
GetCurrencies(ctx context.Context) ([]repository.Currency, error)
}
Repository defines the interface for metadata operations
func NewRepository ¶
func NewRepository(queries *repository.Queries) Repository
NewRepository creates a new meta repository
Click to show internal directories.
Click to hide internal directories.