rkcursor

package
v2.2.3 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddField

func AddField(key, val string)

func Click

func Click() *pointer

func Error

func Error(err error)

func OverrideEntryNameAndType

func OverrideEntryNameAndType(entryName, entryType string)

func OverrideLogger

func OverrideLogger(l *zap.Logger)

func SummaryVec

func SummaryVec() *prometheus.SummaryVec

Types

type Cursor

type Cursor struct {
	Logger *zap.Logger
	Event  rkquery.Event
	Now    time.Time
	// contains filtered or unexported fields
}

func NewCursor

func NewCursor(opts ...Option) *Cursor

func (*Cursor) AddField

func (c *Cursor) AddField(key, val string)

func (*Cursor) Click

func (c *Cursor) Click() *pointer

func (*Cursor) Error

func (c *Cursor) Error(err error)

type Option

type Option func(c *Cursor)

func WithEntryNameAndType

func WithEntryNameAndType(entryName, entryType string) Option

func WithEvent

func WithEvent(e rkquery.Event) Option

func WithLogger

func WithLogger(l *zap.Logger) Option

Jump to

Keyboard shortcuts

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