Documentation ¶
Index ¶
- Constants
- func GetNowTimestamp() uint64
- func NewMsgBase(options ...MsgBaseOptions) *commonpb.MsgBase
- func UpdateMsgBase(msgBase *commonpb.MsgBase, options ...MsgBaseOptions) *commonpb.MsgBase
- type MsgBaseOptions
- func FillMsgBaseFromClient(sourceID int64, options ...MsgBaseOptions) MsgBaseOptions
- func WithMsgID(msgID int64) MsgBaseOptions
- func WithMsgType(msgType commonpb.MsgType) MsgBaseOptions
- func WithSourceID(sourceID int64) MsgBaseOptions
- func WithTargetID(targetID int64) MsgBaseOptions
- func WithTimeStamp(ts uint64) MsgBaseOptions
Constants ¶
View Source
const MsgIDNeedFill int64 = 0
Variables ¶
This section is empty.
Functions ¶
func GetNowTimestamp ¶
func GetNowTimestamp() uint64
func NewMsgBase ¶
func NewMsgBase(options ...MsgBaseOptions) *commonpb.MsgBase
func UpdateMsgBase ¶
func UpdateMsgBase(msgBase *commonpb.MsgBase, options ...MsgBaseOptions) *commonpb.MsgBase
Types ¶
type MsgBaseOptions ¶
func FillMsgBaseFromClient ¶
func FillMsgBaseFromClient(sourceID int64, options ...MsgBaseOptions) MsgBaseOptions
func WithMsgID ¶
func WithMsgID(msgID int64) MsgBaseOptions
func WithMsgType ¶
func WithMsgType(msgType commonpb.MsgType) MsgBaseOptions
func WithSourceID ¶
func WithSourceID(sourceID int64) MsgBaseOptions
func WithTargetID ¶
func WithTargetID(targetID int64) MsgBaseOptions
func WithTimeStamp ¶
func WithTimeStamp(ts uint64) MsgBaseOptions
Click to show internal directories.
Click to hide internal directories.