image-steam-blobby
Blobby client for Image Steam.
For caching only
Options
import isteamBlobby from 'image-steam-blobby'; const blobby = new isteamBlobby({ endpoint: 'https://some-endpoint.com', bucket: 'myBucket', // equates to https://some-endpoint.com/myBucket secret: 'mySecretShhh' // enable writes});
Param | Info |
---|---|
endpoint (required) | Endpoint of http(s) service |
secret | Only required if using as a cache layer that must write back to storage |
bucket | Path of folder from root |
Usage
Example:
import isteam from 'image-steam'; const options = { storage: { app: { static: { driver: 'http', endpoint: 'https://some-endpoint.com' } }, cache: { driverPath: 'image-steam-blobby', endpoint: 'https://some-endpoint.com', bucket: 'myBucket', secret: 'mySecretShh' // enable writes } }} http.createServer(new isteam.http.Connect(options).getHandler()) .listen(13337, '127.0.0.1');