goraygun

package module
v0.0.0-...-faac2d3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 20, 2015 License: MIT Imports: 11 Imported by: 0

README

GoRaygun

A Raygun "Provider" for Golang

Documentation

Index

Constants

View Source
const (
	ClientName    = "Go-Raygun"
	ClientVersion = "0.0.1"
	ClientRepo    = "http://github.com/sditools/go-raygun"
)
View Source
const ENDPOINT = "https://api.raygun.io/entries"

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	Entry Entry
	// contains filtered or unexported fields
}

func Init

func Init(s Settings, e Entry) *Client

func (*Client) Recover

func (c *Client) Recover()

func (*Client) Report

func (c *Client) Report(err error, entry Entry)

type Entry

type Entry struct {
	OccurredOn string  `json:"occurredOn"`
	Details    details `json:"details"`
}

type Settings

type Settings struct {
	ApiKey      string
	Endpoint    string
	Environment string
}

type StackTraceElement

type StackTraceElement struct {
	LineNumber int    `json:"lineNumber"`
	ClassName  string `json:"className"`
	FileName   string `json:"fileName"`
	MethodName string `json:"methodName"`
}

func GetStackTrace

func GetStackTrace(offset int) ([]StackTraceElement, error)

func ParseStackTrace

func ParseStackTrace(rst []byte) (sts []StackTraceElement, err error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL