Documentation ¶
Index ¶
- func GetClient() client.IClient
- func GetServer() interface{}
- func Mailbox() mailbox.IMailbox
- func Tracer() tracer.ITracer
- type Braid
- type Module
- func Client(builderName string, opts ...interface{}) Module
- func Discover(builderName string, opts ...interface{}) Module
- func Elector(builderName string, opts ...interface{}) Module
- func LinkCache(builderName string, opts ...interface{}) Module
- func Server(builderName string, opts ...interface{}) Module
- func Tracing(builderName string, opts ...interface{}) Module
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Braid ¶ added in v1.1.3
type Braid struct {
// contains filtered or unexported fields
}
Braid framework instance
func (*Braid) RegistModule ¶ added in v1.2.6
RegistModule 注册模块
type Module ¶ added in v1.2.6
type Module func(*Braid)
Module wraps
func Discover ¶
Discover 服务发现模块,提供以下异步消息
discover.AddService 发现新的服务 discover.RmvService 某个服务下线 discover.UpdateService 更新某个服务的权重信息
Click to show internal directories.
Click to hide internal directories.