Documentation ¶
Index ¶
- Constants
- Variables
- func ConnectClickHouse(config *ClickHouseConfig) (*sql.DB, error)
- type ClickHouseConfig
- type ClickHouseExportProcess
- func (ch *ClickHouseExportProcess) CacheRecord(record ipfixentities.Record)
- func (ch *ClickHouseExportProcess) GetClickHouseConfig() ClickHouseConfig
- func (ch *ClickHouseExportProcess) GetCommitInterval() time.Duration
- func (ch *ClickHouseExportProcess) SetCommitInterval(commitInterval time.Duration)
- func (ch *ClickHouseExportProcess) Start()
- func (ch *ClickHouseExportProcess) Stop()
- func (ch *ClickHouseExportProcess) UpdateCH(config ClickHouseConfig, connect *sql.DB)
Constants ¶
View Source
const (
ProtocolUnknown = -1
)
Variables ¶
View Source
var PrepareClickHouseConnection = prepareConnection
PrepareClickHouseConnection is used for unit testing
Functions ¶
func ConnectClickHouse ¶ added in v1.8.0
func ConnectClickHouse(config *ClickHouseConfig) (*sql.DB, error)
Types ¶
type ClickHouseConfig ¶ added in v1.13.0
type ClickHouseExportProcess ¶
type ClickHouseExportProcess struct {
// contains filtered or unexported fields
}
func NewClickHouseClient ¶
func NewClickHouseClient(config ClickHouseConfig, clusterUUID string) (*ClickHouseExportProcess, error)
func (*ClickHouseExportProcess) CacheRecord ¶ added in v1.9.0
func (ch *ClickHouseExportProcess) CacheRecord(record ipfixentities.Record)
func (*ClickHouseExportProcess) GetClickHouseConfig ¶ added in v1.13.0
func (ch *ClickHouseExportProcess) GetClickHouseConfig() ClickHouseConfig
func (*ClickHouseExportProcess) GetCommitInterval ¶ added in v1.8.0
func (ch *ClickHouseExportProcess) GetCommitInterval() time.Duration
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()
func (*ClickHouseExportProcess) UpdateCH ¶ added in v1.8.0
func (ch *ClickHouseExportProcess) UpdateCH(config ClickHouseConfig, connect *sql.DB)
Click to show internal directories.
Click to hide internal directories.