protocol

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FileType  = "file"
	ImageType = "image"
	TextType  = "text"
	EventType = "event"

	GoingStatus   = "going"
	FailedStatus  = "failed"
	SucceedStatus = "succeed"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Message

type Message struct {
	Id          string       `json:"id,omitempty"`
	Status      string       `json:"status"`
	Type        string       `json:"type"`
	SendTime    int64        `json:"sendTime,omitempty"`
	Content     string       `json:"content"`
	FileSize    int64        `json:"fileSize,omitempty"`
	FileName    string       `json:"fileName,omitempty"`
	ToContactId string       `json:"toContactId,omitempty"`
	FromUser    *entity.User `json:"fromUser,omitempty"`
}

Jump to

Keyboard shortcuts

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