Documentation ¶
Index ¶
- type Controller
- func (c *Controller) Authenticate(sid string, path string, headers *map[string]string) (string, []string, error)
- func (c *Controller) Disconnect(sid string, id string, subscriptions []string, path string, ...) error
- func (c *Controller) Perform(sid string, id string, channel string, data string) (*node.CommandResult, error)
- func (c *Controller) Shutdown() error
- func (c *Controller) Start() error
- func (c *Controller) Subscribe(sid string, id string, channel string) (*node.CommandResult, error)
- func (c *Controller) Unsubscribe(sid string, id string, channel string) (*node.CommandResult, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Controller ¶
type Controller struct {
// contains filtered or unexported fields
}
Controller implements node.Controller interface for gRPC
func NewController ¶
func NewController(config *config.Config, metrics *metrics.Metrics) *Controller
NewController builds new Controller from config
func (*Controller) Authenticate ¶
func (c *Controller) Authenticate(sid string, path string, headers *map[string]string) (string, []string, error)
Authenticate performs Connect RPC call
func (*Controller) Disconnect ¶
func (c *Controller) Disconnect(sid string, id string, subscriptions []string, path string, headers *map[string]string) error
Disconnect performs disconnect RPC call
func (*Controller) Perform ¶
func (c *Controller) Perform(sid string, id string, channel string, data string) (*node.CommandResult, error)
Perform performs Command RPC call with "perform" command
func (*Controller) Subscribe ¶
func (c *Controller) Subscribe(sid string, id string, channel string) (*node.CommandResult, error)
Subscribe performs Command RPC call with "subscribe" command
func (*Controller) Unsubscribe ¶
func (c *Controller) Unsubscribe(sid string, id string, channel string) (*node.CommandResult, error)
Unsubscribe performs Command RPC call with "unsubscribe" command
Click to show internal directories.
Click to hide internal directories.