events

package
v0.0.0-...-34f79f7 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2022 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Overview

This file is part of manifold. Manifold is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. Manifold is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with manifold. If not, see <https://www.gnu.org/licenses/>.

Index

Constants

View Source
const ALLTAG string = "<<ALL>>"

Variables

This section is empty.

Functions

This section is empty.

Types

type DeleteMsgEvent

type DeleteMsgEvent struct {
	MsgId Id.Id
}

type Event

type Event struct {
	Tags           []string
	Msgevent       *MsgEvent
	Deletemsgevent *DeleteMsgEvent
	Userevent      *UserEvent
}

func (*Event) ToString

func (e *Event) ToString() (string, error)

type EventChan

type EventChan chan Event

type Image

type Image struct {
	Url string
}

type MsgEvent

type MsgEvent struct {
	MsgId      Id.Id
	AuthorId   Id.Id
	AuthorName string
	CreateTime int64
	RedactTime int64
	Text       string
	Images     []Image
	Messages   []MsgEvent
}

type UserEvent

type UserEvent struct {
	ExecutorId   Id.Id
	ExecutorName string
	TargetId     Id.Id
	TargetName   string
}

Jump to

Keyboard shortcuts

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