connection

package
v0.0.0-...-bb13918 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2019 License: MIT Imports: 7 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Connection

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

Connection ...

func (*Connection) Send

func (client *Connection) Send(msgType string, payload interface{})

Send ...

type ConnectionsList

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

ConnectionsList ...

var Connections *ConnectionsList

Connections ...

func (*ConnectionsList) Add

func (obj *ConnectionsList) Add(socket *websocket.Conn) (err error)

Add ...

func (*ConnectionsList) Send

func (obj *ConnectionsList) Send(clientID int64, msgType string, payload interface{}) (err error)

Send ...

type Subscription

type Subscription struct {
	ClientID int64
	Name     string
	Data     interface{}
}

type SubscriptionList

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

SubscriptionList ...

var Subscriptions *SubscriptionList

Subscriptions ...

func (*SubscriptionList) Add

func (obj *SubscriptionList) Add(clientID int64, name string, data interface{}) (err error)

Add ...

func (*SubscriptionList) List

func (obj *SubscriptionList) List(name string) (subscriptions []*Subscription)

List ...

func (*SubscriptionList) Remove

func (obj *SubscriptionList) Remove(clientID int64, name string) (err error)

Remove ...

type WhitelistList

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

WhitelistList ...

var MessageWhitelist *WhitelistList

MessageWhitelist ...

func (*WhitelistList) Add

func (obj *WhitelistList) Add(msgType string) (err error)

Add ...

func (*WhitelistList) Contains

func (obj *WhitelistList) Contains(msgType string) bool

Contains ...

Jump to

Keyboard shortcuts

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