书栈网 · BookStack 本次搜索耗时 0.022 秒,为您找到 341 个相关结果.
  • testgen UT代码自动生成器

    968 2021-07-16 《Kratos v1.0 教程》
    testgen UT代码自动生成器 功能和特性 编译安装 Method 1. With go get Method 2. Build with Go 运行 生成Dao/Service层单元UT 生成接口类型 生成Mock代码 生成Monkey代码 testgen UT代码自动生成器 解放你的双手,让你的UT一步到位! 功能和特...
  • hbase

    359 2021-07-16 《Kratos v1.0 教程》
    database/hbase 说明 配置 使用方式 database/hbase 说明 Hbase Client,进行封装加入了链路追踪和统计。 配置 需要指定hbase集群的zookeeper地址。 config := & hbase . Config { Zookeeper : & hbase . ZKConfig {...
  • 应用配置

    1509 2021-07-16 《Kratos v2.0 教程》
    通过 proto 定义配置 配置文件 proto 声明 使用方式 在 Kratos 项目中,配置源可以指定多个,并且 config 会进行合并成 key/value 。 然后用户通过 Scan 或者 Value 获取对应键值内容,主要功能特性: 默认实现了本地文件数据源。 用户可以自定义数据源实现。 支持配置热加载,以及通过 Atomic 方式...
  • Logging

    Logging Usage gRPC server gRPC client HTTP client Use in the project grpc-server internal/server/grpc.go Logging Logging middleware is used to print the details of request...
  • Logging

    Logging Usage gRPC server gRPC client HTTP client grpc-server Logging Logging middleware is used to print the details of requests received or initiated by the service. Us...
  • User Guide

    User Guide User Guide 📄️ Protobuf Guideline This documentation is the guideline of Protobuf definition which recommended in Kratos project. 📄️ OpenAPI Swagger OpenAPI Swagg...
  • Authentication

    Authentication Usage server client Options WithSigningMethod() WithClaims() Example Extract Users’ Information White List Demo Generate JWT Token Authentication Aut...
  • 简介

    580 2022-04-18 《Kratos v2.2 教程》
    简介 Goals Principles Features Architecture Related Community WeChat License Contributors 简介 Kratos 一套轻量级 Go 微服务框架,包含大量微服务相关框架及工具。 名字来源于:《战神》游戏以希腊神话为背景,讲述奎托斯(Kratos)由凡人...
  • 配置

    585 2022-08-10 《Kratos v2.4 教程》
    配置 设计理念 1.支持多种配置源 2.支持多种配置格式 3.热更新 4.配置合并 使用 1.初始化配置源 2.读取配置 3.监听配置变更 4.读取环境变量 5.配置解析Decoder 6.配置处理Resolver 7.支持其它格式的配置文件 kratos-layout 理念 1.项目结构 2.配置生成命令 3.使用Protob...
  • Logging

    Logging Usage gRPC server gRPC client HTTP client Use in the project grpc-server internal/server/grpc.go Logging Logging middleware is used to print the details of request...