easyrecord

package
v0.5.0-beta3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2019 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EasyRecorders

func EasyRecorders(desc string, factory ...record.Factory) record.Factory

Types

type LoggerFactory

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

func NewLoggerRecorderFactory

func NewLoggerRecorderFactory(logger *zap.Logger, messageDesc string) *LoggerFactory

func (*LoggerFactory) ActionRecorder

func (factory *LoggerFactory) ActionRecorder(ctx context.Context, name string, fields ...record.Field) (record.Recorder, context.Context)

type LoggerRecorder

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

func (LoggerRecorder) Commit

func (recorder LoggerRecorder) Commit(err error, fields ...record.Field)

type PromFactory

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

func NewPromRecorderFactory

func NewPromRecorderFactory(name string, fields ...string) *PromFactory

func (*PromFactory) ActionRecorder

func (factory *PromFactory) ActionRecorder(ctx context.Context, name string, fields ...record.Field) (record.Recorder, context.Context)

type PromRecorder

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

func (PromRecorder) Commit

func (recorder PromRecorder) Commit(err error, fields ...record.Field)

type TracerFactory

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

func NewTracerFactory

func NewTracerFactory(tracer opentracing.Tracer) *TracerFactory

func (*TracerFactory) ActionRecorder

func (factory *TracerFactory) ActionRecorder(ctx context.Context, name string, fields ...record.Field) (record.Recorder, context.Context)

type TracerRecorder

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

func (TracerRecorder) Commit

func (recorder TracerRecorder) Commit(err error, fields ...record.Field)

Jump to

Keyboard shortcuts

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