Client implements gcfg.Adapter implementing using apollo service.
| 49 | |
| 50 | // Client implements gcfg.Adapter implementing using apollo service. |
| 51 | type 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. |
| 59 | func New(ctx context.Context, config Config) (adapter gcfg.Adapter, err error) { |
nothing calls this directly
no outgoing calls
no test coverage detected