server

package
v0.0.0-...-7c8c02e Latest Latest
Warning

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

Go to latest
Published: May 21, 2019 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Start

func Start(listen string)

Types

type Connection

type Connection struct {
	Events chan *event

	Deadline  time.Time
	SessionId int
	// contains filtered or unexported fields
}

func (*Connection) Close

func (c *Connection) Close()

func (*Connection) Listen

func (c *Connection) Listen()

func (*Connection) Send

func (c *Connection) Send(body string)

func (*Connection) TimeOutEvent

func (c *Connection) TimeOutEvent()

type PMessage

type PMessage struct {
	Id  int
	Msg string
}

type SocketServer

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

func GetServer

func GetServer() *SocketServer

func (*SocketServer) Dispatch

func (s *SocketServer) Dispatch(url, body string)

func (*SocketServer) Start

func (s *SocketServer) Start()

Jump to

Keyboard shortcuts

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