Documentation ¶
Index ¶
- Constants
- 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)
- type AhaOutAudit
- type AhaOutChange
- type AhaOutMessage
- type AhaOutUser
Constants ¶
View Source
const ( DisplayName = "Aha!" HandlerKey = "aha" MessageDirection = "out" DocumentationURL = "https://support.aha.io/hc/en-us/articles/202000997-Integrate-with-Webhooks" MessageBodyType = models.JSON )
Variables ¶
This section is empty.
Functions ¶
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)
Types ¶
type AhaOutAudit ¶
type AhaOutAudit struct { ID string `json:"id,omitempty"` AuditAction string `json:"audit_action,omitempty"` CreatedAt time.Time `json:"created_at,omitempty"` Interesting bool `json:"interesting,omitempty"` AuditableType string `json:"auditable_type,omitempty"` AuditableID string `json:"auditable_id,omitempty"` User *AhaOutUser `json:"user,omitempty"` Description string `json:"description,omitempty"` AuditableURL string `json:"auditable_url,omitempty"` Changes []AhaOutChange `json:"changes,omitempty"` }
func (*AhaOutAudit) Activity ¶
func (aoa *AhaOutAudit) Activity() string
func (*AhaOutAudit) Title ¶
func (aoa *AhaOutAudit) Title() string
type AhaOutChange ¶
type AhaOutMessage ¶
type AhaOutMessage struct { Event string `json:"event,omitempty"` Audit *AhaOutAudit `json:"audit,omitempty"` }
func AhaOutMessageFromBytes ¶
func AhaOutMessageFromBytes(bytes []byte) (AhaOutMessage, error)
func (*AhaOutMessage) Activity ¶
func (aom *AhaOutMessage) Activity() string
func (*AhaOutMessage) Title ¶
func (aom *AhaOutMessage) Title() string
Click to show internal directories.
Click to hide internal directories.