cli

package
v0.0.63-rc62 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2019 License: MPL-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FLAG_NAME_CLUSTER        = "cluster"
	FLAG_NAME_SERVICE        = "service"
	FLAG_NAME_SERVICE_GOSSIP = "gossip"
)

Variables

This section is empty.

Functions

func AddClusterFlags

func AddClusterFlags(root *cobra.Command)

func JoinConsulPeers added in v0.0.64

func JoinConsulPeers(api *consul.Client, service string, selfAddress string, selfPort int, mesh cluster.Mesh, logger *zap.Logger) error

func Run

func Run(cmd *cobra.Command, name string, serviceFunc func(id string, logger *zap.Logger, mesh cluster.Mesh) Service)

Types

type Service

type Service interface {
	Serve(port int) net.Listener
	Shutdown()
	JoinServiceLayer(layer types.ServiceLayer)
	Health() string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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