cmd

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2021 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Interval represents time between each loop
	Interval time.Duration
	// Timeout represents the maximum amount of time that Wait4X will wait for a checking operation
	Timeout time.Duration
	// LogLevel represents logging level e.g. info, warn, error, debug
	LogLevel string
	// Logger is the global logger.
	Logger log.Logger
)
View Source
var (
	// AppVersion represents Wait4X version
	AppVersion = "unknown-app-version"
	// GitCommit represents Wait4X commit hash
	GitCommit = "unknown-git-commit"
	// BuildTime represents Wait4X build time
	BuildTime = "unknown-build-time"
)

Functions

func Execute

func Execute()

Execute run Wait4X application

func NewHTTPCommand

func NewHTTPCommand() *cobra.Command

NewHTTPCommand creates the http 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 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

Jump to

Keyboard shortcuts

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