scheduler

package
v0.0.1-alpha-2 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2021 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Scheduler

type Scheduler struct {
	// contains filtered or unexported fields
}

func NewScheduler

func NewScheduler(
	topicId string,
	operator string,
	executionWindow int64,
	contractService *bridge.BridgeContractService,
	hederaClient *hederaClient.HederaNodeClient,
) *Scheduler

NewScheduler - Creates new instance of Scheduler

func (*Scheduler) Cancel

func (s *Scheduler) Cancel(id string) error

Cancel - Removes and cancels an already scheduled Transaction

func (*Scheduler) Schedule

func (s *Scheduler) Schedule(id string, submission ethsubmission.Submission) error

Schedule - Schedules new Transaction for execution at the right leader elected slot

Jump to

Keyboard shortcuts

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