Handler is responsible for sending errors to Rollbar.
type Handler struct {
// contains filtered or unexported fields
}
func New(token, environment, codeVersion, serverHost, serverRoot string) *Handler
New creates a new handler.
▹ Example
func NewFromClient(client *rollbar.Client) *Handler
NewFromClient creates a new handler from a client instance.
▹ Example
func (h *Handler) Close() error
Close closes the underlying notifier and waits for asynchronous reports to finish.
func (h *Handler) Handle(err error)
Handle sends the error to Rollbar.