router

package
v1.3.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 22, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL