Documentation ¶
Index ¶
- type RouterController
- func (c *RouterController) Authenticate(sid string, env *common.SessionEnv) (*common.ConnectResult, error)
- func (c *RouterController) Disconnect(sid string, env *common.SessionEnv, id string, subscriptions []string) error
- func (c *RouterController) Empty() bool
- func (c *RouterController) Perform(sid string, env *common.SessionEnv, id string, channel string, data string) (*common.CommandResult, error)
- func (c *RouterController) Route(channel string, handler node.Controller) error
- func (c *RouterController) Routes() []string
- func (c *RouterController) SetDefault(controller node.Controller)
- func (c *RouterController) Shutdown() error
- func (c *RouterController) Start() error
- func (c *RouterController) Subscribe(sid string, env *common.SessionEnv, id string, channel string) (*common.CommandResult, error)
- func (c *RouterController) Unsubscribe(sid string, env *common.SessionEnv, id string, channel string) (*common.CommandResult, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RouterController ¶
type RouterController struct {
// contains filtered or unexported fields
}
func NewRouterController ¶
func NewRouterController(c node.Controller) *RouterController
func (*RouterController) Authenticate ¶
func (c *RouterController) Authenticate(sid string, env *common.SessionEnv) (*common.ConnectResult, error)
func (*RouterController) Disconnect ¶
func (c *RouterController) Disconnect(sid string, env *common.SessionEnv, id string, subscriptions []string) error
func (*RouterController) Empty ¶
func (c *RouterController) Empty() bool
func (*RouterController) Perform ¶
func (c *RouterController) Perform(sid string, env *common.SessionEnv, id string, channel string, data string) (*common.CommandResult, error)
func (*RouterController) Route ¶
func (c *RouterController) Route(channel string, handler node.Controller) error
func (*RouterController) Routes ¶
func (c *RouterController) Routes() []string
func (*RouterController) SetDefault ¶
func (c *RouterController) SetDefault(controller node.Controller)
func (*RouterController) Shutdown ¶
func (c *RouterController) Shutdown() error
func (*RouterController) Start ¶
func (c *RouterController) Start() error
func (*RouterController) Subscribe ¶
func (c *RouterController) Subscribe(sid string, env *common.SessionEnv, id string, channel string) (*common.CommandResult, error)
func (*RouterController) Unsubscribe ¶
func (c *RouterController) Unsubscribe(sid string, env *common.SessionEnv, id string, channel string) (*common.CommandResult, error)
Click to show internal directories.
Click to hide internal directories.