cmd

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2022 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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"
)
View Source
var Logger log.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 added in v1.1.0

func NewInfluxDBCommand() *cobra.Command

NewInfluxDBCommand creates the influxdb sub-command

func NewMongoDBCommand added in v1.1.0

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 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