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

    634 2021-07-16 《Kratos v2.0 教程》
    接口实现 Counter Gauge Observer References 接口实现 Kratos 暴露了三种监控接口,分别是 Counter, Gauge, Observer。 Counter type Counter interface { With ( lvs ... string ) Counte...
  • User Guide

    📄️ Protobuf Guideline This documentation is the guideline of Protobuf definition which recommended in Kratos project. 📄️ OpenAPI Swagger OpenAPI Swagger 📄️ Dependency Inje...
  • Logger

    Interface Implementation Implement logger Implement valuer Usage Print log with Logger Print log with Helper Add some default fields with Valuer Log to multiple loggers Bin...
  • bm quickstart

    522 2021-07-16 《Kratos v1.0 教程》
    路由 Ping 默认路由 路径参数 性能分析 扩展阅读 路由 进入internal/server/http 目录下,打开http.go 文件,其中有默认生成的blademaster 模板。其中: engine = bm . DefaultServer ( hc . Server ) initRouter ( engine ) ...
  • Protobuf 规范

    316 2023-06-19 《Kratos v2.6 教程》
    Protobuf 规范 目录结构 包名 go_package java_package objc_class_prefix Version Import 命名规范 目录结构 文件结构 Message 和 字段命名 Repeated 字段 枚举 Enums 服务 Services Comment Examples Referen...
  • 日志接口

    1211 2021-07-16 《Kratos v2.0 教程》
    接口实现 如何实现 实现 logger 实现 valuer 使用方式 使用 Logger 打印日志 使用 Helper 打印日志 使用 valuer 同时打印多个 logger 使用 context 使用 filter 过滤日志 通过 level 过滤日志 通过 key 过滤日志 通过 value 过滤日志 通过 hook func ...
  • 项目结构

    1537 2021-07-16 《Kratos v2.0 教程》
    推荐阅读 我们创建了 kratos-layout 作为使用 kratos new 新建项目时所使用结构,其中包括了开发过程中所需的配套工具链( Makefile 等),便于开发者更高效地维护整个项目,本项目亦可作为使用 Kratos 构建微服务的工程化最佳实践的参考。 使用如下命令即可基于 kratos-layout 创建项目: krato...
  • Config

    Config Define configuration through proto Configuration file Proto declaration Build configuration Usage Config In the Kratos project, multiple configuration sources can be...
  • 项目结构

    447 2023-06-19 《Kratos v2.6 教程》
    项目结构 推荐阅读 项目结构 我们创建了 kratos-layout 作为使用 kratos new 新建项目时所使用结构,其中包括了开发过程中所需的配套工具链( Makefile 等),便于开发者更高效地维护整个项目,本项目亦可作为使用 Kratos 构建微服务的工程化最佳实践的参考。 使用如下命令即可基于 kratos-layout 创...
  • Config

    Config Define configuration through proto Configuration file Proto declaration Build configuration Usage Config In the Kratos project, multiple configuration sources can be...