cronmock

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CronCapability

type CronCapability struct {
	Trigger func(ctx context.Context, input *cron.Config) (*cron.Payload, error)

	LegacyTrigger func(ctx context.Context, input *cron.Config) (*cron.LegacyPayload, error)
}

func NewCronCapability

func NewCronCapability(t testing.TB) (*CronCapability, error)

func (*CronCapability) ID

func (cap *CronCapability) ID() string

func (*CronCapability) Invoke

func (*CronCapability) InvokeTrigger

func (cap *CronCapability) InvokeTrigger(ctx context.Context, request *sdkpb.TriggerSubscription) (*sdkpb.Trigger, error)

Jump to

Keyboard shortcuts

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