| 12345678910111213 |
- package allocation
- import (
- "github.com/opencost/opencost/core/pkg/autocomplete"
- allocationfilter "github.com/opencost/opencost/core/pkg/filter/allocation"
- "github.com/opencost/opencost/core/pkg/util/httputil"
- )
- // ParseRequest builds an autocomplete.Request from query parameters.
- func ParseRequest(qp httputil.QueryParams, opts autocomplete.ParseOptions) (*autocomplete.Request, error) {
- parser := allocationfilter.NewAllocationFilterParser()
- return autocomplete.ParseRequest(qp, opts, ValidateField, parser.Parse)
- }
|