Categorygithub.com/lolizeppelin/micro
modulepackage
0.0.0-20241118092146-e14b3c000036
Repository: https://github.com/lolizeppelin/micro.git
Documentation: pkg.go.dev

# README

微服务框架,缝合来源

- go-micro

- pitaya

文件夹说明

  • breaker 熔断器
  • broker 异步推送(默认kafka)
  • breaker grpc客户端
  • codec 序列化工具
  • config 全局配置
  • errors 通用错误
  • log 日志
  • registry 注册服务
  • resolver
  • selector 选择器
  • tracing 链路追踪
  • transport grpc传输层
  • utils 通用工具

IDEA 设置

  • Ctrl+Shift+A 搜索Registry并点击
取消勾选下列值
go.run.processes.with.pty
terminal.use.conpty.on.windows

组件方法命名

1. 标准HTTP restful方法(不可以网关转发)

Get
List
Create
Update
Patch
Delete

2. 非标准HTTP方法,使用下述前缀,内部提取前缀后的字符串小写为方法名(不可以网关转发)

GET_
POST_
PUT_
PATCH_
DELETE_

3. 内部RPC,使用下述前缀,内部提取前缀后的字符串小写为方法名(不可以网关转发)

RPC_

4. 其他公开方法为外部RPC方法,统一POST请求(可以网关转发)

# Packages

No description provided by the author
No description provided by the author
Package client is an interface for an RPC client.
No description provided by the author
No description provided by the author
Package errors provides a way to return detailed information for an RPC request error.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Package transport is an interface for synchronous connection based communication.
No description provided by the author

# Functions

No description provided by the author
No description provided by the author
No description provided by the author

# Constants

No description provided by the author
No description provided by the author
No description provided by the author
限定 node.
No description provided by the author
No description provided by the author
认证头.
token范围.
token限定租户范围.

# Variables

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
ErrIPNotFound no IP address found, and explicit IP not provided.
No description provided by the author
node not found.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Structs

ComponentBase 通用组件继承 */.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Interfaces

Component 通用api组件 1.
Module is the interface that represent a module.
No description provided by the author
Request is the interface for a synchronous request used by Call or Stream.
Stream is the inteface for a bidirectional synchronous stream.
No description provided by the author

# Type aliases

No description provided by the author