@midwayjs/core
Index
Classes
- AbstractFileDetector
- BaseFramework
- CommonJSFileDetector
- ContextMiddlewareManager
- CustomModuleDetector
- DataListener
- DataSourceManager
- DecoratorManager
- DefaultConsoleLoggerFactory
- DynamicMidwayContainer
- ESModuleFileDetector
- FilterManager
- HttpClient
- HttpServerResponse
- LoadBalancerFactory
- LoggerFactory
- MetadataManager
- MidwayApplicationManager
- MidwayAspectService
- MidwayCodeInvokeTimeoutError
- MidwayCommonError
- MidwayConfigMissingError
- MidwayConfigService
- MidwayContainer
- MidwayDecoratorService
- MidwayDefinitionNotFoundError
- MidwayDuplicateClassNameError
- MidwayDuplicateControllerOptionsError
- MidwayDuplicateRouteError
- MidwayEmptyValueError
- MidwayEnvironmentService
- MidwayError
- MidwayFeatureNoLongerSupportedError
- MidwayFeatureNotImplementedError
- MidwayFrameworkService
- MidwayHealthService
- MidwayHttpError
- MidwayInconsistentVersionError
- MidwayInformationService
- MidwayInvalidConfigError
- MidwayInvalidConfigPropertyError
- MidwayInvokeForbiddenError
- MidwayLifeCycleService
- MidwayLoggerService
- MidwayMainFrameworkMissingError
- MidwayMiddlewareService
- MidwayMissingImportComponentError
- MidwayMockService
- MidwayParameterError
- MidwayPerformanceManager
- MidwayPriorityManager
- MidwayRequestContainer
- MidwayRetryExceededMaxTimesError
- MidwayServerlessFunctionService
- MidwaySingletonInjectRequestError
- MidwayUseWrongMethodError
- MidwayUtilHttpClientTimeoutError
- MidwayWebRouterService
- RandomLoadBalance
- RoundRobinLoadBalancer
- ServerResponse
- ServiceDiscovery
- ServiceDiscoveryClient
- ServiceFactory
- TypedResourceManager
- WebControllerGenerator
Enumerations
Functions
- All
- AllConfig
- App
- ApplicationContext
- Aspect
- Autoload
- Body
- Catch
- Config
- Configuration
- Consumer
- ContentType
- Controller
- Del
- Destroy
- DubboMethod
- Emit
- Fields
- File
- Files
- Framework
- Get
- GrpcMethod
- Guard
- Head
- Headers
- HttpCode
- Init
- Inject
- InjectClient
- KafkaListener
- LazyInject
- Logger
- MainApp
- Match
- Middleware
- Mock
- OnConnection
- OnDisConnection
- OnMessage
- OnWSConnection
- OnWSDisConnection
- OnWSMessage
- Options
- Param
- Patch
- Pipe
- 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
- clearAllModule
- createCustomMethodDecorator
- createCustomParamDecorator
- createCustomPropertyDecorator
- createMiddleware
- createRender
- createRequestParamDecorator
- delegateTargetAllPrototypeMethod
- delegateTargetMethod
- delegateTargetProperties
- delegateTargetPrototypeMethod
- deprecatedOutput
- destroyGlobalApplicationContext
- extend
- extractExpressLikeValue
- extractKoaLikeValue
- getClassExtendedMetadata
- getClassMetadata
- getCurrentApplicationContext
- getCurrentAsyncContextManager
- getCurrentMainApp
- getCurrentMainFramework
- getMethodParamTypes
- 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
- wrapAsync
- wrapMiddleware
Interfaces
- AspectMetadata
- AsyncContext
- AsyncContextManager
- BaseServiceDiscoveryHealthCheckOptions
- CommonSchedule
- ConstructorInjectMetadata
- Context
- ControllerOption
- DataSourceManagerConfigOption
- DefaultInstanceMetadata
- HTTPServiceDiscoveryHealthCheckOptions
- HealthResult
- HealthResults
- HttpClientOptions
- HttpClientResponse
- IComponentInfo
- IConfigService
- IConfigurationOptions
- IDataSourceManager
- IEnvironmentService
- IFileDetector
- IFilter
- IGuard
- IIdentifierRelationShip
- IInformationService
- ILifeCycle
- ILoadBalancer
- ILogger
- IMethodAspect
- IMiddleware
- IMiddlewareManager
- IMidwayBaseApplication
- IMidwayBootstrapOptions
- IMidwayContainer
- IMidwayFramework
- IMidwayGlobalContainer
- IMidwayRequestContainer
- IObjectCreator
- IObjectDefinition
- IObjectDefinitionRegistry
- IObjectFactory
- IObjectLifeCycle
- IServiceDiscoveryClient
- IServiceDiscoveryHealthCheck
- IServiceFactory
- ISimulation
- InjectionConfigurationOptions
- JoinPoint
- KafkaListenerOptions
- LifeCycleInvokeOptions
- MethodDecoratorMetaData
- MethodDecoratorOptions
- MidwayAppInfo
- MidwayConfig
- MidwayCoreDefaultConfig
- MidwayLoggerOptions
- ObjectBeforeBindOptions
- ObjectBeforeCreatedOptions
- ObjectBeforeDestroyOptions
- ObjectCreatedOptions
- ObjectDefinitionOptions
- ObjectInitOptions
- ParamDecoratorOptions
- ParameterDecoratorMetaData
- PipeTransform
- PropertyDecoratorOptions
- PropertyInjectMetadata
- RabbitMQListenerOptions
- ReflectResult
- RouterCollectorOptions
- RouterInfo
- RouterOption
- RouterParamValue
- RouterPriority
- ScheduleOpts
- ServerSendEventMessage
- ServerSendEventStreamOptions
- ServerStreamOptions
- ServiceDiscoveryBaseInstance
- ServiceDiscoveryHealthCheckResult
- ServiceDiscoveryOptions
- TCPServiceDiscoveryHealthCheckOptions
- TSDesignType
- TTLServiceDiscoveryHealthCheckOptions
- TagClsMetadata
- TagPropsMetadata
- TransformOptions
- WSControllerOption
- WSEventInfo
Namespaces
Type Aliases
- BaseDataSourceManagerConfigOption
- ClassMiddleware
- ClassType
- CommonFilterUnion
- CommonGuardUnion
- CommonMiddleware
- CommonMiddlewareUnion
- CompositionMiddleware
- ConsumerRunConfig
- ConsumerSubscribeTopic
- ConsumerSubscribeTopics
- CreateDataSourceInstanceOptions
- CustomParamDecorator
- DynamicRouterInfo
- ExpressLikeCustomParamDecorator
- FileConfigOption
- FunctionMiddleware
- FunctionalConfigurationOptions
- HandlerFunction
- HttpClientMimeType
- IMidwayApplication
- IMidwayContext
- IgnoreMatcher
- KoaLikeCustomParamDecorator
- LoadBalancerType
- MatchPattern
- MethodHandlerFunction
- MiddlewareParamArray
- MiddlewareRespond
- ModuleLoadType
- NextFunction
- ObjectIdentifier
- ParameterHandlerFunction
- PipeTransformFunction
- PipeUnionTransform
- PowerPartial
- ResOrMessage
- ServiceDiscoveryHealthCheckOptions
- ServiceDiscoveryHealthCheckType
- ServiceFactoryConfigOption
- WithFn
- WithoutFn
- Writable
Variables
- ALL
- ALL_VALUE_KEY
- APPLICATION_CONTEXT_KEY
- APPLICATION_KEY
- ASPECT_KEY
- ASYNC_CONTEXT_KEY
- ASYNC_CONTEXT_MANAGER_KEY
- ASYNC_ROOT_CONTEXT
- CATCH_KEY
- CLASS_KEY_CONSTRUCTOR
- CONFIGURATION_KEY
- CONFIGURATION_OBJECT_KEY
- CONFIG_KEY
- CONSTRUCTOR_INJECT_KEY
- CONTAINER_OBJ_SCOPE
- CONTROLLER_KEY
- CUSTOM_METHOD_INJECT_KEY
- CUSTOM_PARAM_INJECT_KEY
- CUSTOM_PROPERTY_INJECT_KEY
- DEFAULT_PATTERN
- DEFAULT_PRIORITY
- FACTORY_SERVICE_CLIENT_KEY
- FORMAT
- FRAMEWORK_KEY
- FUNCTION_INJECT_KEY
- FUNC_KEY
- FileUtils
- FrameworkErrorEnum
- GUARD_KEY
- HTTP_SERVER_KEY
- IGNORE_PATTERN
- INJECT_CUSTOM_METHOD
- INJECT_CUSTOM_PARAM
- INJECT_CUSTOM_PROPERTY
- INJECT_TAG
- KEYS
- LOGGER_KEY
- LoadBalancerType
- MAIN_APPLICATION_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
- NetworkUtils
- OBJECT_DEFINITION_KEY
- OBJ_DEF_CLS
- PLUGIN_KEY
- PRE_START_MODULE_KEY
- PROPERTY_INJECT_KEY
- PROVIDE_KEY
- PathFileUtils
- PathToRegexpUtil
- REQUEST_CTX_KEY
- REQUEST_CTX_LOGGER_CACHE_KEY
- REQUEST_CTX_UNIQUE_KEY
- REQUEST_OBJ_CTX_KEY
- RequestMethod
- SCHEDULE_KEY
- SCOPE_KEY
- SERVERLESS_FUNC_KEY
- SINGLETON_CONTAINER_CTX
- ServiceDiscoveryHealthCheckType
- TAGGED_CLS
- 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
BaseDataSourceManagerConfigOption
Type parameters
- OPTIONS: Record<string, any>
- ENTITY_CONFIG_KEY: string = entities
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
DynamicRouterInfo
ExpressLikeCustomParamDecorator
Type parameters
- T = unknown
FileConfigOption
Get definition from config
Type parameters
- T
- K = unknown
FunctionMiddleware
Type parameters
- CTX
- R
- N = unknown
FunctionalConfigurationOptions
HandlerFunction
HttpClientMimeType
IMidwayApplication
Type parameters
- T: IMidwayContext = IMidwayContext
- FrameworkApplication = unknown
IMidwayContext
Type parameters
- FrameworkContext = unknown
IgnoreMatcher
Type parameters
- CTX
KoaLikeCustomParamDecorator
Type parameters
- T = unknown
LoadBalancerType
MatchPattern
Type parameters
- CtxOrReq = any
- Res = any
MethodHandlerFunction
MiddlewareParamArray
MiddlewareRespond
Type parameters
- CTX
- R
- N
ModuleLoadType
NextFunction
ObjectIdentifier
ParameterHandlerFunction
PipeTransformFunction
Type parameters
- T = any
- R = any
PipeUnionTransform
Type parameters
- T = any
- R = any
PowerPartial
Type parameters
- T
ResOrMessage
ServiceDiscoveryHealthCheckOptions
健康检查配置联合类型
ServiceDiscoveryHealthCheckType
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
constALL_VALUE_KEY
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
constCONFIGURATION_OBJECT_KEY
constCONFIG_KEY
constCONSTRUCTOR_INJECT_KEY
constCONTAINER_OBJ_SCOPE
constCONTROLLER_KEY
constCUSTOM_METHOD_INJECT_KEY
constCUSTOM_PARAM_INJECT_KEY
constCUSTOM_PROPERTY_INJECT_KEY
constDEFAULT_PATTERN
constDEFAULT_PRIORITY
constFACTORY_SERVICE_CLIENT_KEY
constFORMAT
constFRAMEWORK_KEY
constFUNCTION_INJECT_KEY
constFUNC_KEY
constFileUtils
constFrameworkErrorEnum
constGUARD_KEY
constHTTP_SERVER_KEY
constIGNORE_PATTERN
constINJECT_CUSTOM_METHOD
constINJECT_CUSTOM_PARAM
constINJECT_CUSTOM_PROPERTY
constINJECT_TAG
constKEYS
静态参数
constLOGGER_KEY
constLoadBalancerType
负载均衡策略类型
Replaced by ConsumerSubscribeTopics