Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

Mandarine.Properties

import type { Mandarine } from "https://raw.githubusercontent.com/mandarineorg/mandarinets/master/main-core/Mandarine.ns.ts"; 

const { Properties } = Mandarine;

Structure of Mandarine Properties. Mandarine uses these properties to determine how it should work Custom Properties must extend Mandarine.Properties

interface Properties {
[prop: string]: any;
mandarine: {
server: {
host?: string;
port: number;
responseType?: MandarineMVC.MediaTypes;
responseTimeHeader?: boolean;
enableSessions?: boolean;
enableCors?: boolean;
https?: {
certFile: string;
keyFile: string;
}
;
cache?: {
enabled: boolean;
defaultExpiration: number;
expirationInterval: number;
}
;
}
& any;
resources: {
staticRegExpPattern?: string;
staticFolder?: string;
staticIndex?: string;
cors?: MandarineMVC.CorsMiddlewareOption;
}
& any;
templateEngine: {
path: string;
}
& any;
dataSource?: {
data: {
host: string;
port?: number;
username: string;
password: string;
database: string;
poolSize?: number;
}
& any;
}
& any;
authentication?: {
expiration?: number;
cookie?: CookieConfig;
}
;
sessions: {
touch: boolean;
expiration: number;
expirationInterval: number;
}
;
security?: {
cookiesSignKeys: Array<string>;
}
;
services?: {
mongodb?: {
connectionURL: string;
}
;
}
;
microservices?: {
[transporter: string]: Microlemon.ConnectionData | any;
automaticHealthCheck?: boolean;
automaticHealthCheckInterval?: number;
}
;
}
& any;
}

§Index Signatures

§
[prop: string]: any

§Properties

§
mandarine: {
server: {
host?: string;
port: number;
responseType?: MandarineMVC.MediaTypes;
responseTimeHeader?: boolean;
enableSessions?: boolean;
enableCors?: boolean;
https?: {
certFile: string;
keyFile: string;
}
;
cache?: {
enabled: boolean;
defaultExpiration: number;
expirationInterval: number;
}
;
}
& any;
resources: {
staticRegExpPattern?: string;
staticFolder?: string;
staticIndex?: string;
cors?: MandarineMVC.CorsMiddlewareOption;
}
& any;
templateEngine: {
path: string;
}
& any;
dataSource?: {
data: {
host: string;
port?: number;
username: string;
password: string;
database: string;
poolSize?: number;
}
& any;
}
& any;
authentication?: {
expiration?: number;
cookie?: CookieConfig;
}
;
sessions: {
touch: boolean;
expiration: number;
expirationInterval: number;
}
;
security?: {
cookiesSignKeys: Array<string>;
}
;
services?: {
mongodb?: {
connectionURL: string;
}
;
}
;
microservices?: {
[transporter: string]: Microlemon.ConnectionData | any;
automaticHealthCheck?: boolean;
automaticHealthCheckInterval?: number;
}
;
}
& any
[src]