Documentation ¶
Index ¶
- Variables
- type Core
- type JSONString
- type MsgParam
- func (m *MsgParam) ParseAudio(c *Core, ctx *gin.Context) (*model.Message, error)
- func (m *MsgParam) ParseForm(c *Core, ctx *gin.Context)
- func (m *MsgParam) ParseFormData(c *Core, ctx *gin.Context) (*model.Message, error)
- func (m *MsgParam) ParseImage(c *Core, ctx *gin.Context) (*model.Message, error)
- func (m *MsgParam) ParseJSON(c *Core, ctx *gin.Context)
- func (m *MsgParam) ParsePlainText(ctx *gin.Context)
- type TimeContent
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNoContent = errors.New("NoContent") ErrTooLargeContent = errors.New("TooLargeContent") ErrInvalidContent = errors.New("InvalidContent") )
error define
Functions ¶
This section is empty.
Types ¶
type Core ¶
type Core struct {
// contains filtered or unexported fields
}
Core instance
func (*Core) APIHandler ¶
APIHandler return handler for http
type JSONString ¶ added in v1.1.0
type JSONString string
JSONString define boolean string
func (*JSONString) UnmarshalJSON ¶ added in v1.1.0
func (s *JSONString) UnmarshalJSON(data []byte) error
UnmarshalJSON for boolean string
type MsgParam ¶ added in v1.1.1
type MsgParam struct { Token *model.Token Text string Link string Title string Sound string AutoCopy string CopyText string Filename string Priority int InterruptionLevel string Actions []string TimeContent TimeContent }
MsgParam parse message parameters
func (*MsgParam) ParseAudio ¶ added in v1.1.6
ParseAudio process audio
func (*MsgParam) ParseFormData ¶ added in v1.1.1
ParseFormData process multipart/form-data
func (*MsgParam) ParseImage ¶ added in v1.1.1
ParseImage process image
func (*MsgParam) ParsePlainText ¶ added in v1.1.1
ParsePlainText process text/plain
type TimeContent ¶ added in v1.2.2
type TimeContent struct { Code string Timestamp *time.Time Items []*model.MsgTimeItem }
TimeContent define timeline content
Click to show internal directories.
Click to hide internal directories.