Documentation ¶
Overview ¶
*
- @Author: DollarKillerX
- @Description: redis 注册中心
- @Github: https://github.com/dollarkillerx
- @Date: Create in 上午10:01 2020/1/4
Index ¶
- func RedisInit()
- type Redis
- func (r *Redis) GetService(ctx context.Context, name string) (ser *registered.Service, err error)
- func (r *Redis) Init(ctx context.Context, set ...registered.SetOption) error
- func (r *Redis) Name() string
- func (r *Redis) Registry(ctx context.Context, node *registered.Node) (string, error)
- func (r *Redis) UnRegistry(ctx context.Context, node *registered.Node) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Redis ¶
type Redis struct {
// contains filtered or unexported fields
}
func (*Redis) GetService ¶
服务发现
func (*Redis) UnRegistry ¶
服务反注册
Click to show internal directories.
Click to hide internal directories.