书栈网 · BookStack 本次搜索耗时 0.019 秒,为您找到 340 个相关结果.
  • 监控接口

    258 2022-08-10 《Kratos v2.4 教程》
    监控接口 接口实现 Counter Gauge Observer References 监控接口 接口实现 Kratos 暴露了三种监控接口,分别是 Counter, Gauge, Observer。 Counter type Counter interface { With ( lvs ... strin...
  • ecode

    789 2021-07-16 《Kratos v1.0 教程》
    ecode 背景 错误码之Codes 注册message Details 转换为ecode 判断 使用工具生成 ecode 背景 错误码一般被用来进行异常传递,且需要具有携带message 文案信息的能力。 错误码之Codes 在kratos 里,错误码被设计成Codes 接口,声明如下代码位置 : // Codes eco...
  • Contribution Guide

    Contribution Guide Reportings Bug or Fixing Bugs Adding new features How to submit code Conventional Commits type Main Other scope description body footer Examples Only c...
  • 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...
  • OpenAPI Swagger

    Method 1: Use plug-ins to provide the swagger API Installation Usage Method 2: Use protoc to generate swagger.json Installation Generation Usage The framework provides open...
  • 监控

    297 2022-08-10 《Kratos v2.4 教程》
    监控 配置 WithSeconds() WithRequests() 使用方式 使用 prometheus Server 中使用 metrics Client 中使用 metrics References 监控 Metrics 中间件用于实现服务的性能指标监控,统计了请求耗时和请求计数。 配置 Metrics 中间件中提供了两个...
  • 元信息传递

    715 2021-07-16 《Kratos v2.0 教程》
    默认格式规范 使用方式 注册 metadata 中间件 获取 metadata 字段的值 传递 metadata 微服务之间将会通过 HTTP 和 gRPC 进行接口交互,所以服务架构需要统一 Metadata 传递使用。 目前 gRPC 中也可以携带 Metadata 传递,原理是放到 HTTP Header 中,然后上游将会收到对应的 Met...
  • 核心贡献者

    111 2023-06-19 《Kratos v2.6 教程》
    核心贡献者 核心贡献者 在此感谢各位开发者对 Kratos 项目的贡献,以下是我们的核心贡献者:
  • gRPC

    gRPC Server Options Network(network string) ServerOption Address(addr string) ServerOption Timeout(timeout time.Duration) ServerOption Logger(logger log.Logger) ServerOption ...