2 Star 1 Fork 1

mosache/YFrame

Create your Gitee Account
Explore and code with more than 12 million developers,Free private repositories !:)
Sign up
文件
Clone or Download
types.go 455 Bytes
Copy Edit Raw Blame History
ヤ沒脩袮兲︶ authored 2023-09-07 18:31 . temp
package registry
import (
"context"
"io"
)
type Registry interface {
Register(ctx context.Context, si ServiceInstance) error
UnRegister(ctx context.Context, si ServiceInstance) error
ListService(ctx context.Context, serviceName string) ([]ServiceInstance, error)
Subscribe(serviceName string) (<-chan Event, error)
io.Closer
}
type ServiceInstance struct {
Name string
Addr string
Weight uint32
Group string
}
type Event struct {
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/mosache/YFrame.git
git@gitee.com:mosache/YFrame.git
mosache
YFrame
YFrame
v0.1.64

Search