api

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2021 License: GPL-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const Version = 0

Variables

This section is empty.

Functions

func MakeQuery

func MakeQuery(query *Query) ([]byte, error)

func MakeResponse

func MakeResponse(response *Response) ([]byte, error)

Types

type Query

type Query struct {
	Version    uint8
	DeviceName string
}

func ParseQuery

func ParseQuery(message []byte) (*Query, error)

type Response

type Response struct {
	Version    uint8
	SocksPort  uint16
	DnsPort    uint16
	DeviceName string
	//UUID       uuid.UUID
	Debug     bool
	BypassLan bool
}

func ParseResponse

func ParseResponse(message []byte) (*Response, error)

Jump to

Keyboard shortcuts

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