Documentation ¶
Overview ¶
Package rollbarhandler provides Rollbar integration.
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
Handler is responsible for sending errors to Rollbar.
func New ¶
New creates a new handler.
Example ¶
token := "token" _ = New(token, "env", "version", "host", "serverRoot")
Output:
func NewFromClient ¶
func NewFromClient(client *rollbar.Client) *Handler
NewFromClient creates a new handler from a client instance.
Example ¶
token := "token" _ = NewFromClient(rollbar.New(token, "env", "version", "host", "serverRoot"))
Output:
Click to show internal directories.
Click to hide internal directories.