Constructor

GomRepositorynew

Declaration

DexFuture*
gom_repository_new (
  GomDriver* driver
)

Description

Creates a new GomRepository using driver to communicate with storage.

Parameters

driver

Type: GomDriver

A GomDriver.

The data is owned by the caller of the function.

Return value

Type: DexFuture

A DexFuture that resolves to a GomRepository or rejects with error.

The caller of the function takes ownership of the data, and is responsible for freeing it.