health

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	// Bootstrapped returns true or false depending on the/ bootstrapped state
	// of the provided dbnode.
	Bootstrapped(namespace string, podName string) (bool, error)
}

Client provides the interface for checking cluster health.

func NewClient

func NewClient(opts ...Option) (Client, error)

NewClient constructs a new health client.

type Option

type Option interface {
	// contains filtered or unexported methods
}

Option provides an interface that can be used for setter options with the constructor

func WithClient

func WithClient(cl m3admin.Client) Option

WithClient configures an m3admin client.

func WithPort

func WithPort(port int) Option

WithPort overrides the default port (m3db.PortM3DBHTTPNode). This does nothing if WithURL is used.

func WithURL

func WithURL(u string) Option

WithURL is a setter to override the default base url for a node. This overrides the WithPort option.

Jump to

Keyboard shortcuts

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