logwait

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option func(o *Options)

func Ctx

func Ctx(ctx context.Context) Option

func For

func For(duration time.Duration) Option

func N

func N(n int) Option

func One

func One() Option

func Where

func Where(filters ...logq.FilterFunc) Option

type Options

type Options struct {
	Context        context.Context
	Duration       time.Duration
	ShouldContinue func(record logq.Record) bool
	Filter         logq.FilterFunc
}

func NewOptions

func NewOptions(ctx context.Context, duration time.Duration, opts ...Option) Options

Jump to

Keyboard shortcuts

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