Documentation
¶
Overview ¶
Package async adapts the original Datly .job storage-event transport to the durable jobs service. AFS owns local and cloud URL operations.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Dispatcher ¶
type Dispatcher struct {
// contains filtered or unexported fields
}
func NewDispatcher ¶
func NewDispatcher(fs afs.Service, service JobHandler) (*Dispatcher, error)
func (*Dispatcher) DispatchStorageEvent ¶
func (d *Dispatcher) DispatchStorageEvent(ctx context.Context, object afsstorage.Object) (err error)
DispatchStorageEvent accepts the same AFS storage.Object produced by local, S3 or GS adapters. It never opens an HTTP loopback connection.
type JobHandler ¶
JobHandler accepts durable events through the existing job service or its application admission owner.
type PublishConfig ¶
type PublishConfig struct {
FS afs.Service
Notification xasync.Notification
}
type Publisher ¶
type Publisher struct {
// contains filtered or unexported fields
}
func NewPublisher ¶
func NewPublisher(config PublishConfig) (*Publisher, error)
type WatchConfig ¶
type Watcher ¶
type Watcher struct {
// contains filtered or unexported fields
}
func NewWatcher ¶
func NewWatcher(config WatchConfig, dispatcher *Dispatcher) (*Watcher, error)
Click to show internal directories.
Click to hide internal directories.