cmd

package
v2.14.0 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2024 License: Apache-2.0 Imports: 33 Imported by: 0

Documentation

Index

Constants

View Source
const ExitError = 1

ExitError is the error exit code

View Source
const ExitTimedOut = 124

ExitTimedOut is the timed out exit code

Variables

View Source
var (
	// AppVersion represents Wait4X version
	AppVersion = "$Format:%(describe:tags=true)$"
	// GitCommit represents Wait4X commit sha1 hash from git, output of $(git rev-parse HEAD)
	GitCommit = "$Format:%H$"
	// BuildTime represents Wait4X build time in ISO8601 format, output of $(date -u '+%FT%TZ')
	BuildTime = "1970-01-01T00:00:00Z"
)
View Source
var Logger logr.Logger

Logger is the global logger.

Functions

func Execute

func Execute()

Execute run Wait4X application

func NewHTTPCommand

func NewHTTPCommand() *cobra.Command

NewHTTPCommand creates the http sub-command

func NewInfluxDBCommand

func NewInfluxDBCommand() *cobra.Command

NewInfluxDBCommand creates the influxdb sub-command

func NewMongoDBCommand

func NewMongoDBCommand() *cobra.Command

NewMongoDBCommand creates the mongodb sub-command

func NewMysqlCommand

func NewMysqlCommand() *cobra.Command

NewMysqlCommand creates the mysql sub-command

func NewPostgresqlCommand

func NewPostgresqlCommand() *cobra.Command

NewPostgresqlCommand creates the postgresql sub-command

func NewRabbitMQCommand

func NewRabbitMQCommand() *cobra.Command

NewRabbitMQCommand creates the rabbitmq sub-command

func NewRedisCommand

func NewRedisCommand() *cobra.Command

NewRedisCommand creates the redis sub-command

func NewRootCommand

func NewRootCommand() *cobra.Command

NewRootCommand creates the root command

func NewTCPCommand

func NewTCPCommand() *cobra.Command

NewTCPCommand creates the tcp sub-command

func NewVersionCommand

func NewVersionCommand() *cobra.Command

NewVersionCommand creates the version sub-command

Types

type Version

type Version struct {
	AppVersion string
	GoVersion  string
	GoOs       string
	GoArch     string
	GitCommit  string
	BuildTime  string
}

Version represents some information which useful in version sub-command

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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