pkg

package
v1.3.5 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LightningPoller

type LightningPoller struct {
	SfUtils *pkg.SalesforceUtils
	// contains filtered or unexported fields
}

func NewLightningPoller

func NewLightningPoller(queries []QueryWithCallback, sfConfig pkg.Config) (*LightningPoller, error)

func (*LightningPoller) Run

func (p *LightningPoller) Run()

type Position

type Position struct {
	LastModifiedDate  *time.Time
	NextURL           string
	PreviousRecordIDs map[string]*time.Time
}

type QueryWithCallback

type QueryWithCallback struct {
	Query          func() string                       `json:"query" validate:"required"`
	PersistenceKey string                              `json:"persistenceKey"`
	Callback       func(result []byte, err error) bool `validate:"required"`
	DependsOn      []string
}

type RunConfig

type RunConfig struct {
	Queries                            []QueryWithCallback `validate:"required"`
	StartupPositionOverrides           map[string]time.Time
	Ticker                             *time.Ticker
	PersistenceEnabled                 bool          `json:"persistence_enabled"`
	PersistencePath                    string        `json:"persistence_path"`
	LastModifiedDateCorrectionDuration time.Duration `json:"last_modified_date_correction_duration"`
	SkipDependencyCheck                bool          `json:"skip_dependency_check"`
}

Jump to

Keyboard shortcuts

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