rails

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CableReadyController

type CableReadyController struct {
	// contains filtered or unexported fields
}

func NewCableReadyController

func NewCableReadyController(key string) *CableReadyController

func (*CableReadyController) Authenticate

func (c *CableReadyController) Authenticate(sid string, env *common.SessionEnv) (*common.ConnectResult, error)

func (*CableReadyController) Disconnect

func (c *CableReadyController) Disconnect(sid string, env *common.SessionEnv, id string, subscriptions []string) error

func (*CableReadyController) Perform

func (c *CableReadyController) Perform(sid string, env *common.SessionEnv, id string, channel string, data string) (*common.CommandResult, error)

func (*CableReadyController) Shutdown

func (c *CableReadyController) Shutdown() error

func (*CableReadyController) Start

func (c *CableReadyController) Start() error

func (*CableReadyController) Subscribe

func (c *CableReadyController) Subscribe(sid string, env *common.SessionEnv, id string, channel string) (*common.CommandResult, error)

func (*CableReadyController) Unsubscribe

func (c *CableReadyController) Unsubscribe(sid string, env *common.SessionEnv, id string, channel string) (*common.CommandResult, error)

type Config

type Config struct {
	TurboRailsKey string
	CableReadyKey string
}

func NewConfig

func NewConfig() Config

type TurboController

type TurboController struct {
	// contains filtered or unexported fields
}

func NewTurboController

func NewTurboController(key string) *TurboController

func (*TurboController) Authenticate

func (c *TurboController) Authenticate(sid string, env *common.SessionEnv) (*common.ConnectResult, error)

func (*TurboController) Disconnect

func (c *TurboController) Disconnect(sid string, env *common.SessionEnv, id string, subscriptions []string) error

func (*TurboController) Perform

func (c *TurboController) Perform(sid string, env *common.SessionEnv, id string, channel string, data string) (*common.CommandResult, error)

func (*TurboController) Shutdown

func (c *TurboController) Shutdown() error

func (*TurboController) Start

func (c *TurboController) Start() error

func (*TurboController) Subscribe

func (c *TurboController) Subscribe(sid string, env *common.SessionEnv, id string, channel string) (*common.CommandResult, error)

func (*TurboController) Unsubscribe

func (c *TurboController) 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