forked from couchbase/gocbcore
-
Notifications
You must be signed in to change notification settings - Fork 0
/
agentgroup_config.go
35 lines (31 loc) · 1.22 KB
/
agentgroup_config.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
package gocbcore
// AgentGroupConfig specifies the configuration options for creation of an AgentGroup.
type AgentGroupConfig struct {
AgentConfig
}
func (config *AgentGroupConfig) redacted() interface{} {
return config.AgentConfig.redacted()
}
// FromConnStr populates the AgentGroupConfig with information from a
// Couchbase Connection String. See AgentConfig for supported options.
func (config *AgentGroupConfig) FromConnStr(connStr string) error {
return config.AgentConfig.FromConnStr(connStr)
}
func (config *AgentGroupConfig) toAgentConfig() *AgentConfig {
return &AgentConfig{
BucketName: config.BucketName,
UserAgent: config.UserAgent,
SeedConfig: config.SeedConfig,
SecurityConfig: config.SecurityConfig,
CompressionConfig: config.CompressionConfig,
ConfigPollerConfig: config.ConfigPollerConfig,
IoConfig: config.IoConfig,
KVConfig: config.KVConfig,
HTTPConfig: config.HTTPConfig,
DefaultRetryStrategy: config.DefaultRetryStrategy,
CircuitBreakerConfig: config.CircuitBreakerConfig,
OrphanReporterConfig: config.OrphanReporterConfig,
MeterConfig: config.MeterConfig,
TracerConfig: config.TracerConfig,
}
}