MCPcopy Create free account
hub / github.com/google/go-cloud / newWatcher

Function newWatcher

runtimevar/awsparamstore/awsparamstore.go:152–162  ·  view source on GitHub ↗
(client *ssm.Client, name string, decoder *runtimevar.Decoder, opts *Options)

Source from the content-addressed store, hash-verified

150var OpenVariableV2 = OpenVariable
151
152func newWatcher(client *ssm.Client, name string, decoder *runtimevar.Decoder, opts *Options) *watcher {
153 if opts == nil {
154 opts = &Options{}
155 }
156 return &watcher{
157 client: client,
158 name: name,
159 wait: driver.WaitDuration(opts.WaitDuration),
160 decoder: decoder,
161 }
162}
163
164// state implements driver.State.
165type state struct {

Callers 2

MakeWatcherMethod · 0.70
OpenVariableFunction · 0.70

Calls 1

WaitDurationFunction · 0.92

Tested by 1

MakeWatcherMethod · 0.56