Documentation
¶
Index ¶
Constants ¶
View Source
const ( DisplayName = "Papertrail" HandlerKey = "papertrail" MessageDirection = "out" DocumentationURL = "http://help.papertrailapp.com/kb/how-it-works/web-hooks/" )
Variables ¶
This section is empty.
Functions ¶
func ExampleMessage ¶
func ExampleMessage(cfg config.Configuration, data util.ExampleData, eventSlug string) (cc.Message, error)
Types ¶
type Handler ¶
type Handler struct {
Config config.Configuration
Adapter adapters.Adapter
}
FastHttp request handler for outbound webhook
func NewHandler ¶
func NewHandler(cfg config.Configuration, adapter adapters.Adapter) Handler
FastHttp request handler constructor for outbound webhook
func (*Handler) HandleFastHTTP ¶
func (h *Handler) HandleFastHTTP(ctx *fasthttp.RequestCtx)
HandleFastHTTP is the method to respond to a fasthttp request.
func (Handler) HandlerKey ¶
func (Handler) MessageDirection ¶
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.