pkg

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

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

Go to latest
Published: May 20, 2020 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	SessionId   int64
	SessionIdCh = make(chan string, 100)
	Sessions    *Session
)

Functions

func Wrapper

func Wrapper(f func())

Types

type Message

type Message struct {
	Route    string `json:"route"`
	Id       int64  `json:"id"`
	Method   string `json:"method"`
	Data     []byte `json:"data"`
	Hearbeat string `json:"hearbeat"`
}

type Session

type Session struct {
	SessionId string
	Manager   *safe_map.SyncMap
	Route     *safe_map.SyncMap
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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