clickhouse

package
v1.53.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 9, 2024 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	Conn *sql.DB
}

func New

func New(logger *zap.Logger, cfg *config.Config, forceMigrate bool) (*Client, error)

New constructs a new clickhouse client that conforms to the analytics.Client contract.

func (*Client) Close

func (c *Client) Close() error

Close will close the DB connection.

func (*Client) GetFlagEvaluationsCount

func (c *Client) GetFlagEvaluationsCount(ctx context.Context, req *panalytics.FlagEvaluationsCountRequest) ([]string, []float32, error)

func (*Client) IncrementFlagEvaluationCounts

func (c *Client) IncrementFlagEvaluationCounts(ctx context.Context, responses []*analytics.EvaluationResponse) error

IncrementFlagEvaluationCounts does a batch insert of flag values from evaluations.

func (*Client) String

func (c *Client) String() string

type Step

type Step struct {
	// contains filtered or unexported fields
}

Step defines the value and interval name of the time windows for the Clickhouse query.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL