Versions in this module Expand all Collapse all v1 v1.2.0 May 21, 2019 Changes in this version + const DefaultUsage + const OriginComment + const OriginMessage + const OriginThread + var SkipRule = errors.New("skip rule") + type Handler struct + Token string + Usage string + func (h *Handler) AddRule(rule Rule) + func (h *Handler) ServeHTTP(w http.ResponseWriter, r *http.Request) + type Message struct + AsyncReplyURL string + Origin string + TTL int64 + Text string + Token string + UserID uint64 + UserName string + Workspace uint64 + func (m Message) Context(parent context.Context) (context.Context, context.CancelFunc) + func (m Message) ReplyDeadline() time.Time + func (msg Message) Reply(ctx context.Context, client *http.Client, text string, ...) error + type Rule func(context.Context, http.ResponseWriter, Message) error + type Uploader struct + Client *http.Client + Token string + func (upl *Uploader) Upload(ctx context.Context, r io.Reader, name string) (uploadInfo json.RawMessage, err error)