status

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2021 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Print

func Print(w io.Writer, status *Status)

Print prints the status information of all set services

Types

type KafkaStatus

type KafkaStatus struct {
	ID                  string `json:"id,omitempty"`
	Name                string `json:"name,omitempty"`
	Status              string `json:"status,omitempty"`
	BootstrapServerHost string `json:"bootstrap_server_host,omitempty" title:"Bootstrap URL"`
	FailedReason        string `json:"failed_reason,omitempty" title:"Failed Reason"`
}

type Options

type Options struct {
	CfgHandler *config.CfgHandler
	Logger     func() (logging.Logger, error)
	Connection connection.Connection

	// request specific services
	Services []string
}

type Status

type Status struct {
	Kafka *KafkaStatus `json:"kafka,omitempty" title:"Kafka"`
}

func Get

func Get(ctx context.Context, opts *Options) (status *Status, ok bool, err error)

Get gets the status of all services currently set in the user config

Jump to

Keyboard shortcuts

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