ui

package
v0.0.0-...-6f8e6ac Latest Latest
Warning

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

Go to latest
Published: May 18, 2023 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CurMark  = "(bg-red)"
	PageSize = 45
)

Variables

This section is empty.

Functions

func AddBgColor

func AddBgColor(msg string) string

func DelBgColor

func DelBgColor(msg string) string

Types

type AppInfo

type AppInfo struct {
	Type  int
	AppID string
}

type Layout

type Layout struct {
	// contains filtered or unexported fields
}

func NewLayout

func NewLayout(myName, myID string, msgIn chan Message, msgOut chan MessageOut, closeChan, autoReply chan int, logger *log.Logger) *Layout

func (*Layout) Init

func (l *Layout) Init()

func (*Layout) NextUser

func (l *Layout) NextUser()

func (*Layout) PrevUser

func (l *Layout) PrevUser()

func (*Layout) SendText

func (l *Layout) SendText(text string)

type Message

type Message struct {
	FromUserName         string
	PlayLength           int
	RecommendInfo        []string
	Content              string
	StatusNotifyUserName string
	StatusNotifyCode     int
	Status               int
	VoiceLength          int
	ToUserName           string
	ForwardFlag          int
	AppMsgType           int
	AppInfo              AppInfo
	Url                  string
	ImgStatus            int
	MsgType              int
	ImgHeight            int
	MediaId              string
	FileName             string
	FileSize             string
	FromUserNickName     string
	ToUserNickName       string
}

func (Message) String

func (m Message) String() string

type MessageOut

type MessageOut struct {
	ToUserName string
	Content    string
	Type       int
}

Jump to

Keyboard shortcuts

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