status

package
v0.0.0-...-5a2146a Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2021 License: Apache-2.0 Imports: 14 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 {
	Config     config.IConfig
	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