cmd

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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 NewMetricsCmd

func NewMetricsCmd() *cobra.Command

func NewMetricsPostCmd

func NewMetricsPostCmd() *cobra.Command

func NewRootCmd

func NewRootCmd() *cobra.Command

func SetVersionInfo

func SetVersionInfo(version, commit, date string)

Types

type Config

type Config struct {
	Endpoint string            `yaml:"endpoint"`
	Headers  map[string]string `yaml:"headers"`
}

type VersionInfo

type VersionInfo struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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