zookeeper

package
v1.9.0 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package zookeeper is the zookeeper client probe

Index

Constants

View Source
const Kind string = "ZooKeeper"

Kind is the type of driver

Variables

This section is empty.

Functions

This section is empty.

Types

type Zookeeper

type Zookeeper struct {
	conf.Options `yaml:",inline"`

	Context context.Context `yaml:"conn_str,omitempty" json:"conn_str,omitempty"`
	// contains filtered or unexported fields
}

Zookeeper is the Zookeeper client

func New

func New(opt conf.Options) (*Zookeeper, error)

New create a Zookeeper client

func (*Zookeeper) Kind

func (z *Zookeeper) Kind() string

Kind return the name of client

func (*Zookeeper) Probe

func (z *Zookeeper) Probe() (bool, string)

Probe do the health check

Jump to

Keyboard shortcuts

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