static

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package static implements connect to static Clickhouse node or cluster.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cluster

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

Cluster ...

func New

func New(ctx context.Context, opts NewOptions) (*Cluster, error)

New returns new static Cluster.

func (*Cluster) Close

func (c *Cluster) Close() (err error)

Close Cluster.

func (*Cluster) Shards

func (c *Cluster) Shards(_ context.Context) ([]database.Shard, error)

Shards returns slice of Shards.

type NewOptions

type NewOptions struct {
	Address     string
	Username    string
	Password    string
	ClusterName string
}

NewOptions ...

Jump to

Keyboard shortcuts

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