Documentation ¶
Index ¶
- 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
- type SQLFingerprint
- type Stats
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CommitConfig ¶
CommitConfig commit phase of config change
func DelNamespace ¶
DelNamespace delete namespace
func PrepareConfig ¶
PrepareConfig prepare phase of config change
Types ¶
type APIClient ¶
type APIClient struct {
// contains filtered or unexported fields
}
APIClient api client
func NewAPIClient ¶
NewAPIClient create api client
func (*APIClient) CommitConfig ¶
CommitConfig send commit config
func (*APIClient) DelNamespace ¶
DelNamespace send delete namespace to proxy
func (*APIClient) GetNamespaceSQLFingerprint ¶
func (c *APIClient) GetNamespaceSQLFingerprint(name string) (*SQLFingerprint, error)
GetNamespaceSQLFingerprint return sql fingerprint of specific namespace
func (*APIClient) PrepareConfig ¶
PrepareConfig send prepare config
type SQLFingerprint ¶
type SQLFingerprint struct { SlowSQL map[string]string `json:"slow_sql"` ErrorSQL map[string]string `json:"error_sql"` }
SQLFingerprint sql指纹
func QueryNamespaceSQLFingerprint ¶
func QueryNamespaceSQLFingerprint(host, name string, cfg *models.CCConfig) (*SQLFingerprint, error)
QueryNamespaceSQLFingerprint return sql fingerprint
Click to show internal directories.
Click to hide internal directories.