@midwayjs/core
Index
Classes
- AbstractFileDetector
- BaseFramework
- CommonJSFileDetector
- ContextMiddlewareManager
- CustomModuleDetector
- DataListener
- DataSourceManager
- DecoratorManager
- DefaultConsoleLoggerFactory
- ESModuleFileDetector
- FilterManager
- FrameworkType
- FunctionalConfiguration
- HttpClient
- HttpServerResponse
- LoggerFactory
- MidwayApplicationManager
- MidwayAspectService
- MidwayCodeInvokeTimeoutError
- MidwayCommonError
- MidwayConfigMissingError
- MidwayConfigService
- MidwayContainer
- MidwayDecoratorService
- MidwayDefinitionNotFoundError
- MidwayDuplicateClassNameError
- MidwayDuplicateControllerOptionsError
- MidwayDuplicateRouteError
- MidwayEmptyValueError
- MidwayEnvironmentService
- MidwayError
- MidwayFeatureNoLongerSupportedError
- MidwayFeatureNotImplementedError
- MidwayFrameworkService
- MidwayFrameworkType
- MidwayHealthService
- MidwayHttpError
- MidwayInconsistentVersionError
- MidwayInformationService
- MidwayInvalidConfigError
- MidwayInvalidConfigPropertyError
- MidwayInvokeForbiddenError
- MidwayLifeCycleService
- MidwayLoggerService
- MidwayMainFrameworkMissingError
- MidwayMiddlewareService
- MidwayMissingImportComponentError
- MidwayMockService
- MidwayParameterError
- MidwayPerformanceManager
- MidwayPipelineService
- MidwayPriorityManager
- MidwayRequestContainer
- MidwayResolverMissingError
- MidwayRetryExceededMaxTimesError
- MidwayServerlessFunctionService
- MidwaySingletonInjectRequestError
- MidwayUseWrongMethodError
- MidwayUtilHttpClientTimeoutError
- MidwayWebRouterService
- PipelineContext
- ServerResponse
- ServiceFactory
- TypedResourceManager
- WebControllerGenerator
- WebRouterCollector
Enumerations
Functions
- All
- App
- ApplicationContext
- Aspect
- Autoload
- Body
- Catch
- Config
- Configuration
- Consumer
- ContentType
- Controller
- Del
- Destroy
- DubboMethod
- Emit
- Fields
- File
- Files
- Framework
- Get
- GrpcMethod
- Guard
- HSF
- Head
- Headers
- HttpCode
- Init
- Inject
- InjectClient
- KafkaListener
- Logger
- Match
- Middleware
- Mock
- OnConnection
- OnDisConnection
- OnMessage
- OnWSConnection
- OnWSDisConnection
- OnWSMessage
- Options
- Param
- Patch
- Pipe
- Pipeline
- Plugin
- Post
- Provide
- Provider
- Put
- Queries
- Query
- Queue
- RabbitMQListener
- Redirect
- RequestIP
- RequestMapping
- RequestPath
- Schedule
- Scope
- ServerlessFunction
- ServerlessTrigger
- Session
- SetHeader
- Singleton
- Task
- TaskLocal
- UseGuard
- WSBroadCast
- WSController
- WSEmit
- attachClassMetadata
- attachPropertyDataToClass
- attachPropertyMetadata
- bindContainer
- clearAllModule
- clearBindContainer
- createConfiguration
- createCustomMethodDecorator
- createCustomParamDecorator
- createCustomPropertyDecorator
- createMiddleware
- createRender
- createRequestParamDecorator
- delegateTargetAllPrototypeMethod
- delegateTargetMethod
- delegateTargetProperties
- delegateTargetPrototypeMethod
- deprecatedOutput
- destroyGlobalApplicationContext
- extend
- extractExpressLikeValue
- extractKoaLikeValue
- getClassExtendedMetadata
- getClassMetadata
- getCurrentApplicationContext
- getCurrentAsyncContextManager
- getCurrentMainApp
- getCurrentMainFramework
- getMethodParamTypes
- getMethodReturnTypes
- getObjectDefinition
- getPropertyDataFromClass
- getPropertyInject
- getPropertyMetadata
- getPropertyType
- getProviderId
- getProviderName
- getProviderUUId
- initializeGlobalApplicationContext
- isProvide
- isTypeScriptEnvironment
- listModule
- listPreloadModule
- listPropertyDataFromClass
- loadModule
- makeHttpRequest
- pathMatching
- prepareGlobalApplicationContext
- prepareGlobalApplicationContextAsync
- providerWrapper
- registerErrorCode
- resetModule
- retryWith
- retryWithAsync
- safeRequire
- safelyGet
- saveClassMetadata
- saveModule
- saveObjectDefinition
- savePreloadModule
- savePropertyDataToClass
- savePropertyInject
- savePropertyMetadata
- saveProviderId
- sleep
- transformRequestObjectByType
- transformTypeFromTSDesign
- wrapAsync
- wrapMiddleware
Interfaces
- AspectMetadata
- AsyncContext
- AsyncContextManager
- CommonSchedule
- Context
- ControllerOption
- HSFOpts
- HealthResult
- HealthResults
- HttpClientOptions
- HttpClientResponse
- IComponentInfo
- IConfigService
- IConfigurationOptions
- IEnvironmentService
- IFileDetector
- IFilter
- IGuard
- IIdentifierRelationShip
- IInformationService
- ILifeCycle
- ILogger
- IManagedInstance
- IManagedResolver
- IManagedResolverFactoryCreateOptions
- IMethodAspect
- IMiddleware
- IMiddlewareManager
- IMidwayBaseApplication
- IMidwayBootstrapOptions
- IMidwayContainer
- IMidwayFramework
- IModuleStore
- IObjectCreator
- IObjectDefinition
- IObjectDefinitionRegistry
- IObjectFactory
- IObjectLifeCycle
- IPipelineContext
- IPipelineHandler
- IPipelineOptions
- IPipelineResult
- IProperties
- IServiceFactory
- ISimulation
- IValveHandler
- InjectionConfigurationOptions
- JoinPoint
- KafkaListenerOptions
- MethodDecoratorMetaData
- MethodDecoratorOptions
- MidwayAppInfo
- MidwayConfig
- MidwayCoreDefaultConfig
- MidwayLoggerOptions
- ObjectBeforeBindOptions
- ObjectBeforeCreatedOptions
- ObjectBeforeDestroyOptions
- ObjectCreatedOptions
- ObjectDefinitionOptions
- ObjectInitOptions
- ParamDecoratorOptions
- ParameterDecoratorMetaData
- PipeTransform
- RabbitMQListenerOptions
- ReflectResult
- ResolveFilter
- RouterCollectorOptions
- RouterInfo
- RouterOption
- RouterParamValue
- RouterPriority
- ScheduleOpts
- ServerSendEventMessage
- ServerSendEventStreamOptions
- ServerStreamOptions
- TSDesignType
- TagClsMetadata
- TagPropsMetadata
- TransformOptions
- WSControllerOption
- WSEventInfo
Namespaces
Type Aliases
- ClassMiddleware
- ClassType
- CommonFilterUnion
- CommonGuardUnion
- CommonMiddleware
- CommonMiddlewareUnion
- CompositionMiddleware
- ConsumerRunConfig
- ConsumerSubscribeTopic
- ConsumerSubscribeTopics
- CreateDataSourceInstanceOptions
- CustomParamDecorator
- DataSourceManagerConfigOption
- DynamicRouterInfo
- ExpressLikeCustomParamDecorator
- FileConfigOption
- FunctionMiddleware
- GroupModeType
- HandlerFunction
- HttpClientMimeType
- IApplicationContext
- IMidwayApplication
- IMidwayContext
- IMidwayLogger
- IgnoreMatcher
- KoaLikeCustomParamDecorator
- MatchPattern
- MethodHandlerFunction
- MiddlewareParamArray
- MiddlewareRespond
- ModuleLoadType
- NextFunction
- ObjectContext
- ObjectIdentifier
- ParameterHandlerFunction
- PipeTransformFunction
- PipeUnionTransform
- PowerPartial
- ResOrMessage
- ServiceFactoryConfigOption
- WithFn
- WithoutFn
- Writable
Variables
- ALL
- APPLICATION_CONTEXT_KEY
- APPLICATION_KEY
- ASPECT_KEY
- ASYNC_CONTEXT_KEY
- ASYNC_CONTEXT_MANAGER_KEY
- ASYNC_ROOT_CONTEXT
- CATCH_KEY
- CLASS_KEY_CONSTRUCTOR
- CONFIGURATION_KEY
- CONFIG_KEY
- CONTAINER_OBJ_SCOPE
- CONTROLLER_KEY
- DEFAULT_PATTERN
- DEFAULT_PRIORITY
- FACTORY_SERVICE_CLIENT_KEY
- FORMAT
- FRAMEWORK_KEY
- FUNCTION_INJECT_KEY
- FUNC_KEY
- FileUtils
- FrameworkErrorEnum
- GUARD_KEY
- HSF_KEY
- HTTP_SERVER_KEY
- IGNORE_PATTERN
- INJECT_CLASS_KEY_PREFIX
- INJECT_CUSTOM_METHOD
- INJECT_CUSTOM_PARAM
- INJECT_CUSTOM_PROPERTY
- INJECT_TAG
- KEYS
- LIFECYCLE_IDENTIFIER_PREFIX
- LOGGER_KEY
- MAIN_MODULE_KEY
- MATCH_KEY
- MIDWAY_LOGGER_WRITEABLE_DIR
- MOCK_KEY
- MODULE_TASK_KEY
- MODULE_TASK_METADATA
- MODULE_TASK_QUEUE_KEY
- MODULE_TASK_QUEUE_OPTIONS
- MODULE_TASK_TASK_LOCAL_KEY
- MODULE_TASK_TASK_LOCAL_OPTIONS
- MS_CONSUMER_KEY
- MS_DUBBO_METHOD_KEY
- MS_GRPC_METHOD_KEY
- MS_HSF_METHOD_KEY
- MS_PRODUCER_KEY
- MS_PROVIDER_KEY
- NAMED_TAG
- OBJ_DEF_CLS
- PIPELINE_IDENTIFIER
- PLUGIN_KEY
- PRELOAD_MODULE_KEY
- PRIVATE_META_DATA_KEY
- PathFileUtil
- PathToRegexpUtil
- REQUEST_CTX_KEY
- REQUEST_CTX_LOGGER_CACHE_KEY
- REQUEST_OBJ_CTX_KEY
- RPC_DUBBO_KEY
- RPC_GRPC_KEY
- RequestMethod
- SCHEDULE_KEY
- SERVERLESS_FUNC_KEY
- SINGLETON_CONTAINER_CTX
- TAGGED_CLS
- TAGGED_FUN
- Types
- Utils
- WEB_RESPONSE_CONTENT_TYPE
- WEB_RESPONSE_HEADER
- WEB_RESPONSE_HTTP_CODE
- WEB_RESPONSE_KEY
- WEB_RESPONSE_REDIRECT
- WEB_RESPONSE_RENDER
- WEB_ROUTER_KEY
- WEB_ROUTER_PARAM_KEY
- WS_CONTROLLER_KEY
- WS_EVENT_KEY
- httpError
Type Aliases
ClassMiddleware
Type parameters
- CTX
- R
- N
ClassType
Type parameters
- T = any
CommonFilterUnion
Type parameters
- CTX
- R
- N
CommonGuardUnion
Type parameters
- CTX = unknown
CommonMiddleware
Type parameters
- CTX
- R
- N
CommonMiddlewareUnion
Type parameters
- CTX
- R
- N
CompositionMiddleware
Type parameters
- CTX
- R
- N
ConsumerRunConfig
ConsumerSubscribeTopic
ConsumerSubscribeTopics
CreateDataSourceInstanceOptions
CustomParamDecorator
Type parameters
- T = unknown
DataSourceManagerConfigOption
Type parameters
- OPTIONS
- ENTITY_CONFIG_KEY: string = entities
DynamicRouterInfo
ExpressLikeCustomParamDecorator
Type parameters
- T = unknown
FileConfigOption
Get definition from config
Type parameters
- T
- K = unknown
FunctionMiddleware
Type parameters
- CTX
- R
- N = unknown
GroupModeType
HandlerFunction
HttpClientMimeType
IApplicationContext
IMidwayApplication
Type parameters
- T: IMidwayContext = IMidwayContext
- FrameworkApplication = unknown
IMidwayContext
Type parameters
- FrameworkContext = unknown
IMidwayLogger
IgnoreMatcher
Type parameters
- CTX
KoaLikeCustomParamDecorator
Type parameters
- T = unknown
MatchPattern
Type parameters
- CtxOrReq = any
- Res = any
MethodHandlerFunction
MiddlewareParamArray
MiddlewareRespond
Type parameters
- CTX
- R
- N
ModuleLoadType
NextFunction
ObjectContext
ObjectIdentifier
ParameterHandlerFunction
PipeTransformFunction
Type parameters
- T = any
- R = any
PipeUnionTransform
Type parameters
- T = any
- R = any
PowerPartial
Type parameters
- T
ResOrMessage
ServiceFactoryConfigOption
Type parameters
- OPTIONS
WithFn
Utility type that adds a fn
parameter to each method in the input type T
,
transforming the original method’s parameter types and return type into a function type.
Type parameters
- T
WithoutFn
Transform an object type T
with methods that have function-type parameters
to a new object type with the same methods, but with the parameters
extracted as separate properties.
Type parameters
- T
Writable
Make object property writeable
Type parameters
- T
Variables
constALL
constAPPLICATION_CONTEXT_KEY
constAPPLICATION_KEY
constASPECT_KEY
constASYNC_CONTEXT_KEY
constASYNC_CONTEXT_MANAGER_KEY
constASYNC_ROOT_CONTEXT
The root context is used as the default parent context when there is no active context
constCATCH_KEY
constCLASS_KEY_CONSTRUCTOR
constCONFIGURATION_KEY
constCONFIG_KEY
constCONTAINER_OBJ_SCOPE
constCONTROLLER_KEY
constDEFAULT_PATTERN
constDEFAULT_PRIORITY
constFACTORY_SERVICE_CLIENT_KEY
constFORMAT
constFRAMEWORK_KEY
constFUNCTION_INJECT_KEY
constFUNC_KEY
constFileUtils
constFrameworkErrorEnum
constGUARD_KEY
constHSF_KEY
constHTTP_SERVER_KEY
constIGNORE_PATTERN
constINJECT_CLASS_KEY_PREFIX
constINJECT_CUSTOM_METHOD
constINJECT_CUSTOM_PARAM
constINJECT_CUSTOM_PROPERTY
constINJECT_TAG
constKEYS
静态参数
Replaced by ConsumerSubscribeTopics