cmd

package
v0.0.0-...-caa0154 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2023 License: MIT Imports: 39 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	BuildTS   = "None"
	GitHash   = "None"
	GitBranch = "None"
	Version   = "None"
)

Version information.

View Source
var GRPCListenAddress string
View Source
var HTTPListenAddress string
View Source
var MasterCmd = &cobra.Command{
	Use:   "master",
	Short: "run master service",
	Long:  "run master service",
	Args:  cobra.NoArgs,
	Run: func(cmd *cobra.Command, args []string) {
		runMaster()
	},
}
View Source
var PProfListenAddress string
View Source
var ServiceName = "go.micro.server.worker"
View Source
var VersionCmd = &cobra.Command{
	Use:   "version",
	Short: "print version",
	Long:  "print version",
	Args:  cobra.NoArgs,
	Run: func(cmd *cobra.Command, args []string) {
		Printer()
	},
}
View Source
var WorkerCmd = &cobra.Command{
	Use:   "worker",
	Short: "run worker service",
	Long:  "run worker service",
	Args:  cobra.NoArgs,
	Run: func(cmd *cobra.Command, args []string) {
		runWorker()
	},
}

Functions

func GetVersion

func GetVersion() string

func Printer

func Printer()

Printer print build version

Types

type Greeter

type Greeter struct {
}

func (Greeter) Hello

func (g Greeter) Hello(ctx context.Context, request *gt.Request, response *gt.Response) error

type ServerConfig

type ServerConfig struct {
	RegistryAddress  string
	RegisterTTL      int
	RegisterInterval int
	Name             string
	ClientTimeOut    int
}

Jump to

Keyboard shortcuts

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