socket

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2022 License: Apache-2.0 Imports: 2 Imported by: 3

Documentation

Index

Constants

View Source
const (
	Unknown byte = 0
	Text    byte = 1
	Bin     byte = 2
	Open    byte = 3
	Close   byte = 4
	Ping    byte = 9
	Pong    byte = 10
)

Variables

This section is empty.

Functions

This section is empty.

Types

type JsonPack

type JsonPack struct {
	Event string
	Data  interface{}
	ID    int64
}

type Pack

type Pack struct {
	Event string
	Data  []byte
	ID    int64
}

type ProtoBufPack

type ProtoBufPack struct {
	Event string
	Data  proto.Message
	ID    int64
}

type Stream

type Stream struct {
	Pack

	Context kitty2.Context
	Params  kitty2.Params
	Logger  kitty2.Logger
}

Directories

Path Synopsis
tcp
udp

Jump to

Keyboard shortcuts

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