Documentation ¶
Index ¶
- Variables
- func ConnectClickHouse(url string) (*sql.DB, error)
- type ClickHouseExportProcess
- func (ch *ClickHouseExportProcess) CacheRecord(record ipfixentities.Record)
- func (ch *ClickHouseExportProcess) GetCommitInterval() time.Duration
- func (ch *ClickHouseExportProcess) GetDsn() string
- func (ch *ClickHouseExportProcess) GetDsnMap() map[string]string
- func (ch *ClickHouseExportProcess) SetCommitInterval(commitInterval time.Duration)
- func (ch *ClickHouseExportProcess) Start()
- func (ch *ClickHouseExportProcess) Stop()
- func (ch *ClickHouseExportProcess) UpdateCH(dsn string, connect *sql.DB)
- type ClickHouseInput
Constants ¶
This section is empty.
Variables ¶
View Source
var PrepareClickHouseConnection = prepareConnection
PrepareClickHouseConnection is used for unit testing
Functions ¶
Types ¶
type ClickHouseExportProcess ¶
type ClickHouseExportProcess struct {
// contains filtered or unexported fields
}
func NewClickHouseClient ¶
func NewClickHouseClient(input ClickHouseInput, clusterUUID string) (*ClickHouseExportProcess, error)
func (*ClickHouseExportProcess) CacheRecord ¶ added in v1.9.0
func (ch *ClickHouseExportProcess) CacheRecord(record ipfixentities.Record)
func (*ClickHouseExportProcess) GetCommitInterval ¶ added in v1.8.0
func (ch *ClickHouseExportProcess) GetCommitInterval() time.Duration
func (*ClickHouseExportProcess) GetDsn ¶ added in v1.8.0
func (ch *ClickHouseExportProcess) GetDsn() string
func (*ClickHouseExportProcess) GetDsnMap ¶ added in v1.8.0
func (ch *ClickHouseExportProcess) GetDsnMap() map[string]string
func (*ClickHouseExportProcess) SetCommitInterval ¶ added in v1.8.0
func (ch *ClickHouseExportProcess) SetCommitInterval(commitInterval time.Duration)
func (*ClickHouseExportProcess) Start ¶
func (ch *ClickHouseExportProcess) Start()
func (*ClickHouseExportProcess) Stop ¶
func (ch *ClickHouseExportProcess) Stop()
type ClickHouseInput ¶
type ClickHouseInput struct { Username string Password string Database string DatabaseURL string Debug bool Compress *bool CommitInterval time.Duration }
func (*ClickHouseInput) GetDataSourceName ¶ added in v1.9.0
func (ci *ClickHouseInput) GetDataSourceName() (string, error)
Click to show internal directories.
Click to hide internal directories.