status

package
v0.31.0 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2021 License: Apache-2.0 Imports: 15 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     logging.Logger
	Connection connection.Connection

	// request specific services
	Services []string
}

type RegistryStatus added in v0.27.0

type RegistryStatus struct {
	ID          string `json:"id,omitempty"`
	Name        string `json:"name,omitempty"`
	Status      string `json:"status,omitempty"`
	RegistryUrl string `json:"registryUrl,omitempty" title:"Registry URL"`
}

type Status

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

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