Documentation
¶
Index ¶
- Constants
- func CreateHypertable(pool *pgxpool.Pool, timeDimension string, chunkSize time.Duration, ...) (string, string, error)
- func CreateTempFile(pattern string) (string, error)
- func RandomNumber(min, max int) int
- type CollectedEvent
- type Column
- type Envelope
- type EventCollectorSink
- func (t *EventCollectorSink) Clear()
- func (t *EventCollectorSink) Emit(_ sink.Context, timestamp time.Time, topicName string, ...) error
- func (t *EventCollectorSink) Events() []CollectedEvent
- func (t *EventCollectorSink) NumOfEvents() int
- func (t *EventCollectorSink) Start() error
- func (t *EventCollectorSink) Stop() error
- func (t *EventCollectorSink) SystemConfigConfigurator(config *sysconfig.SystemConfig)
- type EventCollectorSinkOption
- type Field
- type ForwarderSink
- type Payload
- type Schema
- type Source
Constants ¶
View Source
const (
DatabaseSchema = "tsdb"
)
Variables ¶
This section is empty.
Functions ¶
func CreateHypertable ¶
func CreateTempFile ¶
func RandomNumber ¶ added in v0.4.0
Types ¶
type CollectedEvent ¶
type Column ¶
type Column struct {
// contains filtered or unexported fields
}
func (Column) DefaultValue ¶
func (Column) IsNullable ¶
func (Column) IsPrimaryKey ¶
type EventCollectorSink ¶
type EventCollectorSink struct {
// contains filtered or unexported fields
}
func NewEventCollectorSink ¶
func NewEventCollectorSink( options ...EventCollectorSinkOption, ) *EventCollectorSink
func (*EventCollectorSink) Clear ¶
func (t *EventCollectorSink) Clear()
func (*EventCollectorSink) Events ¶
func (t *EventCollectorSink) Events() []CollectedEvent
func (*EventCollectorSink) NumOfEvents ¶
func (t *EventCollectorSink) NumOfEvents() int
func (*EventCollectorSink) Start ¶
func (t *EventCollectorSink) Start() error
func (*EventCollectorSink) Stop ¶
func (t *EventCollectorSink) Stop() error
func (*EventCollectorSink) SystemConfigConfigurator ¶
func (t *EventCollectorSink) SystemConfigConfigurator( config *sysconfig.SystemConfig, )
type EventCollectorSinkOption ¶
type EventCollectorSinkOption = func(eventCollectorSink *EventCollectorSink)
func WithFilter ¶
func WithPostHook ¶
func WithPostHook( fn func(sink *EventCollectorSink), ) EventCollectorSinkOption
func WithPreHook ¶
func WithPreHook( fn func(sink *EventCollectorSink), ) EventCollectorSinkOption
type Field ¶
type ForwarderSink ¶
type ForwarderSink struct {
// contains filtered or unexported fields
}
func NewForwarderSink ¶
type Source ¶
type Source struct { Connector string `json:"connector"` DB string `json:"db"` LSN string `json:"lsn"` TxId uint32 `json:"txId"` Name string `json:"name"` Schema string `json:"schema"` Snapshot bool `json:"snapshot"` Table string `json:"table"` TsMs uint64 `json:"ts_ms"` Version string `json:"version"` }
Click to show internal directories.
Click to hide internal directories.