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

Method GetByHashID

inventory/share.go:43–43  ·  view source on GitHub ↗

GetByHashID returns the share with given hash id.

(ctx context.Context, idRaw string)

Source from the content-addressed store, hash-verified

41 GetByIDUser(ctx context.Context, id, uid int) (*ent.Share, error)
42 // GetByHashID returns the share with given hash id.
43 GetByHashID(ctx context.Context, idRaw string) (*ent.Share, error)
44 // Upsert creates or update a new share record.
45 Upsert(ctx context.Context, params *CreateShareParams) (*ent.Share, error)
46 // Viewed increase the view count of the share.

Callers

nothing calls this directly

Implementers 1

shareClientinventory/share.go

Calls

no outgoing calls

Tested by

no test coverage detected