protocol

package
v1.1.0-beta Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2023 License: MPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNoHost = errors.New("no address or port specified")
View Source
var ErrNoId = errors.New("no id or password specified")

Functions

func NewTrojan

func NewTrojan(outboundSettings json.RawMessage, userAccount json.RawMessage) (*trojan, error)

func NewVless

func NewVless(outboundSettings json.RawMessage, userAccount json.RawMessage) (*vless, error)

func NewVmess

func NewVmess(outboundSettings json.RawMessage, userAccount json.RawMessage) (*vmess, error)

Types

type FlowError

type FlowError string

func (FlowError) Error

func (e FlowError) Error() string

type IllegalPortError

type IllegalPortError uint16

func (IllegalPortError) Error

func (e IllegalPortError) Error() string

type ParseAccountError

type ParseAccountError struct {
	// contains filtered or unexported fields
}

func (*ParseAccountError) Error

func (e *ParseAccountError) Error() string

func (*ParseAccountError) Unwrap

func (e *ParseAccountError) Unwrap() error

type ParseSettingsError

type ParseSettingsError struct {
	// contains filtered or unexported fields
}

func (*ParseSettingsError) Error

func (e *ParseSettingsError) Error() string

func (*ParseSettingsError) Unwrap

func (e *ParseSettingsError) Unwrap() error

Jump to

Keyboard shortcuts

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