g

package
v0.0.0-...-d9ad550 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2019 License: MIT Imports: 23 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ZIPKIN_OPTION_TAG = 1 + iota
	ZIPKIN_OPTION_ANNOTATE
)

Variables

View Source
var (
	ServiceRegistrar *consulsd.Registrar
	ServiceInstancer *consulsd.Instancer
)
View Source
var (
	ErrRouter         = errors.New("router rpc is not available")
	ErrDecodeKey      = errors.New("decode key error")
	ErrNetworkAddr    = errors.New("network addrs error, must network@address")
	ErrConnectArgs    = errors.New("connect rpc args error")
	ErrDisconnectArgs = errors.New("disconnect rpc args error")
)
View Source
var (
	Conf *conf.Config

	Logger logger
)

Functions

func GetCometService

func GetCometService() (addrs map[string]string, err error)

func GetCometServiceMetas

func GetCometServiceMetas() (metas map[string]map[string]string, err error)

func GetCurrentDir

func GetCurrentDir() string

func InstanceDiscovery

func InstanceDiscovery() error

func NewZipkinReporter

func NewZipkinReporter() reporter.Reporter

func NewZipkinSpanFromCtx

func NewZipkinSpanFromCtx(ctx context.Context, f zipkinTracerFunc) (span zipkingo.Span, newCtx context.Context, err error)

func NewZipkinTracer

func NewZipkinTracer(opts ...zipkingo.TracerOption) (*zipkingo.Tracer, error)

func SetPid

func SetPid(curPath string) int

Types

type FieldsFunc

type FieldsFunc func() *LogFields

type LogFields

type LogFields struct {
	// contains filtered or unexported fields
}

func NewLogFields

func NewLogFields() *LogFields

func (LogFields) Append

func (this LogFields) Append(k string, v interface{}) *LogFields

func (LogFields) Get

func (this LogFields) Get() logrus.Fields

type ZipkinTag

type ZipkinTag struct {
	K string
	V string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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