Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrFullOfProvider = errors.New("full of provider")
View Source
var ErrNotExist = errors.New("provider not exist")
View Source
var ErrorCallFailed = errors.New("call failed")
View Source
var ProviderManager = newManager[func(data []byte, caller Caller) ([]byte, error)]()
Functions ¶
Types ¶
type ProviderArg ¶
type ProviderArg struct {
Id uint32 `msg:"id"`
CallerHost UUID `msg:"caller_host"`
CallerId uint32 `msg:"caller_id"`
Data []byte `msg:"data"`
}
func (*ProviderArg) DecodeMsg ¶
func (z *ProviderArg) DecodeMsg(dc *msgp.Reader) (err error)
DecodeMsg implements msgp.Decodable
func (*ProviderArg) EncodeMsg ¶
func (z *ProviderArg) EncodeMsg(en *msgp.Writer) (err error)
EncodeMsg implements msgp.Encodable
func (*ProviderArg) MarshalMsg ¶
func (z *ProviderArg) MarshalMsg(b []byte) (o []byte, err error)
MarshalMsg implements msgp.Marshaler
func (*ProviderArg) Msgsize ¶
func (z *ProviderArg) Msgsize() (s int)
Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message
func (*ProviderArg) UnmarshalMsg ¶
func (z *ProviderArg) UnmarshalMsg(bts []byte) (o []byte, err error)
UnmarshalMsg implements msgp.Unmarshaler
type UUID ¶
type UUID [16]byte
func (*UUID) MarshalMsg ¶
MarshalMsg implements msgp.Marshaler
Click to show internal directories.
Click to hide internal directories.