model

package
v0.0.18 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 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

func RemoveActionFlag added in v0.0.16

func RemoveActionFlag(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"`
}

type Trigger added in v0.0.18

type Trigger struct {
	ID        int       `db:"id"`
	Type      string    `db:"type"`
	Kind      string    `db:"kind"`
	Flag      string    `db:"flag"`
	Secret    string    `db:"secret"`
	When      string    `db:"when"`
	MessageID int       `db:"message_id"`
	Time      time.Time `db:"time"`
}

Jump to

Keyboard shortcuts

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