proto

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 27, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Common

func Common(channelType xproto.Channel, from, target string, msgType xproto.MsgType, msgData []byte) ([]byte, error)

func ConvertBizProto

func ConvertBizProto(body []byte) (*xproto.Proto, error)

func ConvertCommon

func ConvertCommon(bizBody []byte) (*xproto.Common, error)

func ConvertCommonAck

func ConvertCommonAck(body []byte) (*xproto.CommonAck, error)

func CreateProtoAck

func CreateProtoAck(seq int32, Ack int32) (*comet.Proto, error)

func CreateProtoSendMsg

func CreateProtoSendMsg(seq int32, from, target string, channelType xproto.Channel, text string) (*comet.Proto, error)

func Proto

func Proto(eventType xproto.Proto_EventType, body []byte) (*xproto.Proto, error)

func Text

func Text(msg string) (xproto.MsgType, []byte, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL