Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
type Client struct { ResourceAPI redis.UniversalClient DimensionResource redis.UniversalClient GenesisSync redis.UniversalClient Config *Config }
type Config ¶
type Config struct { ResourceAPIDatabase int `default:"1" yaml:"resource_api_database"` DimensionResourceDatabase int `default:"2" yaml:"dimension_resource_database"` GenesisSyncDatabase int `default:"4" yaml:"genesis_sync_database"` ResourceAPIExpireInterval int `default:"3600" yaml:"resource_api_expire_interval"` Host []string `default:"" yaml:"host"` // TODO add default value Port uint32 `default:"6379" yaml:"port"` Password string `default:"deepflow" yaml:"password"` TimeOut uint32 `default:"30" yaml:"timeout"` Enabled bool `default:"false" yaml:"enabled"` ClusterEnabled bool `default:"false" yaml:"cluster_enabled"` }
Click to show internal directories.
Click to hide internal directories.