Documentation
¶
Index ¶
Constants ¶
View Source
const ( DisplayName = "Raygun" HandlerKey = "raygun" MessageDirection = "out" )
Variables ¶
This section is empty.
Functions ¶
func ExampleMessage ¶
func ExampleMessage(cfg config.Configuration, data util.ExampleData) (cc.Message, error)
Types ¶
type Handler ¶
type Handler struct {
Config config.Configuration
Adapter adapters.Adapter
}
FastHttp request handler for Travis CI outbound webhook
func NewHandler ¶
func NewHandler(cfg config.Configuration, adapter adapters.Adapter) Handler
FastHttp request handler constructor for Travis CI 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 RaygunApplication ¶
type RaygunError ¶
type RaygunError struct {
URL string `json:"url,omitempty"`
Message string `json:"message,omitempty"`
FirstOccurredOn string `json:"firstOccurredOn,omitempty"`
LastOccurredOn string `json:"lastOccurredOn,omitempty"`
UsersAffected int `json:"usersAffected,omitempty"`
TotalOccurrences int `json:"totalOccurrences,omitempty"`
}
type RaygunOutMessage ¶
type RaygunOutMessage struct {
Event string `json:"event,omitempty"`
EventType string `json:"eventType,omitempty"`
Error RaygunError `json:"error,omitempty"`
Application RaygunApplication `json:"application,omitempty"`
}
func RaygunOutMessageFromBytes ¶
func RaygunOutMessageFromBytes(bytes []byte) (RaygunOutMessage, error)
Click to show internal directories.
Click to hide internal directories.