keeps

package
v0.0.0-...-796898b Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Keeper

type Keeper struct {
	ID string
	// contains filtered or unexported fields
}

Keeper websocket 对象

func Start

func Start(id string, conn *websocket.Conn) *Keeper

Start 启用 websocket

func (*Keeper) Close

func (keeper *Keeper) Close()

Close 关闭当前 websocket

func (*Keeper) Read

func (keeper *Keeper) Read() (data []byte, err error)

Read 读取 websocket 数据

func (*Keeper) Write

func (keeper *Keeper) Write(data []byte) (err error)

Write 写入数据到 websocket

Jump to

Keyboard shortcuts

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