clients

package
v0.0.0-...-c475b33 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2020 License: MIT Imports: 16 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClients

func NewClients() *interfaces.WebsocketClient

NewClients -

Types

type Clients

type Clients struct {
	AlreadyDestroy bool
	Options        *interfaces.WebsocketClientOption
	Socket         []*clients
	CurrentIndex   int
	CountThread    int
	sync.RWMutex
}

Clients -

func (*Clients) ChangeURL

func (cc *Clients) ChangeURL(ad interfaces.ClientURL, useproxy bool, pr interfaces.ClientURL)

ChangeURL -

func (*Clients) Close

func (cc *Clients) Close(id int)

Close -

func (*Clients) CloseAll

func (cc *Clients) CloseAll()

CloseAll -

func (*Clients) Destroy

func (cc *Clients) Destroy()

Destroy -

func (*Clients) New

New -

func (*Clients) Send

func (cc *Clients) Send(msg []byte)

Send -

func (*Clients) SendGob

func (cc *Clients) SendGob(msg interface{})

SendGob -

func (*Clients) SendGobID

func (cc *Clients) SendGobID(idx int, msg interface{})

SendGobID -

func (*Clients) SendID

func (cc *Clients) SendID(idx int, msg []byte)

SendID -

func (*Clients) SendJSON

func (cc *Clients) SendJSON(msg interface{})

SendJSON -

func (*Clients) SendJSONID

func (cc *Clients) SendJSONID(idx int, msg interface{})

SendJSONID -

type SubChannel

type SubChannel struct {
	sync.Mutex
	// contains filtered or unexported fields
}

SubChannel -

func (*SubChannel) Close

func (cc *SubChannel) Close(callback func())

Close -

Jump to

Keyboard shortcuts

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