ServiceMeta

Used to describe information for a executer, used to register routers

interface ServiceMeta

  • $all : RouterMeta | RouterMeta.method

  • [ method_name: string ] : RouterMeta | RouterMeta.method

Details

interface ServiceMeta

Describe information for a mapping method. This information will be used by hyron to register the router and execute business logic along with plugins

var $all

$all : RouterMeta | RouterMeta.method

Apply descriptions for all routers. It has a low priority, so you can override it at each router

list [method_name]

List their mapping methods and descriptions, used by hyron to register the router

★ Result

[ method_name: string ] : RouterMeta | RouterMeta.method

type

description

method_name

The corresponding method name is encapsulated in this class. it will be used as a child path url by default

RouterMeta

Contains descriptive information for this router

RouterMeta.method

The method will be used to register the router