handler

package
v0.0.0-...-d539b93 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrUnimplemented = errors.New("Unimplemented")
View Source
var ErrWSControlMsg = errors.New("control msg")

ErrWSControlMsg is used to denote that there's no need to transport message from reader to writer

View Source
var ErrWSResponseMsg = errors.New("response msg")

Functions

This section is empty.

Types

type Handler

type Handler interface {
	WSClientHandler
}

type WSClientHandler

type WSClientHandler interface {
	HandleRead(*ws.Conn) ([]byte, error)
	HandleWrite(*ws.Conn, []byte) error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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