Documentation ¶
Index ¶
- type IntSet
- type Metadata
- type PackagingType
- func (z *PackagingType) DecodeMsg(dc *msgp.Reader) (err error)
- func (z PackagingType) EncodeMsg(en *msgp.Writer) (err error)
- func (z PackagingType) MarshalMsg(b []byte) (o []byte, err error)
- func (z PackagingType) Msgsize() (s int)
- func (z *PackagingType) UnmarshalMsg(bts []byte) (o []byte, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IntSet ¶
type IntSet struct {
// contains filtered or unexported fields
}
type Metadata ¶
type Metadata struct { // Payload storing type PackageType PackagingType `msg:"t,omitempty"` // Payload size in bytes Size int64 `msg:"s,omitempty"` // Number of attempts. 0 means fresh messaged. Should grow every re-queue operation (except abnormal shutdown). Attempts int64 `msg:"a,omitempty"` // inline data, valid ony in case package type = inline InlineData []byte `msg:"d,omitempty"` // user-defined properties Properties map[string][]byte `msg:"p,omitempty"` }
Metadata of message, stored directly in queue.
func (*Metadata) MarshalMsg ¶
MarshalMsg implements msgp.Marshaler
type PackagingType ¶
type PackagingType byte
PackagingType defines how to store payload
const ( InlineData PackagingType = 0 // content stored in next bytes LinkedData PackagingType = 1 // content stored in attached file )
func (*PackagingType) DecodeMsg ¶
func (z *PackagingType) DecodeMsg(dc *msgp.Reader) (err error)
DecodeMsg implements msgp.Decodable
func (PackagingType) EncodeMsg ¶
func (z PackagingType) EncodeMsg(en *msgp.Writer) (err error)
EncodeMsg implements msgp.Encodable
func (PackagingType) MarshalMsg ¶
func (z PackagingType) MarshalMsg(b []byte) (o []byte, err error)
MarshalMsg implements msgp.Marshaler
func (PackagingType) Msgsize ¶
func (z PackagingType) Msgsize() (s int)
Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message
func (*PackagingType) UnmarshalMsg ¶
func (z *PackagingType) UnmarshalMsg(bts []byte) (o []byte, err error)
UnmarshalMsg implements msgp.Unmarshaler
Click to show internal directories.
Click to hide internal directories.