MCPcopy
hub / github.com/google/seesaw / ConfigReload

Method ConfigReload

engine/ipc.go:277–288  ·  view source on GitHub ↗

ConfigReload requests a configuration reload.

(ctx *ipc.Context, reply *int)

Source from the content-addressed store, hash-verified

275
276// ConfigReload requests a configuration reload.
277func (s *SeesawEngine) ConfigReload(ctx *ipc.Context, reply *int) error {
278 s.trace("ConfigReload", ctx)
279 if ctx == nil {
280 return errContext
281 }
282
283 if !ctx.CanWrite() {
284 return errAccess
285 }
286
287 return s.engine.notifier.Reload()
288}
289
290// ConfigSource requests the configuration source be changed to the specified
291// source. The name of the original source is returned.

Callers

nothing calls this directly

Calls 3

traceMethod · 0.95
CanWriteMethod · 0.80
ReloadMethod · 0.80

Tested by

no test coverage detected