Home Reference Source Test
import Kinto from 'kinto'
public class | source

Kinto

Extends:

KintoBase → Kinto

Test:

Static Member Summary

Static Public Members
public static get

adapters: Object

Provides a public access to the base adapter classes.

Constructor Summary

Public Constructor
public

Inherited Summary

From class KintoBase
public static get

adapters: Object

Provides a public access to the base adapter class.

public static get

syncStrategy: Object

Synchronization strategies.

public

api: KintoClient

The kinto HTTP client instance.

public

events: EventEmitter

The event emitter instance.

private

_options: {...defaults: Object, ...options: Object}

public

collection(collName: String, options: Object): Collection

Creates a Collection instance.

Static Public Members

public static get adapters: Object source

Provides a public access to the base adapter classes. Users can create a custom DB adapter by extending BaseAdapter.

Override:

KintoBase#adapters

Public Constructors

public constructor() source

Constructor.

Options:

  • {String} remote The server URL to use.
  • {String} bucket The collection bucket name.
  • {EventEmitter} events Events handler.
  • {BaseAdapter} adapter The base DB adapter class.
  • {Object} adapterOptions Options given to the adapter.
  • {Object} headers The HTTP headers to use.
  • {Object} retry Number of retries when the server fails to process the request (default: 1)
  • {String} requestMode The HTTP CORS mode to use.
  • {Number} timeout The requests timeout in ms (default: 5000).

Override:

KintoBase#constructor

Test: