MCPcopy Index your code
hub / github.com/micro/go-micro / Get

Method Get

config/default.go:196–207  ·  view source on GitHub ↗
(path ...string)

Source from the content-addressed store, hash-verified

194}
195
196func (c *config) Get(path ...string) (reader.Value, error) {
197 c.RLock()
198 defer c.RUnlock()
199
200 // did sync actually work?
201 if c.vals != nil {
202 return c.vals.Get(path...)
203 }
204
205 // no value
206 return newValue(), nil
207}
208
209func (c *config) Set(val interface{}, path ...string) {
210 c.Lock()

Callers 1

WatchMethod · 0.95

Calls 2

newValueFunction · 0.85
GetMethod · 0.65

Tested by

no test coverage detected