cmd

package
v0.0.0-...-dcd5017 Latest Latest
Warning

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

Go to latest
Published: May 1, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Verbose    bool
	HEALTH_URL string
)
View Source
var Version = "development-v0.0.1"

Functions

func Apm

func Apm()

func Execute

func Execute()

Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.

func Get

func Get(query string)

func Health

func Health()

func PrettyString

func PrettyString(str []byte) (string, error)
func init() {
	// rootCmd.Flags().StringVarP(&dotEnvPath, "envfilepath", "e", "", "Path to your environment file. if left empty, the program will only use system environment variables.")
}

Types

type Config

type Config struct {
	HEALTH_URL string `json:"health_url"`
	API_URL    string `json:"api_url"`
	APIKEY     string `json:"api_key"`
	APISECRET  string `json:"api_secret"`
}

type Response

type Response struct {
	Healthy     string `json:"isHealthy"`
	Application string `json:"application"`
}

Jump to

Keyboard shortcuts

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