Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Opentracing ¶
type Opentracing struct {
// contains filtered or unexported fields
}
Opentracing represents a new opentracing plugin for fiber.
func NewOpentracingWithConfigPath ¶
func NewOpentracingWithConfigPath(path string) (*Opentracing, error)
NewOpentracingWithConfigPath returns a new opentracing plugin with options from config path.
func NewOpentracingWithOptions ¶
func NewOpentracingWithOptions(options *Options) *Opentracing
NewOpentracingWithOptions returns a new opentracing plugin with options.
func (*Opentracing) Register ¶
func (d *Opentracing) Register(ctx context.Context, options *fiber.Options) (fiber.ConfigPlugin, fiber.AppPlugin)
Register registers this opentracing plugin for fiber.
type Options ¶
type Options struct {
Enabled bool
}
Options opentracing plugin for fiber 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.