Documentation ¶
Overview ¶
Package hookanalytics provides basic primitives for use by the hook modules.
Structures of the package allow modules to provide information about what activity has been performed against the hook payload.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Activity ¶
type Activity struct { Name string `json:"name"` Status ActivityStatus `json:"status"` Results []Result `json:"results,omitempty"` }
type ActivityStatus ¶
type ActivityStatus string
const ( ActivityStatusSuccess ActivityStatus = "success" ActivityStatusError ActivityStatus = "error" )
type Result ¶
type Result struct { Status ResultStatus `json:"status,omitempty"` Values map[string]interface{} `json:"values,omitempty"` AppliedTo AppliedTo `json:"appliedto,omitempty"` }
type ResultStatus ¶
type ResultStatus string
const ( ResultStatusAllow ResultStatus = "success-allow" ResultStatusBlock ResultStatus = "success-block" ResultStatusModify ResultStatus = "success-modify" ResultStatusError ResultStatus = "error" )
Click to show internal directories.
Click to hide internal directories.