Versions in this module Expand all Collapse all v1 v1.0.0 May 24, 2019 Changes in this version + func CommitConfig(host, name string, cfg *models.CCConfig) error + func DelNamespace(host, name string, cfg *models.CCConfig) error + func PrepareConfig(host, name string, cfg *models.CCConfig) error + func QueryProxyConfigFingerprint(host string, cfg *models.CCConfig) (string, error) + type APIClient struct + func NewAPIClient(addr, user, password string) *APIClient + func (c *APIClient) CommitConfig(name string) error + func (c *APIClient) DelNamespace(name string) error + func (c *APIClient) GetNamespaceSQLFingerprint(name string) (*SQLFingerprint, error) + func (c *APIClient) Ping() error + func (c *APIClient) PrepareConfig(name string) error + type SQLFingerprint struct + ErrorSQL map[string]string + SlowSQL map[string]string + func QueryNamespaceSQLFingerprint(host, name string, cfg *models.CCConfig) (*SQLFingerprint, error) + type Stats struct + Closed bool + Error string + Host string + Timeout bool + UnixTime int64 + func GetStats(p *models.ProxyMonitorMetric, cfg *models.CCConfig, timeout time.Duration) *Stats