Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Action ¶
type Action struct { ContentType string `sql:"type"` Content string `sql:"content"` DataPath *string `sql:"data_path"` Pattern *string `sql:"pattern"` FallbackAction *int `sql:"fallback_action"` Primary bool `sql:"main"` Priority int `sql:"priority"` ID int `sql:"id"` PostText *string `sql:"post_text"` }
func FetchAction ¶
func FetchActions ¶
func (Action) IsImageType ¶ added in v1.0.1
type Bot ¶
type ByPriority ¶
type ByPriority []Action
func (ByPriority) Len ¶
func (b ByPriority) Len() int
func (ByPriority) Less ¶
func (b ByPriority) Less(i, j int) bool
func (ByPriority) Swap ¶
func (b ByPriority) Swap(i, j int)
Click to show internal directories.
Click to hide internal directories.