static

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: May 26, 2024 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 added in v0.0.7

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 added in v0.0.7

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

Close Cluster.

func (*Cluster) Shards added in v0.0.7

func (c *Cluster) Shards() ([]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