ui/offering.go
func (h *Handler) GetClientOfferingsFilterParams(
	tkn string) (*GetClientOfferingsFilterParamsResult, error) {
	logger := h.logger.Add("method", "GetClientOfferingsFilterParams")

	if !h.token.Check(tkn) {
		logger.Warn("access denied")
		return nil, ErrAccessDenied
	}

	countries, err := h.offeringCountries(logger)
	if err != nil {
		return nil, err
	}

	min, max, err := h.offeringsMinMaxPrice(logger)
	if err != nil {
		return nil, err
	}

	return &GetClientOfferingsFilterParamsResult{countries, min, max}, nil
}
func (h *Handler) GetClientOfferingsFilterParams(
	tkn string) (*GetClientOfferingsFilterParamsResult, error) {
	logger := h.logger.Add("method", "GetClientOfferingsFilterParams")

	if !h.token.Check(tkn) {
		logger.Warn("access denied")
		return nil, ErrAccessDenied
	}

	countries, err := h.offeringCountries(logger)
	if err != nil {
		return nil, err
	}

	min, max, err := h.offeringsMinMaxPrice(logger)
	if err != nil {
		return nil, err
	}

	return &GetClientOfferingsFilterParamsResult{countries, min, max}, nil
}
// GetClientOfferingsFilterParams returns offerings filter parameters for client.