convector-core-controller

This module contains the core controller definition and the controller-related helpers and decorators

Index

Functions

Controller

  • Controller(namespace: string): (Anonymous function)

Invokable

  • Invokable(): (Anonymous function)

Param

  • Param<T>(model: Schema<T> | object, opts?: any): (Anonymous function)
  • Used to identify and parse the parameters when a function is invokable in the chaincode.

    HLF invokes the functions using an array of strings, so no matter what type of data you sent when calling the function, it will be converted to a string.

    This decorator is used to parse the arguments using yup for the data validation.

    ConvectorModel can be used as well instead of a yup schema.

    decorator

    Type parameters

    • T

    Parameters

    Returns (Anonymous function)