Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ReleaseMessage ¶
func ReleaseMessage(req *Message)
ReleaseMessage returns req acquired via AcquireMessage to Message pool.
It is forbidden accessing req and/or its' members after returning it to Message pool.
Types ¶
type Message ¶
func AcquireMessage ¶
AcquireMessage returns an empty Message instance from Message pool.
The returned Message instance may be passed to ReleaseMessage when it is no longer needed. This allows Message recycling, reduces GC pressure and usually improves performance.
func ConvertFrom ¶
ConvertFrom converts common message to pool message.
func (*Message) IsModified ¶
Click to show internal directories.
Click to hide internal directories.