immsg

package
v1.4.8 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2026 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseMsg

type BaseMsg struct {
	FromId   string `json:"from_id"`
	FromName string `json:"from_name"`
	Avatar   string `json:"avatar"`
	Raw      []byte `json:"data"`
	Url      string `json:"url"`
	Type     int    `json:"type"`
	TimeFmt  string `json:"time_fmt"`
}

func (BaseMsg) String

func (m BaseMsg) String() string

type ConnectMsg

type ConnectMsg struct {
	BaseMsg
	UserId string   `json:"user_id"`
	Groups []string `json:"groups"`
}

type Msg

type Msg interface {
	String()
}

type PeerGroupMsg

type PeerGroupMsg struct {
	BaseMsg
	ToGroup string `json:"to_group"`
	AtList  string `json:"at_list"`
}

type PeerMsg

type PeerMsg struct {
	BaseMsg
	ToUser string `json:"to_user"`
}

Jump to

Keyboard shortcuts

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