interf

package
Version: v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2020 License: Apache-2.0 Imports: 0 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CompressOp

type CompressOp interface {
	Operation
	Compress(data []byte) ([]byte, error)
	Decompress(data []byte) ([]byte, error)
}

type EncryptOp

type EncryptOp interface {
	Operation
	Encrypt(data []byte) ([]byte, error)
	Decrypt(data []byte) ([]byte, error)
}

type Message

type Message struct {
	Type    uint16
	Content []byte
}

type Operation

type Operation interface {
	Operate(direct int8, input interface{}, output interface{}) (bool, error)
}

操作接口

type PacketOp

type PacketOp interface {
	Operation
	Pack(originData interface{}) ([]byte, error)
	Unpack(packData []byte, obj interface{}) error
}

type Transform

type Transform interface {
	AddOp(opType int8, params []interface{}) bool
	Execute(direct int8, input interface{}, output interface{}) error
	Reset()
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL