proto

package
v0.0.0-...-6c08c79 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WriteRequest

func WriteRequest(writer io.Writer, req *WebsocketConnectionRequest) error

Types

type WebsocketConnectionRequest

type WebsocketConnectionRequest struct {
	DestinationSize    uint32 `struc:"uint32,big,sizeof=Destination"`
	Destination        string
	ProtocolStringSize uint32 `struc:"uint32,big,sizeof=ProtocolString"`
	ProtocolString     string
}

func ReadRequest

func ReadRequest(reader io.Reader) (error, *WebsocketConnectionRequest)

type WebsocketLength

type WebsocketLength struct {
	Length uint32 `struc:"uint32,big,sizeof=Data"`
	Data   []byte
}

Jump to

Keyboard shortcuts

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