model

package
v0.0.12 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MessageTypeText     = "text"
	MessageTypeAt       = "at"
	MessageTypeAudio    = "audio"
	MessageTypeImage    = "image"
	MessageTypeFile     = "file"
	MessageTypeLocation = "location"
	MessageTypeVideo    = "video"
	MessageTypeLink     = "link"
	MessageTypeContact  = "contact"
	MessageTypeGroup    = "group"
	MessageTypeRich     = "rich"
	MessageTypeAction   = "action"
	MessageTypeScript   = "script"
)
View Source
const (
	MessageScriptOfFlowscript = "flowscript"
	MessageScriptOfUndefined  = "undefined"
)
View Source
const (
	PlatformSlack    = "slack"
	PlatformTelegram = "telegram"
	PlatformDiscord  = "discord"
)

Variables

This section is empty.

Functions

func IsMessageOfAction

func IsMessageOfAction(text string) bool

func IsMessageOfScript

func IsMessageOfScript(text string) bool

func MessageScriptKind

func MessageScriptKind(text string) string

Types

type App added in v0.0.9

type App struct {
	ID    int       `db:"id"`
	Name  string    `db:"name"`
	Type  string    `db:"type"`
	Token string    `db:"token"`
	Extra string    `db:"extra"`
	Time  time.Time `db:"time"`
}

type Credential added in v0.0.9

type Credential struct {
	ID      int       `db:"id"`
	Name    string    `db:"name"`
	Type    string    `db:"type"`
	Content string    `db:"content"`
	Time    time.Time `db:"time"`
}

type Message

type Message struct {
	ID   int       `db:"id"`
	UUID string    `db:"uuid"`
	Type string    `db:"type"`
	Text string    `db:"text"`
	Time time.Time `db:"time"`
}

type Page

type Page struct {
	ID      int       `db:"id"`
	UUID    string    `db:"uuid"`
	Title   string    `db:"title"`
	Content string    `db:"content"`
	Time    time.Time `db:"time"`
}

Jump to

Keyboard shortcuts

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