protocol

package
v0.0.0-...-cca48ee Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2019 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	NotSupportProtocolError = errors.New("protocol do not support")
)

Functions

This section is empty.

Types

type IProtocol

type IProtocol interface {
	SetServerInfo(s *ssr.ServerInfoForObfs)
	GetServerInfo() *ssr.ServerInfoForObfs
	PreEncrypt(data []byte) ([]byte, error)
	PostDecrypt(data []byte) ([]byte, int, error)
	SetData(data interface{})
	GetData() interface{}
}

func NewAuthAES128MD5

func NewAuthAES128MD5() IProtocol

func NewAuthAES128SHA1

func NewAuthAES128SHA1() IProtocol

func NewAuthSHA1v4

func NewAuthSHA1v4() IProtocol

func NewOrigin

func NewOrigin() IProtocol

func NewProtocol

func NewProtocol(name string) (iprotocol IProtocol, err error)

func NewVerifySHA1

func NewVerifySHA1() IProtocol

Jump to

Keyboard shortcuts

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