lib

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

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

Go to latest
Published: Jul 5, 2020 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDisableStats

func GetDisableStats(ctx *cli.Context) bool

func GetPort

func GetPort(ctx *cli.Context) int

func NewDisableProfiler

func NewDisableProfiler() cli.Flag

func NewDisableStats

func NewDisableStats() cli.Flag

func NewDisableTracingFlag

func NewDisableTracingFlag() cli.Flag

func NewExtraLatency

func NewExtraLatency() cli.Flag

func NewJaegerServiceAddr

func NewJaegerServiceAddr() cli.Flag

func NewLogger

func NewLogger() *logrus.Logger

func NewPort

func NewPort(defaultPort int) cli.Flag

func ParseForExtraLatency

func ParseForExtraLatency(ctx *cli.Context, log *logrus.Logger) time.Duration

func Run

func Run(port string, disableStats bool, log *logrus.Logger, registerSvcFn RegisterServiceFunc) string

func RunProfiling

func RunProfiling(service, version string, log *logrus.Logger)

func RunProfilingWithCLI

func RunProfilingWithCLI(ctx *cli.Context, svcName, svcVersion string, log *logrus.Logger)

func RunTracing

func RunTracing(svcAddr, svcName string, log *logrus.Logger)

func RunTracingWithCLI

func RunTracingWithCLI(ctx *cli.Context, svcName string, log *logrus.Logger)

Types

type RegisterServiceFunc

type RegisterServiceFunc func(srv *grpc.Server)

Jump to

Keyboard shortcuts

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