protocol

package
v0.0.0-...-83fd405 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultDecryptor

func DefaultDecryptor(data []byte) error

func DefaultEncryptor

func DefaultEncryptor(data []byte) error

Types

type DecryptFunc

type DecryptFunc func(data []byte) (err error)

func (DecryptFunc) Decrypt

func (fn DecryptFunc) Decrypt(data []byte) error

type EncryptFunc

type EncryptFunc func(data []byte) (err error)

func (EncryptFunc) Encrypt

func (fn EncryptFunc) Encrypt(data []byte) error

type ErrDispatcherAlreadyRegister

type ErrDispatcherAlreadyRegister struct {
	MessageID interface{}
}

//////////////////////////////////////////////////////////////////////////////

func (ErrDispatcherAlreadyRegister) Error

type ErrNoDispatcher

type ErrNoDispatcher struct {
	MessageID interface{}
}

//////////////////////////////////////////////////////////////////////////////

func (ErrNoDispatcher) Error

func (e ErrNoDispatcher) Error() string

type ErrRecvTimesReachMax

type ErrRecvTimesReachMax struct {
	MessageID interface{}
}

//////////////////////////////////////////////////////////////////////////////

func (ErrRecvTimesReachMax) Error

func (e ErrRecvTimesReachMax) Error() string

type ErrTooLarge

type ErrTooLarge struct {
	MessageID interface{}
}

//////////////////////////////////////////////////////////////////////////////

func (ErrTooLarge) Error

func (e ErrTooLarge) Error() string

type ErrTooOften

type ErrTooOften struct {
	MessageID interface{}
}

//////////////////////////////////////////////////////////////////////////////

func (ErrTooOften) Error

func (e ErrTooOften) Error() string

type ErrUnsupported

type ErrUnsupported struct {
	MessageID interface{}
}

//////////////////////////////////////////////////////////////////////////////

func (ErrUnsupported) Error

func (e ErrUnsupported) Error() string

type IAllocator

type IAllocator interface {
	slab.Pool
}

func NewSlabAllocator

func NewSlabAllocator() IAllocator

//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

type IDecryptor

type IDecryptor interface {
	Decrypt(data []byte) (err error)
}

type IEncryptor

type IEncryptor interface {
	Encrypt(data []byte) (err error)
}

type NonAllocator

type NonAllocator struct {
}

//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

func (NonAllocator) Alloc

func (NonAllocator) Alloc(size int) []byte

func (NonAllocator) Free

func (NonAllocator) Free(buffer []byte)

type NonDecryptor

type NonDecryptor struct {
}

func (NonDecryptor) Decrypt

func (NonDecryptor) Decrypt([]byte) error

type NonEncryptor

type NonEncryptor struct {
}

func (NonEncryptor) Encrypt

func (NonEncryptor) Encrypt([]byte) error

Directories

Path Synopsis
protobuf
v1
v2
v3

Jump to

Keyboard shortcuts

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