Class: Repository

repositories.Repository

The Repository class is the base class for all repositories.

Hierarchy

Table of contents

Constructors

Methods

Constructors

constructor

new Repository(agent)

Creates an instance of Repository.

Parameters

Name Type
agent PeerAgent

Methods

crudReq

crudReq(data): void

Sends a CRUD request to the xFrame.

Parameters

Name Type
data any

Returns

void


crudReqSync

crudReqSync(data): Promise<unknown>

Sends a CRUD request to the xFrame.

Parameters

Name Type
data any

Returns

Promise<unknown>