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

Function WithDisplayName

pkg/filemanager/manager/entitysource/entitysource.go:126–130  ·  view source on GitHub ↗

WithDisplayName set display name for file source

(name string)

Source from the content-addressed store, hash-verified

124
125// WithDisplayName set display name for file source
126func WithDisplayName(name string) EntitySourceOption {
127 return EntitySourceOptionFunc(func(option any) {
128 option.(*EntitySourceOptions).DisplayName = name
129 })
130}
131
132// WithContext set context for file source
133func WithContext(ctx context.Context) EntitySourceOption {

Callers 8

SlaveServeMethod · 0.92
ServeMethod · 0.92
UrlMethod · 0.92
UrlMethod · 0.92
ThumbnailMethod · 0.92
GetDirectLinkMethod · 0.92
GetEntityUrlsMethod · 0.92

Calls 1

EntitySourceOptionFuncFuncType · 0.85

Tested by

no test coverage detected