MCPcopy Index your code
hub / github.com/APIParkLab/APIPark / Sort

Method Sort

module/catalogue/iml.go:535–549  ·  view source on GitHub ↗
(ctx context.Context, sorts []*catalogue_dto.SortItem)

Source from the content-addressed store, hash-verified

533}
534
535func (i *imlCatalogueModule) Sort(ctx context.Context, sorts []*catalogue_dto.SortItem) error {
536 return i.transaction.Transaction(ctx, func(ctx context.Context) error {
537 err := i.recurseUpdateSort(ctx, "", sorts)
538 if err != nil {
539 return err
540 }
541 all, err := i.catalogueService.List(ctx)
542 if err != nil {
543 return err
544 }
545 i.root = NewRoot(all)
546 return nil
547 })
548
549}
550
551func (i *imlCatalogueModule) Search(ctx context.Context, keyword string) ([]*catalogue_dto.Item, error) {
552 all, err := i.catalogueService.List(ctx)

Callers

nothing calls this directly

Calls 3

recurseUpdateSortMethod · 0.95
NewRootFunction · 0.85
ListMethod · 0.65

Tested by

no test coverage detected