eyevinn-encore-callback-listener

Namespace

eyevinn-encore-callback-listener

Description:
  • Encore callback listener is a powerful HTTP server that listens for successful job callbacks, posting jobId and Url on a redis queue. Fully customizable with environment variables. Enhance your project efficiency now! Contact sales@eyevinn.se for further details.

Author:

Methods

(async, static) createEyevinnEncoreCallbackListenerInstance(context, body) → {EyevinnEncoreCallbackListener}

Description:
  • Create a new Encore Callback Listener instance

Example
import { Context } from '@osaas/client-core';
import { createEyevinnEncoreCallbackListenerInstance } from '@osaas/client-services';

const ctx = new Context();
const body: EyevinnEncoreCallbackListenerConfig = { name: 'myinstance', ... };
const instance = await createEyevinnEncoreCallbackListenerInstance(ctx, body);
console.log(instance.url);
Parameters:
Name Type Description
context Context

Open Source Cloud configuration context

body EyevinnEncoreCallbackListenerConfig

Service instance configuration

Returns:
  • Service instance
Type
EyevinnEncoreCallbackListener

(async, static) getEyevinnEncoreCallbackListenerInstance(context, name) → {EyevinnEncoreCallbackListener}

Description:
  • Get a Encore Callback Listener instance

Example
import { Context } from '@osaas/client-core';
import { getEyevinnEncoreCallbackListenerInstance } from '@osaas/client-services';

const ctx = new Context();
const instance = await getEyevinnEncoreCallbackListenerInstance(ctx, 'myinstance');
console.log(instance.url);
Parameters:
Name Type Description
context Context

Open Source Cloud configuration context

name string

Name of the callback to be retrieved

Returns:
  • Service instance
Type
EyevinnEncoreCallbackListener

(async, static) removeEyevinnEncoreCallbackListenerInstance(context, name)

Description:
  • Remove a Encore Callback Listener instance

Parameters:
Name Type Description
context Context

Open Source Cloud configuration context

name string

Name of the callback to be removed