Documentation
¶
Index ¶
- Variables
- func GetEventsTableName(database string) string
- func GetMeterViewName(database string, namespace string, meterSlug string) string
- type ClickhouseConnector
- func (c *ClickhouseConnector) CountEvents(ctx context.Context, namespace string, params streaming.CountEventsParams) ([]streaming.CountEventRow, error)
- func (c *ClickhouseConnector) CreateMeter(ctx context.Context, namespace string, meter *models.Meter) error
- func (c *ClickhouseConnector) CreateNamespace(ctx context.Context, namespace string) error
- func (c *ClickhouseConnector) DeleteMeter(ctx context.Context, namespace string, meterSlug string) error
- func (c *ClickhouseConnector) DeleteNamespace(ctx context.Context, namespace string) error
- func (c *ClickhouseConnector) ListEvents(ctx context.Context, namespace string, params streaming.ListEventsParams) ([]api.IngestedEvent, error)
- func (c *ClickhouseConnector) ListMeterSubjects(ctx context.Context, namespace string, meterSlug string, from *time.Time, ...) ([]string, error)
- func (c *ClickhouseConnector) QueryMeter(ctx context.Context, namespace string, meterSlug string, ...) ([]models.MeterQueryRow, error)
- type ClickhouseConnectorConfig
- type MeterView
Constants ¶
This section is empty.
Variables ¶
View Source
var (
EventsTableName = "events"
)
Functions ¶
func GetEventsTableName ¶
Types ¶
type ClickhouseConnector ¶
type ClickhouseConnector struct {
// contains filtered or unexported fields
}
ClickhouseConnector implements `ingest.Connector“ and `namespace.Handler interfaces.
func NewClickhouseConnector ¶
func NewClickhouseConnector(config ClickhouseConnectorConfig) (*ClickhouseConnector, error)
func (*ClickhouseConnector) CountEvents ¶
func (c *ClickhouseConnector) CountEvents(ctx context.Context, namespace string, params streaming.CountEventsParams) ([]streaming.CountEventRow, error)
func (*ClickhouseConnector) CreateMeter ¶
func (*ClickhouseConnector) CreateNamespace ¶
func (c *ClickhouseConnector) CreateNamespace(ctx context.Context, namespace string) error
func (*ClickhouseConnector) DeleteMeter ¶
func (*ClickhouseConnector) DeleteNamespace ¶
func (c *ClickhouseConnector) DeleteNamespace(ctx context.Context, namespace string) error
func (*ClickhouseConnector) ListEvents ¶
func (c *ClickhouseConnector) ListEvents(ctx context.Context, namespace string, params streaming.ListEventsParams) ([]api.IngestedEvent, error)
func (*ClickhouseConnector) ListMeterSubjects ¶
func (*ClickhouseConnector) QueryMeter ¶
func (c *ClickhouseConnector) QueryMeter(ctx context.Context, namespace string, meterSlug string, params *streaming.QueryParams) ([]models.MeterQueryRow, error)
Click to show internal directories.
Click to hide internal directories.