Documentation ¶
Index ¶
- Constants
- Variables
- func AddClusterFlags(root *cobra.Command)
- func AddServiceFlags(root *cobra.Command, name string)
- func JoinConsulPeers(api *consul.Client, service string, selfAddress string, selfPort int, ...) error
- func Version() string
- type Context
- type HealthReport
- type Service
- type ServiceHealthReport
Constants ¶
View Source
const ( FLAG_NAME_CLUSTER = "cluster" FLAG_NAME_SERVICE = "service" FLAG_NAME_SERVICE_GOSSIP = "gossip" FLAG_NAME_SERVICE_GOSSIP_RPC = "gossip_rpc" )
Variables ¶
View Source
var BuiltVersion = "snapshot"
Functions ¶
func AddClusterFlags ¶
func AddServiceFlags ¶ added in v0.0.64
func JoinConsulPeers ¶ added in v0.0.64
Types ¶
type Context ¶ added in v0.0.64
type Context struct { ID string Logger *zap.Logger Discovery cluster.DiscoveryLayer MeshNetConf *network.Configuration Services []*serviceRunConfig }
func (*Context) AddService ¶ added in v0.0.64
type HealthReport ¶ added in v0.0.65
type HealthReport struct { Timestamp time.Time `json:"timestamp"` GlobalHealth string `json:"global_health"` Services []ServiceHealthReport `json:"services"` }
type Service ¶
type Service interface { Serve(port int) net.Listener Shutdown() JoinServiceLayer(string, *zap.Logger, cluster.ServiceConfig, cluster.ServiceConfig, cluster.DiscoveryLayer) Health() string }
type ServiceHealthReport ¶ added in v0.0.65
Click to show internal directories.
Click to hide internal directories.