class EndpointDataSource
cangjie
public abstract class EndpointDataSource <: Equatable<EndpointDataSource> & Hashable功能:表示可提供端点集合的数据源。
父类型:
- Equatable<EndpointDataSource>
Hashable
成员概览
| 成员 | 功能 |
|---|---|
| prop endpoints | 返回当前数据源暴露的端点列表。 |
| func getGroupedEndpoints(RouteGroupContext) | 为路由组生成端点列表。 |
| func ==(EndpointDataSource) | - |
| func hashCode() | 返回当前数据源实例的哈希码。 |
prop endpoints
cangjie
public prop endpoints: ReadOnlyList<Endpoint>功能:返回当前数据源暴露的端点列表。
类型:ReadOnlyList<Endpoint>
func getGroupedEndpoints(RouteGroupContext)
cangjie
public open func getGroupedEndpoints(context: RouteGroupContext): ReadOnlyList<Endpoint>功能:为路由组生成端点列表。
默认实现会合并路由组前缀与每个 RouteEndpoint 的路由模式,不应用构建阶段约定。
参数:
- context: RouteGroupContext - 路由组上下文。
返回值:
- ReadOnlyList<Endpoint> - 路由组对应的端点列表。
func ==(EndpointDataSource)
cangjie
public operator func ==(that: EndpointDataSource)参数:
- that: EndpointDataSource
func hashCode()
cangjie
public func hashCode(): Int64功能:返回当前数据源实例的哈希码。
返回值:
Int64- 当前实例的哈希码。