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 PapertrailOutEvent
- type PapertrailOutMessage
- type PapertrailOutSavedSearch
Constants ¶
View Source
const ( DisplayName = "Papertrail" HandlerKey = "papertrail" MessageDirection = "out" DocumentationURL = "http://help.papertrailapp.com/kb/how-it-works/web-hooks/" 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 PapertrailOutEvent ¶
type PapertrailOutMessage ¶
type PapertrailOutMessage struct { Events []PapertrailOutEvent `json:"events,omitempty"` SavedSearch PapertrailOutSavedSearch `json:"saved_search,omitempty"` MaxID int64 `json:"max_id,omitempty"` MinID int64 `json:"min_id,omitempty"` }
func PapertrailOutMessageFromBytes ¶
func PapertrailOutMessageFromBytes(bytes []byte) (PapertrailOutMessage, error)
Click to show internal directories.
Click to hide internal directories.