书栈网 · BookStack 本次搜索耗时 0.026 秒,为您找到 340 个相关结果.
  • 服务注册与发现

    558 2022-04-18 《Kratos v2.2 教程》
    服务注册与发现 接口实现 使用方式 注册服务实例 服务发现(gRPC) 服务注册与发现 接口实现 Registry 接口分为两个,Registrar 为实例注册和反注册,Discovery 为服务实例列表获取 type Registrar interface { // 注册实例 Register ( c...
  • Usage

    Usage Installation Project Creation Adding Proto files Generate Proto Codes Generate Service Codes Run project View Version Tool upgrade Changelog View help Usage Ins...
  • HTTP

    738 2022-08-10 《Kratos v2.4 教程》
    HTTP Server 配置 Network(network string) ServerOption Address(addr string) ServerOption Timeout(timeout time.Duration) ServerOption Logger(logger log.Logger) ServerOption Mid...
  • 安装

    921 2021-07-16 《Kratos v1.0 教程》
    安装 安装 1.安装protoc二进制文件 下载地址: https : //github.com/google/protobuf/releases mv bin / protoc / usr / local / bin / mv - r include / google / usr / local / include / 2.安...
  • 构建工具

    1555 2021-07-16 《Kratos v2.0 教程》
    安装 工具使用 版本 创建项目 添加 Proto 文件 生成 Proto 代码 生成 Service 代码 安装 go get - u github . com / go - kratos / kratos / cmd / kratos / v2@latest 工具使用 版本 查看工具版本: kratos - v ...
  • API Definition

    API Definition API Definition API Generation API Register References API Definition Kratos implements REST and gRPC as the transport protocols. We mainly follow the API Desi...
  • Routing and Load Balancing

    Routing and Load Balancing Interface Implementation How to use HTTP Client gRPC Client Routing and Load Balancing Interface Implementation The main interface for routing an...
  • 序列化

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

    Quick Start Version Environment Requirements Install Kratos tool 1. go install installation 2. Source code compilation and installation Project Creation Compilation and Runn...
  • Quick Start

    Quick Start Version Environment Requirements Install Kratos tool 1. go install installation 2. Source code compilation and installation Project Creation Compilation and Runn...