Update LURE dependency

This commit is contained in:
Elara 2023-09-22 16:36:38 -07:00
parent 5383ef8f9b
commit 54da212c32
3 changed files with 8 additions and 7 deletions

View File

@ -33,10 +33,11 @@ type lureWebAPI struct{}
func (l lureWebAPI) Search(ctx context.Context, req *api.SearchRequest) (*api.SearchResponse, error) {
pkgs, err := search.Search(search.Options{
Filter: search.Filter(req.FilterType),
SortBy: search.SortBy(req.SortBy),
Limit: req.Limit,
Query: req.Query,
Filter: search.Filter(req.FilterType),
FilterValue: req.FilterValue,
SortBy: search.SortBy(req.SortBy),
Limit: req.Limit,
Query: req.Query,
})
return &api.SearchResponse{Packages: searchPkgsToAPI(ctx, pkgs)}, err
}

View File

@ -6,7 +6,7 @@ require (
github.com/go-chi/chi/v5 v5.0.10
github.com/twitchtv/twirp v8.1.3+incompatible
go.elara.ws/logger v0.0.0-20230421022458-e80700db2090
go.elara.ws/lure v0.0.10-0.20230922223953-02a6104fb042
go.elara.ws/lure v0.0.10-0.20230922233208-1b8c05b25796
golang.org/x/text v0.13.0
google.golang.org/protobuf v1.31.0
)

View File

@ -121,8 +121,8 @@ github.com/xo/terminfo v0.0.0-20210125001918-ca9a967f8778/go.mod h1:2MuV+tbUrU1z
github.com/yuin/goldmark v1.4.13/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY=
go.elara.ws/logger v0.0.0-20230421022458-e80700db2090 h1:RVC8XvWo6Yw4HUshqx4TSzuBDScDghafU6QFRJ4xPZg=
go.elara.ws/logger v0.0.0-20230421022458-e80700db2090/go.mod h1:qng49owViqsW5Aey93lwBXONw20oGbJIoLVscB16mPM=
go.elara.ws/lure v0.0.10-0.20230922223953-02a6104fb042 h1:NNaaf58btpzlvuaJWgd43H9UcD7nNEX+ZNFVVNy8/WM=
go.elara.ws/lure v0.0.10-0.20230922223953-02a6104fb042/go.mod h1:xFbBPYZYEmcogIkN+L/GdG4G5/eFFK2h8lHig4YEp94=
go.elara.ws/lure v0.0.10-0.20230922233208-1b8c05b25796 h1:bLADA8yKKN2Ge8GlvYS2mDIhf5bcefrD4odvLEA1QUY=
go.elara.ws/lure v0.0.10-0.20230922233208-1b8c05b25796/go.mod h1:xFbBPYZYEmcogIkN+L/GdG4G5/eFFK2h8lHig4YEp94=
go.elara.ws/vercmp v0.0.0-20230622214216-0b2b067575c4 h1:Ep54XceQlKhcCHl9awG+wWP4kz4kIP3c3Lzw/Gc/zwY=
go.elara.ws/vercmp v0.0.0-20230622214216-0b2b067575c4/go.mod h1:/7PNW7nFnDR5W7UXZVc04gdVLR/wBNgkm33KgIz0OBk=
golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=