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

Function ByType

ent/node/node.go:181–183  ·  view source on GitHub ↗

ByType orders the results by the type field.

(opts ...sql.OrderTermOption)

Source from the content-addressed store, hash-verified

179
180// ByType orders the results by the type field.
181func ByType(opts ...sql.OrderTermOption) OrderOption {
182 return sql.OrderByField(FieldType, opts...).ToFunc()
183}
184
185// ByServer orders the results by the server field.
186func ByServer(opts ...sql.OrderTermOption) OrderOption {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected