Documentation
¶
Index ¶
- type ConnStatus
- type Opts
- type Pod
- func (p *Pod) APIServer() *api.Server
- func (p *Pod) ClientPool() *websocket.StructClientPool
- func (p *Pod) Forwarder() *clients.Forwarder
- func (p *Pod) GetStatus() interface{}
- func (p *Pod) GremlinTraversalParser() *traversal.GremlinTraversalParser
- func (p *Pod) HTTPServer() *shttp.Server
- func (p *Pod) Start() error
- func (p *Pod) Stop()
- func (p *Pod) SubscriberServer() *websocket.StructServer
- type Status
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConnStatus ¶
type ConnStatus struct { websocket.ConnStatus IsMaster bool }
ConnStatus represents the status of a connection to a hub
type Opts ¶
type Opts struct { Version string Hubs []service.Address WebsocketOpts websocket.ServerOpts WebsocketClientOpts websocket.ClientOpts APIValidator api.Validator GraphValidator schema.Validator TopologyMarshallers api.TopologyMarshallers StatusReporter api.StatusReporter TLSConfig *tls.Config APIAuthBackend shttp.AuthenticationBackend Logger logging.Logger }
Opts defines pod server options
type Pod ¶
type Pod struct {
// contains filtered or unexported fields
}
Pod describes a graph pod. It maintains a local graph in memory and forward any event to graph hubs
func NewPod ¶
func NewPod(id string, serviceType service.Type, listen string, podEndpoint string, g *graph.Graph, opts Opts) (*Pod, error)
NewPod returns a new pod
func (*Pod) ClientPool ¶
func (p *Pod) ClientPool() *websocket.StructClientPool
ClientPool returns the WebSocket client pool
func (*Pod) GetStatus ¶
func (p *Pod) GetStatus() interface{}
GetStatus returns the status of the pod
func (*Pod) GremlinTraversalParser ¶
func (p *Pod) GremlinTraversalParser() *traversal.GremlinTraversalParser
GremlinTraversalParser returns the pod Gremlin traversal parser
func (*Pod) HTTPServer ¶
HTTPServer returns the pod HTTP server
func (*Pod) SubscriberServer ¶
func (p *Pod) SubscriberServer() *websocket.StructServer
SubscriberServer returns the websocket server dedicated to subscribers
type Status ¶
type Status struct { Subscribers map[string]websocket.ConnStatus Hubs map[string]ConnStatus }
Status describes the status of a pod
Click to show internal directories.
Click to hide internal directories.