message

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Type byte = iota
	To
	From
	MId
	Msg
)

Variables

This section is empty.

Functions

func Millisecond

func Millisecond() uint32

func MsgId

func MsgId() uint32

Types

type GroupTextMessage

type GroupTextMessage struct {
	From    string
	GroupId string
	Msg     string
	MsgId   uint32
}

func NewGroupTextMessage

func NewGroupTextMessage(From string, GroupId string, Msg string) *GroupTextMessage

type IMessage

type IMessage interface {
	GetString(byte) string
	GetUint32(byte) uint32
}

type TextMessage

type TextMessage struct {
	From  string
	To    string
	Msg   string
	MsgId uint32
}

func NewTextMessage

func NewTextMessage(From string, To string, Msg string) *TextMessage

func (*TextMessage) GetString

func (m *TextMessage) GetString(v byte) string

func (*TextMessage) GetUint32

func (m *TextMessage) GetUint32(v byte) uint32

Jump to

Keyboard shortcuts

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