Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNoFingerprint = errors.New("unspecified `fingerprint`: The item cannot be omitted when using REALITY protocol")
View Source
var ErrNoOutbound = errors.New("empty outbound setting")
View Source
var ErrNoProfile = errors.New("empty profile")
View Source
var ErrNoProtocol = errors.New("no protocol specified")
View Source
var ErrNoPublicKey = errors.New("unspecified `publicKey`: The item cannot be omitted when using REALITY protocol")
View Source
var ErrNoQuicKey = errors.New("no key set for QUIC: set a key or set `security` to `none`")
View Source
var ErrNoQuicSecurity = errors.New("security item not specified for QUIC: specify a security item except `none` or remove the key")
Functions ¶
Types ¶
type ParseHeaderError ¶
type ParseHeaderError struct {
// contains filtered or unexported fields
}
func (*ParseHeaderError) Error ¶
func (e *ParseHeaderError) Error() string
func (*ParseHeaderError) Unwrap ¶
func (e *ParseHeaderError) Unwrap() error
type Protocol ¶
type Protocol interface {
Id() (string, error)
Host() (string, error)
Encryption() string
Flow() string
}
func NewProtocol ¶
func NewProtocol(protocol string, settings json.RawMessage, account map[string]json.RawMessage) (Protocol, error)
type UnknownProtocolError ¶
type UnknownProtocolError string
func (UnknownProtocolError) Error ¶
func (e UnknownProtocolError) Error() string
Click to show internal directories.
Click to hide internal directories.