Documentation ¶
Index ¶
- func DefaultDecryptor(data []byte) error
- func DefaultEncryptor(data []byte) error
- type DecryptFunc
- type EncryptFunc
- type ErrDispatcherAlreadyRegister
- type ErrNoDispatcher
- type ErrRecvTimesReachMax
- type ErrTooLarge
- type ErrTooOften
- type ErrUnsupported
- type IAllocator
- type IDecryptor
- type IEncryptor
- type NonAllocator
- type NonDecryptor
- type NonEncryptor
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultDecryptor ¶
func DefaultEncryptor ¶
Types ¶
type DecryptFunc ¶
func (DecryptFunc) Decrypt ¶
func (fn DecryptFunc) Decrypt(data []byte) error
type EncryptFunc ¶
func (EncryptFunc) Encrypt ¶
func (fn EncryptFunc) Encrypt(data []byte) error
type ErrDispatcherAlreadyRegister ¶
type ErrDispatcherAlreadyRegister struct {
MessageID interface{}
}
//////////////////////////////////////////////////////////////////////////////
func (ErrDispatcherAlreadyRegister) Error ¶
func (e ErrDispatcherAlreadyRegister) Error() string
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 ¶
func NewSlabAllocator ¶
func NewSlabAllocator() IAllocator
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
type IDecryptor ¶
type IEncryptor ¶
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