Documentation
¶
Index ¶
- Constants
- func DashboardURL(siteToken string) string
- func ExampleMessage(cfg config.Configuration, data util.ExampleData, eventSlug string) (cc.Message, error)
- func NewHandler() handlers.Handler
- func Normalize(cfg config.Configuration, hReq handlers.HandlerRequest) (cc.Message, error)
- func NormalizeSiteTraffic(cfg config.Configuration, bytes []byte) (cc.Message, error)
- func NormalizeSmartGroup(cfg config.Configuration, bytes []byte) (cc.Message, error)
- func PeopleEveryoneURL(siteToken string) string
- type GosquaredOutBaseMessage
- type GosquaredOutGroup
- type GosquaredOutMessageConcurrent
- type GosquaredOutMessageSiteTraffic
- type GosquaredOutMessageSmartGroup
- type GosquaredOutPerson
- type GosquaredOutSiteDetails
- type GosquaredOutTriggeredAlert
Constants ¶
View Source
const ( DisplayName = "GoSquared" HandlerKey = "gosquared" DocumentationURL = "https://www.gosquared.com/customer/en/portal/articles/1996494-webhooks" MessageBodyType = models.JSON )
Variables ¶
This section is empty.
Functions ¶
func DashboardURL ¶
func ExampleMessage ¶
func ExampleMessage(cfg config.Configuration, data util.ExampleData, eventSlug string) (cc.Message, error)
func NewHandler ¶
func Normalize ¶
func Normalize(cfg config.Configuration, hReq handlers.HandlerRequest) (cc.Message, error)
func NormalizeSiteTraffic ¶
func NormalizeSmartGroup ¶
func PeopleEveryoneURL ¶
Types ¶
type GosquaredOutBaseMessage ¶
type GosquaredOutBaseMessage struct {
TriggeredAlert GosquaredOutTriggeredAlert `json:"triggeredAlert,omitempty"`
Concurrents int64 `json:"concurrents,omitempty"`
Person GosquaredOutPerson `json:"person,omitempty"`
}
func GosquaredOutBaseMessageFromBytes ¶
func GosquaredOutBaseMessageFromBytes(bytes []byte) (GosquaredOutBaseMessage, error)
type GosquaredOutGroup ¶
type GosquaredOutMessageConcurrent ¶
type GosquaredOutMessageConcurrent struct {
TriggeredAlert GosquaredOutTriggeredAlert `json:"triggeredAlert,omitempty"`
Concurrents int64 `json:"concurrents,omitempty"`
SiteDetails GosquaredOutSiteDetails `json:"siteDetails,omitempty"`
}
type GosquaredOutMessageSiteTraffic ¶
type GosquaredOutMessageSiteTraffic struct {
TriggeredAlert GosquaredOutTriggeredAlert `json:"triggeredAlert,omitempty"`
SiteDetails GosquaredOutSiteDetails `json:"siteDetails,omitempty"`
Concurrents int64 `json:"concurrents,omitempty"`
}
func GosquaredOutMessageSiteTrafficFromBytes ¶
func GosquaredOutMessageSiteTrafficFromBytes(bytes []byte) (GosquaredOutMessageSiteTraffic, error)
type GosquaredOutMessageSmartGroup ¶
type GosquaredOutMessageSmartGroup struct {
Version string `json:"version,omitempty"`
SiteToken string `json:"site_token,omitempty"`
Group GosquaredOutGroup `json:"group,omitempty"`
Boundary string `json:"boundary,omitempty"`
Person GosquaredOutPerson `json:"person,omitempty"`
}
func GosquaredOutMessageSmartGroupFromBytes ¶
func GosquaredOutMessageSmartGroupFromBytes(bytes []byte) (GosquaredOutMessageSmartGroup, error)
func (*GosquaredOutMessageSmartGroup) GroupURL ¶
func (msg *GosquaredOutMessageSmartGroup) GroupURL() string
type GosquaredOutPerson ¶
type GosquaredOutPerson struct {
CreatedAt string `json:"created_at,omitempty"`
Phone string `json:"phone,omitempty"`
Avatar string `json:"avatar,omitempty"`
Description string `json:"description,omitempty"`
Username string `json:"username,omitempty"`
Email string `json:"email,omitempty"`
Name string `json:"name,omitempty"`
Id string `json:"id,omitempty"`
}
type GosquaredOutSiteDetails ¶
type GosquaredOutSiteDetails struct {
UserId int64 `json:"user_id,omitempty"`
Acct string `json:"acct,omitempty"`
Email string `json:"email,omitempty"`
FirstName string `json:"first_name,omitempty"`
LastName string `json:"last_name,omitempty"`
SiteName string `json:"site_name,omitempty"`
Domain string `json:"domain,omitempty"`
URL string `json:"url,omitempty"`
Timezone string `json:"timezone,omitempty"`
}
func (*GosquaredOutSiteDetails) DashboardURL ¶
func (site *GosquaredOutSiteDetails) DashboardURL() string
Click to show internal directories.
Click to hide internal directories.