书栈网 · BookStack 本次搜索耗时 0.015 秒,为您找到 340 个相关结果.
  • 认证

    402 2022-04-18 《Kratos v2.2 教程》
    认证 使用方法 server client 配置Options WithSigningMethod() WithClaims() 简易Demo 获取用户信息 白名单参考方案 签发 JWT Token 认证 Auth 中间件用于认证请求。只有通过认证的请求才能被处理,结合 selector 中间件可实现白名单。目前提供基于J...
  • Ent

    Ent Install Ent Create Schema Create DB Connection Client References Ent Any ORM or library is supported in Kratos project for data accessing. Please refer to the examples ...
  • Metrics

    Metrics Configuration WithSeconds() WithRequests() Usage Prometheus To configure metrics in servers To configure metrics in clients References Metrics Metrics middlewa...
  • 核心贡献者

    237 2022-04-18 《Kratos v2.2 教程》
    核心贡献者 核心贡献者 在此感谢各位开发者对 Kratos 项目的贡献,以下是我们的核心贡献者:
  • OpenAPI Swagger 使用

    348 2022-08-10 《Kratos v2.4 教程》
    OpenAPI Swagger 使用 方式1: 使用插件提供swagger接口 安装 使用 方式2: 使用protoc插件生成swagger.json文件 安装 生成 使用 OpenAPI Swagger 使用 框架可通过两种方式提供OpenAPI/Swagger的使用:1. 在服务上提供swagger接口,2. 使用protoc插件生成...
  • 元信息传递

    307 2022-08-10 《Kratos v2.4 教程》
    元信息传递 默认格式规范 使用方式 注册元信息中间件 获取元信息字段的值 设置元信息字段的值 元信息传递 微服务之间通过 HTTP 和 gRPC API 进行接口交互,服务架构需要使用统一的元信息(Metadata)传输进行微服务间的传递。 目前 gRPC 中可以携带元信息传递,原理是将元信息放入 HTTP Header 中,这样上游即可收到...
  • Plugins

    Categories Service Discovery and Registration Logging Configuration Center Monitor API Document Kratos offers a range of plug-ins to help you enhance the functionality of mi...
  • 参数校验

    1221 2021-07-16 《Kratos v2.0 教程》
    安装工具 规则示例 数字类型 布尔类型 文本类型 消息体 生成代码 搭配中间件使用 http grpc References Validate 中间件使用 proto-gen-validate 生成后的代码进行参数校验,我们可以通过在 proto 中编写参数校验规则,然后生成代码,通过中间件自动的进行校验。 安装工具 在使用 v...
  • Transport

    Transport Transport 📄️ Overview The Kratos framework abstracts the transport layer, the developers can access the implementation through the implementation interface, and the ...
  • Plugins

    Plugins Categories Service Discovery and Registration Logging Configuration Center Monitor API Document Plugins Kratos offers a range of plug-ins to help you enhance the f...