Documentation
¶
Index ¶
Constants ¶
View Source
const ( GlipWebhookBaseURLProduction string = "https://hooks.glip.com/webhook/v2/" // #nosec G101 GlipWebhookBaseURLSandbox string = "https://hooks-glip.devtest.ringcentral.com/webhook/v2/" // #nosec G101 HTTPMethodPost string = "POST" FieldStyleLong string = "Long" FieldStyleShort string = "Short" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Attachment ¶
type Attachment struct { Author *Author `json:"author,omitempty"` Color string `json:"color,omitempty"` Fallback string `json:"fallback,omitempty"` Fields []Field `json:"fields,omitempty"` Footnote *Footnote `json:"footnote,omitempty"` ImageURI string `json:"imageUri,omitempty"` Intro string `json:"intro,omitempty"` Text string `json:"text,omitempty"` ThumbnailURI string `json:"thumbnailUri,omitempty"` Title string `json:"title,omitempty"` Type string `json:"type,omitempty"` }
type GlipWebhookError ¶
type GlipWebhookError struct { Code string `json:"code,omitempty"` Message string `json:"message,omitempty"` HTTPStatusCode int `json:"http_status_code,omitempty"` ResponseData string `json:"response_data,omitempty"` Response GlipWebhookErrorResponse `json:"response,omitempty"` }
func (*GlipWebhookError) Inflate ¶
func (gwerr *GlipWebhookError) Inflate()
type GlipWebhookMessage ¶
type GlipWebhookMessage struct { Activity string `json:"activity,omitempty"` IconEmoji string `json:"iconEmoji,omitempty"` IconURI string `json:"iconUri,omitempty"` Text string `json:"text,omitempty"` Title string `json:"title,omitempty"` Attachments []Attachment `json:"attachments,omitempty"` }
func NewGlipWebhookMessage ¶
func NewGlipWebhookMessage() GlipWebhookMessage
type GlipWebhookResponse ¶
type GlipWebhookResponse struct { Status string `json:"status,omitempty"` Message string `json:"message,omitempty"` Error GlipWebhookError `json:"error,omitempty"` }
Click to show internal directories.
Click to hide internal directories.