Documentation
¶
Index ¶
- Variables
- func BackendConfigSubscriber()
- func UpdateRouterConfig(connection backendconfig.ConnectionDetailT)
- type DBHandleI
- type DestinationRouterT
- type HandleT
- func (router *HandleT) CreateNewJobWithFailedEvents(events []interface{}, destinationID int)
- func (router *HandleT) JobsRequestWorker()
- func (router *HandleT) JobsResponseWorker()
- func (router *HandleT) ProcessBatchRouterJobs()
- func (router *HandleT) ProcessRouterJobs(index int)
- func (router *HandleT) Setup(jobsDB *jobsdb.HandleT, configDB *backendconfig.HandleT)
- type JobProcessRequestT
- type JobProcessResponseT
- type RestHandleI
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func BackendConfigSubscriber ¶ added in v1.1.0
func BackendConfigSubscriber()
func UpdateRouterConfig ¶ added in v1.1.0
func UpdateRouterConfig(connection backendconfig.ConnectionDetailT)
Types ¶
type DBHandleI ¶ added in v1.1.0
type DBHandleI interface { Connect(string) bool InsertPayloadInTransaction([]json.RawMessage) error }
type DestinationRouterT ¶ added in v1.1.0
type DestinationRouterT struct { DBHandle DBHandleI `json:"DBHandle"` RestHandle RestHandleI `json:"RestHandle"` Enabled bool `json:"Enabled"` }
type HandleT ¶
type HandleT struct { JobsDB *jobsdb.HandleT ConfigDB *backendconfig.HandleT JobProcessRequestQ chan *JobProcessRequestT JobProcessBatchRequestQ chan *JobProcessRequestT JobProcessResponseQ chan *JobProcessResponseT // contains filtered or unexported fields }
func (*HandleT) CreateNewJobWithFailedEvents ¶ added in v1.1.0
func (*HandleT) JobsRequestWorker ¶ added in v1.1.0
func (router *HandleT) JobsRequestWorker()
func (*HandleT) JobsResponseWorker ¶ added in v1.1.0
func (router *HandleT) JobsResponseWorker()
func (*HandleT) ProcessBatchRouterJobs ¶ added in v1.1.0
func (router *HandleT) ProcessBatchRouterJobs()
func (*HandleT) ProcessRouterJobs ¶ added in v1.1.0
type JobProcessRequestT ¶ added in v1.1.0
type JobProcessRequestT struct { JobID int64 `json:"JobID"` AttemptNum int `json:"AttemptNum"` DestinationID int `json:"DestinationID"` EventPayload json.RawMessage `json:"EventPayload"` }
type JobProcessResponseT ¶ added in v1.1.0
type RestHandleI ¶ added in v1.1.0
Click to show internal directories.
Click to hide internal directories.