Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/momentum/mvc/deps.ts

Momentum is an open-source framework for building server-side Deno applications in TypeScript. It provides the paradigms and design patterns to guide developers to create robust, scalable, and enterprise-grade applications.
Latest
import * as momentum from "https://deno.land/x/momentum@v0.8.2/mvc/deps.ts";

Classes

c
ActionResult
abstract

Base class that represents the result of a controller action

Represents a result of a controller with content

Wraps the platform specific context object with a standard interface

Resolves dependencies

Hierarchical cache used to hold resolved dependencies based on scope lifetime

Dependency injection container which registers dependencies and creates dependency graphs represent the dependency tree.

Represents a reference to an bootstrapped Momentum module

c
Platform
abstract

The Momentum platform is the entry point for every Momentum application. Each application has exactly one platform and services are bound the scope of the platform.

Represents a controller action result with a redirect

Represents an server-side error that can be relayed back to the client. :th

Momentum platform for server applications such as APIs and web applications.

Represents a result of a controller action with a status code

Enums

Defines the lifetime of a dependency

Functions

Decorator that extracts an action argument as the full body of a request

Create a @see ContentResult

Decorator that marks a class as a controller

Decorator that extracts an action argument from a cookie on the request

Creates a parameter decorator

Decorator that gets the underlying platform context object as a action argument

Decorator that marks a controller method as a DELETE action

Test whether or not the given path exists by checking with the file system

Test whether or not the given path exists by checking with the file system

Decorator that applies a filter to a controller or action

Decorator that marks a controller method as a GET action

Decorator that marks a controller method as a HEAD action

Decorator that extracts an action argument from a header on the request

Decorator used to inject a type using a type identifier

Decorator used to mark a type as available for dependency injection globally.

Decorator used to inject a logger

Decorator that marks a class as an MvModule and supplies configuration metadata.

Decorator use to mark an injected type as optional. If the type is not able to be resolved, the argument will be undefined

Decorator that extracts an action argument from a route parameter

Decorator that marks a controller method as a PATCH action

Creates a new basic momentum platform

Decorator that marks a controller method as a POST action

Decorator that marks a controller method as a PUT action

Decorator that extracts an action argument from a query parameter of the request

Create a @see RedirectResult

Decorator that gets the underlying platform request object as a action argument

Decorator that gets the underlying platform response object as a action argument

Create a @see StatusCodeResult

Decorator that applies a transformer at a controller, action, or parameter level

Interfaces

Represents an injectable that can be injected at any time, but will not be resolved until a call is made to the value property.

Interface that describes a filter.

Interface that describes a middleware.

Interface that describes a transformer

A lifecycle hook that is called after the platform is bootstrapped

A lifecycle hook that is called before the platform shuts down

A lifecycle hook that is called after a request is processed

A lifecycle hook that is called before a request is processed