Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NatsClient ¶
type NatsClient interface { ConsumeSequences(context.Context, string, nats.SequenceHandler) error GetMsg(ctx context.Context, subjTokens ...string) (*jetstream.RawStreamMsg, error) GetSysObject(key string) ([]byte, error) Publish(context.Context, []byte, ...string) (*jetstream.PubAck, bool, error) PublishResult(context.Context, time.Time, interface{}, error, ...string) (error, bool) PutSysObject(string, []byte) (*natsgo.ObjectInfo, error) }
type Runner ¶
type Runner struct {
// contains filtered or unexported fields
}
func (*Runner) SequenceCallback ¶
type Schedule ¶ added in v0.7.0
type Schedule struct { Config dsl.ScheduleAST CronSchedule cron.Schedule // contains filtered or unexported fields }
func NewSchedule ¶ added in v0.7.0
func NewSchedule(config dsl.ScheduleAST, natsClient NatsClient, logger zerolog.Logger) (*Schedule, error)
Click to show internal directories.
Click to hide internal directories.