Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewMiddleware ¶
func NewMiddleware() ants.Middleware
NewMiddleware returns a new newrelic middleware with default options.
func NewMiddlewareWithConfigPath ¶
NewMiddlewareWithConfigPath returns a new newrelic middleware with options from config path.
func NewMiddlewareWithOptions ¶
func NewMiddlewareWithOptions(options *Options) ants.Middleware
NewMiddlewareWithOptions returns a new newrelic middleware with options.
Types ¶
type Options ¶
type Options struct {
Enabled bool
}
Options newrelic middleware for ants options.
func NewOptions ¶
NewOptions returns options from config file or environment vars.
func NewOptionsWithPath ¶
NewOptionsWithPath unmarshals options based a given key path.
Click to show internal directories.
Click to hide internal directories.