Documentation
¶
Index ¶
- Constants
- func GetConfigFromRemoteCoroot(cfg *db.IntegrationClickhouse) (*db.IntegrationClickhouse, error)
- func ReplaceTables(query string, distributed bool) string
- type ClickHouseInfo
- type Dialer
- type LowLevelClient
- func (c *LowLevelClient) Close()
- func (c *LowLevelClient) CreateDB(ctx context.Context, name string) error
- func (c *LowLevelClient) Do(ctx context.Context, q ch.Query) (err error)
- func (c *LowLevelClient) Exec(ctx context.Context, query string) error
- func (c *LowLevelClient) GetInfo() (ClickHouseInfo, error)
- func (c *LowLevelClient) Migrate(ctx context.Context, cfg config.CollectorConfig) error
Constants ¶
View Source
const (
ProtocolCoroot = "coroot"
)
Variables ¶
This section is empty.
Functions ¶
func GetConfigFromRemoteCoroot ¶ added in v1.17.7
func GetConfigFromRemoteCoroot(cfg *db.IntegrationClickhouse) (*db.IntegrationClickhouse, error)
func ReplaceTables ¶
Types ¶
type ClickHouseInfo ¶
func (ClickHouseInfo) UseDistributed ¶
func (ci ClickHouseInfo) UseDistributed() bool
type Dialer ¶ added in v1.17.7
type Dialer struct {
// contains filtered or unexported fields
}
func GetRemoteCorootDialer ¶ added in v1.17.7
func GetRemoteCorootDialer(cfg *db.IntegrationClickhouse) *Dialer
type LowLevelClient ¶
type LowLevelClient struct {
// contains filtered or unexported fields
}
func NewLowLevelClient ¶
func NewLowLevelClient(ctx context.Context, cfg *db.IntegrationClickhouse) (*LowLevelClient, error)
func (*LowLevelClient) Close ¶
func (c *LowLevelClient) Close()
func (*LowLevelClient) CreateDB ¶
func (c *LowLevelClient) CreateDB(ctx context.Context, name string) error
func (*LowLevelClient) Exec ¶
func (c *LowLevelClient) Exec(ctx context.Context, query string) error
func (*LowLevelClient) GetInfo ¶
func (c *LowLevelClient) GetInfo() (ClickHouseInfo, error)
func (*LowLevelClient) Migrate ¶
func (c *LowLevelClient) Migrate(ctx context.Context, cfg config.CollectorConfig) error
Click to show internal directories.
Click to hide internal directories.