Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type InfluxDBClient ¶
func NewInfluxDBClient ¶
func NewInfluxDBClient(i InfluxDBConfig) *InfluxDBClient
func (*InfluxDBClient) GetBucket ¶
func (i *InfluxDBClient) GetBucket() string
GetBucket returns the bucket name.
func (*InfluxDBClient) GetOrg ¶
func (i *InfluxDBClient) GetOrg() string
GetOrg returns the organization name.
func (*InfluxDBClient) NewWriteAPI ¶
func (i *InfluxDBClient) NewWriteAPI() influxdbapi.WriteAPI
NewWriteAPI returns the write api.
type InfluxDBConfig ¶
type RedisClient ¶
type RedisClient struct {
*redis.Client
}
func NewRedisClient ¶
func NewRedisClient(r RedisConfig) *RedisClient
type RedisConfig ¶
type RedisConfig struct { Address string `yaml:"address"` // host:port address. Password string `yaml:"password"` // Optional password. MaxRetries int `yaml:"maxRetries"` // Maximum number of retries before giving up. DialTimeout int `yaml:"dialTimeout"` // in seconds ReadTimeout int `yaml:"readTimeout"` // in seconds WriteTimeout int `yaml:"writeTimeout"` // in seconds TLSConfig *tls.Config }
Click to show internal directories.
Click to hide internal directories.