Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/hex/src/fw/mod.ts>generator.Service

An ecosystem delivering practices, philosophy and portability. Powered By Deno and JavaScript.
Go to Latest
interface generator.Service
implements ServiceState<TOptions>
Re-export
import { type generator } from "https://deno.land/x/hex@0.6.3/src/fw/mod.ts";
const { Service } = generator;

Properties

internalApp: Application<ServiceState<TOptions>>
addMiddleware: (middleware: Middleware) => void
addHealthCheck: (path: string) => void
addRoute: <R extends string, P extends RouteParams<R> = RouteParams<R>, S extends State = Record<string, any>>(
method: HttpMethods,
path: R,
...middlewares: [...RouterMiddleware<R, P, S>[], (ctx: RouterContext<R, P, S> | Context) => unknown] | [(ctx: Context) => unknown],
) => void
configureOptions: (configureOptionsFn: options.ConfigureOptionsFn<TOptions>) => Promise<void>
configureDI: (configureDIFn: (registry: di.Registry) => Promise<void> | void) => Promise<void>
start: () => Promise<void>