Documentation ¶
Index ¶
- Constants
- Variables
- func SetEnabled(enabled bool) func(map[string]interface{})
- func SetId(id string) func(map[string]interface{})
- func SetSchedule(schedule string) func(map[string]interface{})
- func SetTimezone(timezone string) func(map[string]interface{})
- type DkronTimerApi
- type DkronTimerBackend
- type DkronTimerBackendOption
- type NewTimerBackendFactory
- type TimerApi
- type TimerBackend
- type TimerOption
Constants ¶
View Source
const ( DKRON_EXECUTOR_CONFIG_EXPECTED_CODE = "204" DKRON_EXECUTOR_CONFIG_METHOD = "POST" )
Variables ¶
View Source
var ( ErrUnknownTimerBackendDriver = errors.New("unknown timer backend driver") ErrTimerIdIsEmpty = errors.New("timer id is empty") )
Functions ¶
func SetEnabled ¶
func SetSchedule ¶
func SetTimezone ¶
Types ¶
type DkronTimerApi ¶
type DkronTimerApi struct {
// contains filtered or unexported fields
}
func NewDkronTimerApi ¶
func (*DkronTimerApi) Enabled ¶
func (t *DkronTimerApi) Enabled() bool
func (*DkronTimerApi) Id ¶
func (t *DkronTimerApi) Id() string
func (*DkronTimerApi) Schedule ¶
func (t *DkronTimerApi) Schedule() string
func (*DkronTimerApi) Set ¶
func (t *DkronTimerApi) Set(ctx context.Context, opts ...TimerOption) error
func (*DkronTimerApi) Timezone ¶
func (t *DkronTimerApi) Timezone() string
type DkronTimerBackend ¶
type DkronTimerBackend struct {
// contains filtered or unexported fields
}
func (*DkronTimerBackend) Create ¶
func (b *DkronTimerBackend) Create(ctx context.Context, opts ...TimerOption) (TimerApi, error)
type DkronTimerBackendOption ¶
func NewDkronTimerBackendOption ¶
func NewDkronTimerBackendOption() *DkronTimerBackendOption
type NewTimerBackendFactory ¶
type NewTimerBackendFactory func(...interface{}) (TimerBackend, error)
type TimerBackend ¶
type TimerBackend interface { Create(context.Context, ...TimerOption) (TimerApi, error) Get(context.Context, string) (TimerApi, error) }
func NewDkronTimerBackend ¶
func NewDkronTimerBackend(args ...interface{}) (TimerBackend, error)
func NewTimerBackend ¶
func NewTimerBackend(name string, args ...interface{}) (TimerBackend, error)
type TimerOption ¶
type TimerOption func(map[string]interface{})
Click to show internal directories.
Click to hide internal directories.