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

Method Get

pkg/setting/adapters.go:124–134  ·  view source on GitHub ↗
(ctx context.Context, name string, defaultVal any)

Source from the content-addressed store, hash-verified

122}
123
124func (s *staticSettingStore) Get(ctx context.Context, name string, defaultVal any) any {
125 if val, ok := s.settings[name]; ok {
126 return val
127 }
128
129 if s.next != nil {
130 return s.next.Get(ctx, name, defaultVal)
131 }
132
133 return defaultVal
134}

Callers

nothing calls this directly

Calls 1

GetMethod · 0.65

Tested by

no test coverage detected