aha

package
v0.8.18 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 2, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

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 NewHandler() handlers.Handler

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 AhaOutChange struct {
	FieldName string `json:"field_name,omitempty"`
	Value     string `json:"value,omitempty"`
}

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

type AhaOutUser

type AhaOutUser struct {
	ID        string    `json:"id,omitempty"`
	Name      string    `json:"name,omitempty"`
	Email     string    `json:"email,omitempty"`
	CreatedAt time.Time `json:"created_at,omitempty"`
	UpdatedAt time.Time `json:"updated_at,omitempty"`
}

Directories

Path Synopsis
examples

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL