Documentation
¶
Index ¶
- Constants
- type GlipWebhookClient
- func (client *GlipWebhookClient) BuildWebhookURL(urlOrGUID string) (string, error)
- func (client *GlipWebhookClient) PostJSON(url string, bodyBytes []byte) (*http.Response, error)
- func (client *GlipWebhookClient) PostMessage(message GlipWebhookMessage) (*http.Response, error)
- func (client *GlipWebhookClient) SendMessage(message GlipWebhookMessage) ([]byte, error)
- type GlipWebhookError
- type GlipWebhookErrorResponse
- type GlipWebhookMessage
- type GlipWebhookResponse
Constants ¶
View Source
const (
GlipWebhookBaseURL = "https://hooks.glip.com/webhook/" // #nosec G101
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GlipWebhookClient ¶
func NewGlipWebhookClient ¶
func NewGlipWebhookClient(urlOrGUID string) (GlipWebhookClient, error)
func (*GlipWebhookClient) BuildWebhookURL ¶
func (client *GlipWebhookClient) BuildWebhookURL(urlOrGUID string) (string, error)
func (*GlipWebhookClient) PostMessage ¶
func (client *GlipWebhookClient) PostMessage(message GlipWebhookMessage) (*http.Response, error)
func (*GlipWebhookClient) SendMessage ¶
func (client *GlipWebhookClient) SendMessage(message GlipWebhookMessage) ([]byte, error)
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 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.