Documentation ¶
Overview ¶
Package raven is priveds a client and library for sending messages and exceptions to Sentry: http://getsentry.com
Usage:
Create a new client using the NewClient() function. The value for the DSN parameter can be obtained from the project page in the Sentry web interface. After the client has been created use the CaptureMessage method to send messages to the server.
client, err := raven.NewClient(dsn) ... id, err := self.CaptureMessage("some text")
Index ¶
Constants ¶
View Source
const (
UDP_TEMPLATE = "%s\n\n%s"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
type Client struct { URL *url.URL PublicKey string SecretKey string Project string Logger string // contains filtered or unexported fields }
func NewClient ¶
NewClient creates a new client for a server identified by the given dsn A dsn is a string in the form:
{PROTOCOL}://{PUBLIC_KEY}:{SECRET_KEY}@{HOST}/{PATH}{PROJECT_ID}
eg:
http://abcd:efgh@sentry.example.com/sentry/project1
type HttpClient ¶
type HttpSentryTransport ¶
type HttpSentryTransport struct { PublicKey string URL *url.URL Project string Client HttpClient }
type MockHttpClient ¶
type MockHttpClient struct {
// contains filtered or unexported fields
}
Mock of HttpClient interface
func NewMockHttpClient ¶
func NewMockHttpClient(ctrl *gomock.Controller) *MockHttpClient
func (*MockHttpClient) EXPECT ¶
func (_m *MockHttpClient) EXPECT() *_MockHttpClientRecorder
type MockSentryTransport ¶
type MockSentryTransport struct {
// contains filtered or unexported fields
}
Mock of SentryTransport interface
func NewMockSentryTransport ¶
func NewMockSentryTransport(ctrl *gomock.Controller) *MockSentryTransport
func (*MockSentryTransport) EXPECT ¶
func (_m *MockSentryTransport) EXPECT() *_MockSentryTransportRecorder
type SentryTransport ¶
Click to show internal directories.
Click to hide internal directories.