encoding

package
v0.0.0-...-4743043 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2023 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HandshakeRecord

type HandshakeRecord interface {
	GetClientVersion() string
	GetCipherSuites() []byte
	SetCipherSuites([]byte)
	GetSessionId() []byte
	SetSessionId([]byte)
	GetRandom() []byte
	GetCookie() []byte
	SetCookie([]byte)
	GetToken() []byte
	GetKey() []byte
	GetTimestamp() int64
	SetTimestamp(int64)
}

type PingRecord

type PingRecord interface {
	GetSentAt() int64
}

type PongRecord

type PongRecord interface {
	GetPingSentAt() int64
	SetPingSentAt(int64)
	GetReceivedAt() int64
	SetReceivedAt(int64)
	GetSentAt() int64
	SetSentAt(int64)
}

type Transcoder

type Transcoder interface {
	Marshal(interface{}) ([]byte, error)
	Unmarshal([]byte, interface{}) error

	NewHandshakeRecord() HandshakeRecord
	MarshalHandshake(HandshakeRecord) ([]byte, error)
	UnmarshalHandshake([]byte) (HandshakeRecord, error)

	UnmarshalPing([]byte) (PingRecord, error)
	NewPongRecord() PongRecord
	MarshalPong(PongRecord) ([]byte, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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