书栈网 · BookStack 本次搜索耗时 0.020 秒,为您找到 340 个相关结果.
  • 创建项目

    1427 2021-07-16 《Kratos v2.0 教程》
    版本需求 环境准备 安装 go get 安装 go install 安装 源码编译安装 创建项目 项目编译和运行 测试接口 项目模板 版本需求 需要使用 kratos v2.0.0 以上版本; 环境准备 需要安装好对应的依赖环境,以及工具: go protoc protoc-gen-go 建议开启GO111MODU...
  • Overview

    Overview Built-in Middleware Effective Sequence Usage Modify Middleware Custom Middleware Overview Kratos has a series of built-in middleware to deal with common purpose su...
  • Metrics

    Metrics Interface Counter Gauge Observer Usage Metrics in server Metrics in Client References Metrics Interface Counter , Gauge , Observer are the three major metric i...
  • Usage

    Installation Tool Usage Version Project Creation Adding Proto files Generate Proto Codes Generate Service Codes Installation go get - u github . com / go - kratos / kr...
  • 序列化

    733 2021-07-16 《Kratos v2.0 教程》
    接口实现 实现示例 使用方式 注册 Codec 获取 Codec 序列化 反序列化 我们抽象出了Codec 接口,用于统一处理请求的序列化/反序列化逻辑,您也可以实现您自己的Codec以便支持更多格式。具体源代码在encoding 。 目前内置支持了如下格式: json protobuf xml yaml 接口实现 encodin...
  • Registry

    Registry Interface Usage Register a Service Service Discovery (gRPC) Registry Interface Registry has two interface, the Registrar is for services’ register and deregister, ...
  • Dependency Injection

    Dependency Injection Installation Terms Usage Component Initialization References Dependency Injection Wire is a compile-time dependency injection tool. It is recommended...
  • Introduction

    Introduction Introduction 📄️ Overview Kratos is a framework upon the lightweight microservices implemented by Golang, which offers convenient capabilities to help you quickly ...
  • CLI工具

    587 2022-08-10 《Kratos v2.4 教程》
    CLI工具 安装 创建项目 添加 Proto 文件 生成 Proto 代码 生成 Service 代码 运行项目 查看版本 工具升级 更新日志 查看帮助 CLI工具 安装 go install github . com / go - kratos / kratos / cmd / kratos / v2@latest 创建...
  • FAQ

    google/protobuf/descriptor.proto: File not found. error while using kratos proto command. IDE中import “google/api/annotations.proto”;等proto文件有错误提示(被画波浪线) 如何使用 goland 进行开发 新版本发布...