MCPcopy
hub / github.com/gogf/gf / Client

Struct Client

contrib/config/apollo/apollo.go:51–56  ·  view source on GitHub ↗

Client implements gcfg.Adapter implementing using apollo service.

Source from the content-addressed store, hash-verified

49
50// Client implements gcfg.Adapter implementing using apollo service.
51type Client struct {
52 config Config // Config object when created.
53 client agollo.Client // Apollo client.
54 value *g.Var // Configmap content cached. It is `*gjson.Json` value internally.
55 watchers *gcfg.WatcherRegistry // Watchers for watching file changes.
56}
57
58// New creates and returns gcfg.Adapter implementing using apollo service.
59func New(ctx context.Context, config Config) (adapter gcfg.Adapter, err error) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected