common

package
v0.0.1-mvp Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClientInfo

type ClientInfo struct {
	ClientID         string
	PublicProtocol   string
	PublicIP         string
	PublicPort       uint16
	InternalProtocol string
	InternalIP       string
	InternalPort     uint16
}

type HandshakeReq

type HandshakeReq struct {
	ClientID string
}

func (*HandshakeReq) Decode

func (req *HandshakeReq) Decode(reader io.Reader) error

func (*HandshakeReq) Encode

func (req *HandshakeReq) Encode() ([]byte, error)

type ProxyProtocol

type ProxyProtocol struct {
	ClientID         string
	PublicProtocol   string
	PublicIP         string
	PublicPort       uint16
	InternalProtocol string
	InternalIP       string
	InternalPort     uint16
}

func (*ProxyProtocol) Decode

func (pp *ProxyProtocol) Decode(reader io.Reader) error

func (*ProxyProtocol) Encode

func (pp *ProxyProtocol) Encode() ([]byte, error)

Jump to

Keyboard shortcuts

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