subscription

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2024 License: MPL-2.0 Imports: 9 Imported by: 0

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

func Generate

func Generate(profile *models.Profile, account map[string]json.RawMessage) (string, error)

Types

type Error

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

func (*Error) Error

func (e *Error) Error() string

func (*Error) Unwrap

func (e *Error) Unwrap() error

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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