Constructor
# new Delivery(opts)
`Delivery` class constructor.
Parameters:
Name | Type | Description | ||||||
---|---|---|---|---|---|---|---|---|
opts |
Object |
Properties
|
- Source:
Extends
- nanoresource-pool
Members
# assets :Array.<Source>
All assets in the delivery pool, including
child delivery pools.
Type:
- Array.<Source>
- Source:
# sources :Array.<Source>
All sources in the delivery pool, including
child delivery pools.
Type:
- Array.<Source>
- Source:
Methods
# associate(uri, opts) → {Asset}
Creates and adds a new Asset from a URI. Associates it with the Delivery.
Parameters:
Name | Type | Description |
---|---|---|
uri |
String | |
opts |
Object |
- Source:
Returns:
- Type
- Asset
# demux(opts, callback) → {EventEmitter}
Demux sources into output streams. Outputs
Parameters:
Name | Type | Description |
---|---|---|
opts |
Object | |
callback |
function |
- Source:
Returns:
- Type
- EventEmitter
# probe(opts, callback)
Probes all sources in delivery pool.
Parameters:
Name | Type | Description |
---|---|---|
opts |
Object | |
callback |
function |
- Source:
# source(uri, opts) → {Source}
Creates and adds a new source from a URI.
Parameters:
Name | Type | Description |
---|---|---|
uri |
String | |
opts |
Object |
- Source:
Returns:
- Type
- Source
# stat(callback)
An alias for `probe()`.
Parameters:
Name | Type | Description |
---|---|---|
callback |
function |
- Source: