Documentation ¶
Index ¶
- type ElectionStatus
- type Hub
- func (h *Hub) APIServer() *api.Server
- func (h *Hub) GetStatus() interface{}
- func (h *Hub) GremlinTraversalParser() *traversal.GremlinTraversalParser
- func (h *Hub) HTTPServer() *shttp.Server
- func (h *Hub) OnPong(speaker websocket.Speaker)
- func (h *Hub) OnStarted()
- func (h *Hub) PodServer() *websocket.StructServer
- func (h *Hub) Start() error
- func (h *Hub) Stop()
- func (h *Hub) SubscriberServer() *websocket.StructServer
- type Opts
- type PeeredClustersStatus
- type PeeringOpts
- type PeersStatus
- type Status
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ElectionStatus ¶
type ElectionStatus struct {
IsMaster bool
}
ElectionStatus describes the status of an election
type Hub ¶
Hub describes a graph hub that accepts incoming connections from pods, other hubs, subscribers or external publishers
func NewHub ¶
func NewHub(id string, serviceType service.Type, listen string, g *graph.Graph, cached *graph.CachedBackend, podEndpoint string, opts Opts) (*Hub, error)
NewHub returns a new hub
func (*Hub) GremlinTraversalParser ¶
func (h *Hub) GremlinTraversalParser() *traversal.GremlinTraversalParser
GremlinTraversalParser returns the hub Gremlin traversal parser
func (*Hub) HTTPServer ¶
HTTPServer returns the hub HTTP server
func (*Hub) PodServer ¶
func (h *Hub) PodServer() *websocket.StructServer
PodServer returns the websocket server dedicated to pods
func (*Hub) SubscriberServer ¶
func (h *Hub) SubscriberServer() *websocket.StructServer
SubscriberServer returns the websocket server dedicated to subscribers
type Opts ¶
type Opts struct { Hostname string Version string ClusterName string WebsocketOpts websocket.ServerOpts WebsocketClientOpts websocket.ClientOpts APIValidator api.Validator GraphValidator schema.Validator TopologyMarshallers api.TopologyMarshallers StatusReporter api.StatusReporter APIAuthBackend shttp.AuthenticationBackend ClusterAuthBackend shttp.AuthenticationBackend ReplicationPeers []service.Address ClusterPeers map[string]*PeeringOpts TLSConfig *tls.Config EtcdClient *etcdclient.Client EtcdServerOpts *etcdserver.EmbeddedServerOpts Logger logging.Logger Assets assets.Assets }
Opts Hub options
type PeeredClustersStatus ¶
type PeeredClustersStatus struct { Election ElectionStatus Outgoers []websocket.ConnStatus }
PeeredClustersStatus describes the state of peering with an other cluster
type PeeringOpts ¶
type PeersStatus ¶
type PeersStatus struct { Incomers map[string]websocket.ConnStatus Outgoers map[string]websocket.ConnStatus }
PeersStatus describes the state of a peer
type Status ¶
type Status struct { Alerts ElectionStatus Pods map[string]websocket.ConnStatus Peers PeersStatus Publishers map[string]websocket.ConnStatus Subscribers map[string]websocket.ConnStatus PeeredClusters map[string]PeeredClustersStatus }
Status describes the status of a hub
Click to show internal directories.
Click to hide internal directories.