Documentation ¶
Index ¶
- func GenerateEnrichedSlashResponse(title, text, color, respType string) []byte
- func GenerateIncomingWebhookRequest(channelName, title, text, color string) ([]byte, error)
- func GenerateStandardSlashResponse(text string, respType string) string
- func ParseCommand(inputCmd string) (rootCmd string, cmdText string, args map[string]string, err error)
- func SendViaIncomingHook(hook, channelName, title, text, color string) error
- func WriteEnrichedResponse(w http.ResponseWriter, title, resp, color, style string)
- func WriteErrorResponse(w http.ResponseWriter, err *AppError)
- func WriteResponse(w http.ResponseWriter, resp string, style string)
- type AppError
- type HookResponse
- type Server
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseCommand ¶ added in v0.0.2
func ParseCommand(inputCmd string) (rootCmd string, cmdText string, args map[string]string, err error)
ParseCommand parses a command from a string and returns the commands + the args
func SendViaIncomingHook ¶
func WriteEnrichedResponse ¶
func WriteEnrichedResponse(w http.ResponseWriter, title, resp, color, style string)
func WriteErrorResponse ¶
func WriteErrorResponse(w http.ResponseWriter, err *AppError)
func WriteResponse ¶
func WriteResponse(w http.ResponseWriter, resp string, style string)
Types ¶
type HookResponse ¶
type Server ¶ added in v0.0.2
type Server struct { Config *config.Config DialogStore store.DialogStore // contains filtered or unexported fields }
func (*Server) SendDialogRequest ¶ added in v0.0.2
Source Files ¶
Click to show internal directories.
Click to hide internal directories.