keeper

package
v2.5.5 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DumpNode added in v2.5.0

type DumpNode struct {
	Path  string `json:"path"`
	Value string `json:"value"`
}

type Keeper

type Keeper struct {
	Log *log.Entry
	// contains filtered or unexported fields
}

func (*Keeper) ChildCount added in v2.5.0

func (k *Keeper) ChildCount(prefix, nodePath string) (int, error)

func (*Keeper) Close

func (k *Keeper) Close()

func (*Keeper) Connect

func (k *Keeper) Connect(ctx context.Context, ch *clickhouse.ClickHouse) error

Connect - connect to any zookeeper server from /var/lib/clickhouse/preprocessed_configs/config.xml

func (*Keeper) Delete added in v2.5.0

func (k *Keeper) Delete(nodePath string) error

func (*Keeper) Dump

func (k *Keeper) Dump(prefix, dumpFile string) (int, error)

func (*Keeper) GetReplicatedAccessPath

func (k *Keeper) GetReplicatedAccessPath(userDirectory string) (string, error)

func (*Keeper) Restore

func (k *Keeper) Restore(dumpFile, prefix string) error

func (*Keeper) Walk added in v2.5.0

func (k *Keeper) Walk(prefix, relativePath string, recursive bool, callback WalkCallBack) error

type LogKeeperToApexLogAdapter

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

func (LogKeeperToApexLogAdapter) Printf

func (KeeperLogToApexLogAdapter LogKeeperToApexLogAdapter) Printf(msg string, args ...interface{})

type WalkCallBack added in v2.5.0

type WalkCallBack = func(node DumpNode) (bool, error)

Jump to

Keyboard shortcuts

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