MCPcopy Create free account
hub / github.com/cloudreve/cloudreve / getTaskOrderOption

Function getTaskOrderOption

inventory/task.go:315–321  ·  view source on GitHub ↗
(args *ListTaskArgs)

Source from the content-addressed store, hash-verified

313}
314
315func getTaskOrderOption(args *ListTaskArgs) []task.OrderOption {
316 orderTerm := getOrderTerm(args.Order)
317 switch args.OrderBy {
318 default:
319 return []task.OrderOption{task.ByID(orderTerm)}
320 }
321}
322
323// getTaskNextPageToken returns the next page token for the given last task.
324func getTaskNextPageToken(hasher hashid.Encoder, last *ent.Task) (string, error) {

Callers 1

offsetPaginationMethod · 0.85

Calls 2

ByIDFunction · 0.92
getOrderTermFunction · 0.85

Tested by

no test coverage detected