Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Content ¶
type Content struct { Channel string `json:"channel,omitempty"` IconEmoji string `json:"icon_emoji,omitempty"` IconURL string `json:"icon_url,omitempty"` Username string `json:"username"` Blocks json.RawMessage `json:"blocks,omitempty"` Text string `json:"text,omitempty"` EscapeText bool `json:"escape_text,omitempty"` CodeBlockText bool `json:"code_block_text,omitempty"` Attachments []slack.Attachment `json:"attachments,omitempty"` AsFile bool `json:"as_file,omitempty"` AsMessage bool `json:"as_message,omitempty"` Filename string `json:"filename,omitempty"` }
type HTTPNotification ¶
type HTTPNotification struct { Type string `json:"Type"` MessageId string `json:"MessageId"` Token string `json:"Token,omitempty"` // Only for subscribe and unsubscribe TopicArn string `json:"TopicArn"` Subject string `json:"Subject,omitempty"` // Only for Notification Message string `json:"Message"` SubscribeURL string `json:"SubscribeURL,omitempty"` // Only for subscribe and unsubscribe Timestamp time.Time `json:"Timestamp"` SignatureVersion string `json:"SignatureVersion"` Signature string `json:"Signature"` SigningCertURL string `json:"SigningCertURL"` UnsubscribeURL string `json:"UnsubscribeURL,omitempty"` // Only for notifications MessageAttributes map[string]MessageAttribute `json:"MessageAttributes,omitempty"` }
type MessageAttribute ¶ added in v0.5.0
type NowPaste ¶
type NowPaste struct {
// contains filtered or unexported fields
}
func (*NowPaste) CheckBasicAuth ¶ added in v0.3.0
func (*NowPaste) ServeHTTP ¶
func (nwp *NowPaste) ServeHTTP(w http.ResponseWriter, req *http.Request)
func (*NowPaste) SetBasicAuth ¶ added in v0.3.0
Click to show internal directories.
Click to hide internal directories.