Documentation ¶
Index ¶
- Variables
- func InitNewRelic() error
- func Wrap(pattern string, handlerFunc http.HandlerFunc) (string, func(http.ResponseWriter, *http.Request))
- type StubNewRelicTransaction
- func (snrt *StubNewRelicTransaction) AddAttribute(key string, value interface{}) error
- func (snrt *StubNewRelicTransaction) End() error
- func (snrt *StubNewRelicTransaction) Header() http.Header
- func (snrt *StubNewRelicTransaction) Ignore() error
- func (snrt *StubNewRelicTransaction) NoticeError(err error) error
- func (snrt *StubNewRelicTransaction) SetName(name string) error
- func (snrt *StubNewRelicTransaction) StartSegmentNow() newrelic.SegmentStartTime
- func (snrt *StubNewRelicTransaction) Write([]byte) (int, error)
- func (snrt *StubNewRelicTransaction) WriteHeader(int)
- type StubNewrelicApp
- func (sna *StubNewrelicApp) RecordCustomEvent(eventType string, params map[string]interface{}) error
- func (sna *StubNewrelicApp) Shutdown(timeout time.Duration)
- func (sna *StubNewrelicApp) StartTransaction(name string, w http.ResponseWriter, r *http.Request) newrelic.Transaction
- func (sna *StubNewrelicApp) WaitForConnection(timeout time.Duration) error
Constants ¶
This section is empty.
Variables ¶
View Source
var NewRelicApp newrelic.Application
Functions ¶
func InitNewRelic ¶
func InitNewRelic() error
func Wrap ¶
func Wrap(pattern string, handlerFunc http.HandlerFunc) (string, func(http.ResponseWriter, *http.Request))
Types ¶
type StubNewRelicTransaction ¶
type StubNewRelicTransaction struct{}
func (*StubNewRelicTransaction) AddAttribute ¶
func (snrt *StubNewRelicTransaction) AddAttribute(key string, value interface{}) error
func (*StubNewRelicTransaction) End ¶
func (snrt *StubNewRelicTransaction) End() error
func (*StubNewRelicTransaction) Header ¶
func (snrt *StubNewRelicTransaction) Header() http.Header
func (*StubNewRelicTransaction) Ignore ¶
func (snrt *StubNewRelicTransaction) Ignore() error
func (*StubNewRelicTransaction) NoticeError ¶
func (snrt *StubNewRelicTransaction) NoticeError(err error) error
func (*StubNewRelicTransaction) SetName ¶
func (snrt *StubNewRelicTransaction) SetName(name string) error
func (*StubNewRelicTransaction) StartSegmentNow ¶
func (snrt *StubNewRelicTransaction) StartSegmentNow() newrelic.SegmentStartTime
func (*StubNewRelicTransaction) Write ¶
func (snrt *StubNewRelicTransaction) Write([]byte) (int, error)
func (*StubNewRelicTransaction) WriteHeader ¶
func (snrt *StubNewRelicTransaction) WriteHeader(int)
type StubNewrelicApp ¶
type StubNewrelicApp struct{}
func (*StubNewrelicApp) RecordCustomEvent ¶
func (sna *StubNewrelicApp) RecordCustomEvent(eventType string, params map[string]interface{}) error
func (*StubNewrelicApp) Shutdown ¶
func (sna *StubNewrelicApp) Shutdown(timeout time.Duration)
func (*StubNewrelicApp) StartTransaction ¶
func (sna *StubNewrelicApp) StartTransaction(name string, w http.ResponseWriter, r *http.Request) newrelic.Transaction
func (*StubNewrelicApp) WaitForConnection ¶
func (sna *StubNewrelicApp) WaitForConnection(timeout time.Duration) error
Click to show internal directories.
Click to hide internal directories.