MCPcopy Index your code
hub / github.com/cloudreve/cloudreve / HashIDEncoder

Method HashIDEncoder

application/dependency/dependency.go:839–851  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

837}
838
839func (d *dependency) HashIDEncoder() hashid.Encoder {
840 if d.hashidEncoder != nil {
841 return d.hashidEncoder
842 }
843
844 encoder, err := hashid.New(d.SettingProvider().HashIDSalt(context.Background()))
845 if err != nil {
846 d.panicError(err)
847 }
848
849 d.hashidEncoder = encoder
850 return d.hashidEncoder
851}
852
853func (d *dependency) CredManager() credmanager.CredManager {
854 if d.credManager != nil {

Callers 7

FileClientMethod · 0.95
ShareClientMethod · 0.95
TaskClientMethod · 0.95
DavAccountClientMethod · 0.95
DirectLinkClientMethod · 0.95
TokenAuthMethod · 0.95
LockSystemMethod · 0.95

Calls 4

SettingProviderMethod · 0.95
panicErrorMethod · 0.95
NewFunction · 0.92
HashIDSaltMethod · 0.65

Tested by

no test coverage detected