Skip to main content

ServerServices

The services object is accessible to all endpoints and middlewares of the server. Several services instances exist in the server. First a base instance corresponding to the root level of the server's data dir. Second, an organization specific services and DB instance is created inside the root data dir so all organization data is contained in a single DB/directory on disk.

Extends: ServerOptions

Properties

db

db: [GoatDB](/docs/api/classes/goatdb)<US>

email

email: EmailService<US>

logger

logger: Logger

orgId

orgId: string

Optional organization id used to sandbox the data of a specific organization in a multi-tenant deployment. Defaults to "localhost".

Inherited Members

From ServerOptions

Properties: appName, buildInfo, customConfig, debug, denoJson, disableDefaultEndpoints, domain, emailConfig, fetchUserByEmail, https, logStreams, mode, path, peers, port, registry, staticAssets, trusted

See ServerOptions for detailed documentation