server

package
v0.0.0-...-6c2d908 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Server = &cobra.Command{
	Use:   "server",
	Short: "Run the spnego-proxy server",
	PreRunE: func(cmd *cobra.Command, args []string) error {
		common.SetLogger()

		return nil
	},
	Run: Run,
}
View Source
var Version = &cobra.Command{
	Use:   "version",
	Short: "Print the kafka-proxy version",
	Run: func(cmd *cobra.Command, args []string) {
		fmt.Printf("version: %s \n", common.Version)
		fmt.Printf("buildTime: %s \n", common.BuildTime)
		fmt.Printf("branch: %s \n", common.Branch)
		fmt.Printf("commitID: %s \n", common.CommitId)
		fmt.Printf("commitDate: %s \n", common.CommitDate)
		fmt.Printf("go version: %s \n", common.GoVersion)
	},
}

Functions

func Run

func Run(_ *cobra.Command, _ []string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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