Documentation
¶
Index ¶
Constants ¶
View Source
const ( Version = 0 AddrTypeIPv4 = 1 AddrTypeDomain = 2 AddrTypeIPv6 = 3 TCP = protocol.RequestCommandTCP // 0x01 UDP = protocol.RequestCommandUDP // 0x02 MUX = protocol.RequestCommandMux // 0x03 )
Variables ¶
This section is empty.
Functions ¶
func NewHTTPHandler ¶
NewHTTPHandler create handle over http
Types ¶
type Handler ¶
type Handler interface {
Handle(ctx context.Context, connect io.ReadWriteCloser) error
}
func NewHandler ¶
Click to show internal directories.
Click to hide internal directories.