cron

package
v0.0.0-...-6374fa3 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ScopeName is the instrumentation scope name.
	ScopeName = "github.com/rushteam/beauty/pkg/service/cron/trace.go"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Cron

type Cron struct {
	*cron.Cron
	// contains filtered or unexported fields
}

func New

func New(opts ...CronOptions) *Cron

func (*Cron) Start

func (s *Cron) Start(ctx context.Context) error

func (*Cron) String

func (s *Cron) String() string

type CronHandlerOptions

type CronHandlerOptions func(cfg *cronHandlerCfg)

func HandlerName

func HandlerName(name string) CronHandlerOptions

type CronOptions

type CronOptions func(c *Cron)

func WitchTraceProvider

func WitchTraceProvider(t trace.TracerProvider) CronOptions

func WithCronHandler

func WithCronHandler(spec string, handler func(ctx context.Context) error, opts ...CronHandlerOptions) CronOptions

func WithMeterProvider

func WithMeterProvider(m metric.MeterProvider) CronOptions

Jump to

Keyboard shortcuts

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