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

Function WithHashIDEncoder

application/dependency/options.go:136–140  ·  view source on GitHub ↗

WithHashIDEncoder Set the default hash id encoder

(s hashid.Encoder)

Source from the content-addressed store, hash-verified

134
135// WithHashIDEncoder Set the default hash id encoder
136func WithHashIDEncoder(s hashid.Encoder) Option {
137 return optionFunc(func(o *dependency) {
138 o.hashidEncoder = s
139 })
140}
141
142// WithTokenAuth Set the default token auth
143func WithTokenAuth(s auth.TokenAuth) Option {

Callers

nothing calls this directly

Calls 1

optionFuncFuncType · 0.70

Tested by

no test coverage detected