Documentation
¶
Index ¶
- func Close()
- func GetExistingSchedules()
- func GetKeyValue(key string) ([]byte, error)
- func JetstreamConnect(parentContext context.Context, parentLogger *slog.Logger, ...) error
- func KvConnect() error
- func Publish(subject string, message []byte)
- func PublishRequest(subject string, message []byte, timeout time.Duration, retries int)
- func PublishString(subject, message string)
- func ScheduleStoreConnect() error
- func SetKeyValue(key string, value []byte) error
- func SetKeyValueString(key, value string) error
- func StopSchedules()
- type HatsSchedule
- type HatsTimer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetExistingSchedules ¶
func GetExistingSchedules()
func GetKeyValue ¶
func JetstreamConnect ¶
func PublishRequest ¶
func PublishString ¶
func PublishString(subject, message string)
func ScheduleStoreConnect ¶
func ScheduleStoreConnect() error
func SetKeyValue ¶
func SetKeyValueString ¶
func StopSchedules ¶
func StopSchedules()
Types ¶
type HatsSchedule ¶
func GetSchedule ¶
func GetSchedule(name string) (*HatsSchedule, error)
func NewSchedule ¶
func NewSchedule(name, cron string) *HatsSchedule
func (*HatsSchedule) Activate ¶
func (t *HatsSchedule) Activate() error
func (*HatsSchedule) Cancel ¶
func (t *HatsSchedule) Cancel()
func (*HatsSchedule) GetNext ¶
func (t *HatsSchedule) GetNext() string
type HatsTimer ¶
func (*HatsTimer) ActivateIfNotAlready ¶
Click to show internal directories.
Click to hide internal directories.