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

Method GetByID

inventory/file.go:168–168  ·  view source on GitHub ↗

GetByID returns a file by its ID.

(ctx context.Context, ids int)

Source from the content-addressed store, hash-verified

166 GetByIDs(ctx context.Context, ids []int, page int) ([]*ent.File, int, error)
167 // GetByID returns a file by its ID.
168 GetByID(ctx context.Context, ids int) (*ent.File, error)
169 // GetEntitiesByIDs returns entities with given IDs. The result is paginated. Caller should keep calling this until
170 // returned next page is negative.
171 GetEntitiesByIDs(ctx context.Context, ids []int, page int) ([]*ent.Entity, int, error)

Callers 15

ActivateUserFunction · 0.65
Verify2FAMethod · 0.65
GetUserFunction · 0.65
GetMethod · 0.65
DeleteDirectLinkFunction · 0.65
DeleteShareFunction · 0.65
GetMethod · 0.65
GetMethod · 0.65
UrlMethod · 0.65
GetMethod · 0.65
GetMethod · 0.65
UpdateMethod · 0.65

Implementers 1

fileClientinventory/file.go

Calls

no outgoing calls

Tested by

no test coverage detected