Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Updater ¶
type Updater struct { Schema map[string]interface{} Interval int Source string ID uuid.UUID Method string RequestBody map[string]interface{} Timeout int Scheduler *gocron.Scheduler }
func NewUpdater ¶
func NewUpdater(schema map[string]interface{}, interval int, source string, method string, requestBody map[string]interface{}, timeout int) *Updater
NewUpdater Creates a new Updater
func (*Updater) HandleEvent ¶
func (u *Updater) HandleEvent()
func (*Updater) Run ¶
func (u *Updater) Run()
Run Create the scheduler and start running the background taks
func (*Updater) SendUpdate ¶
func (u *Updater) SendUpdate()
Click to show internal directories.
Click to hide internal directories.