peer

package
v1.6.3 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2020 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Peer

type Peer struct {
	ID  string
	URL string
	sync.Mutex
	C *websocket.Conn
}

Peer ...

func (*Peer) GetID

func (p *Peer) GetID() string

func (*Peer) GetURL

func (p *Peer) GetURL() string

func (*Peer) WriteMessage

func (p *Peer) WriteMessage(messageType int, data []byte) error

Jump to

Keyboard shortcuts

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