Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Attachment ¶
type Attachment struct {
Fallback string `json:"fallback"`
Color Color `json:"color"`
Pretext string `json:"pretext"`
AuthorName string `json:"author_name"`
AuthorLink string `json:"author_link"`
AuthorIcon string `json:"author_icon"`
Title string `json:"title"`
TitleLink string `json:"title_link"`
Text string `json:"text"`
ImageUrl string `json:"image_url"`
ThumbUrl string `json:"thumb_url"`
}
type AttachmentField ¶
type AttachmentField struct {
// contains filtered or unexported fields
}
type Color ¶
type Color struct {
// contains filtered or unexported fields
}
func (Color) MarshalJSON ¶
type CommandRuntimeInfo ¶
Command processor info using at runtime
type CommandServer ¶
type CommandServer struct {
Common CommandsInfo
Command CommandInfo
Handlers map[string]*CommandRuntimeInfo
}
Command server object
func NewServer ¶
func NewServer(commands CommandsInfo, command CommandInfo) *CommandServer
Create new server
type CurrencyQuery ¶
type HandlerInitializer ¶
type Request ¶
type Request struct {
Token string `param:"token"`
TeamId string `param:"team_id"`
TeamDomain string `param:"team_domain"`
ChannelId string `param:"channel_id"`
ChannelName string `param:"channel_name"`
UserId string `param:"user_id"`
UserName string `param:"user_name"`
Command string `param:"command"`
Text string `param:"text"`
ResponseUrl string `param:"response_url"`
}
type Response ¶
type Response struct {
ResponseType ResponseTypeEnum `json:"response_type"`
Text string `json:"text"`
Attachments []Attachment `json:"attachments"`
}
func CurrencyCommand ¶
func EchoCommand ¶
func NamuCommand ¶
func ZzalCommand ¶
type ResponseTypeEnum ¶
type ResponseTypeEnum int
func (ResponseTypeEnum) MarshalJSON ¶
func (e ResponseTypeEnum) MarshalJSON() ([]byte, error)
func (ResponseTypeEnum) String ¶
func (e ResponseTypeEnum) String() string
Click to show internal directories.
Click to hide internal directories.