kafka

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: 7 Imported by: 0

Documentation

Overview

Package kafka is the native client probe for kafka.

Index

Constants

View Source
const Kind string = "Kafka"

Kind is the type of driver

Variables

This section is empty.

Functions

This section is empty.

Types

type Kafka

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

	Context context.Context `yaml:"-" json:"-"`
	// contains filtered or unexported fields
}

Kafka is the Kafka client

func New

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

New create a Kafka client

func (*Kafka) Kind

func (k *Kafka) Kind() string

Kind return the name of client

func (*Kafka) Probe

func (k *Kafka) 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