Documentation ¶
Index ¶
- Constants
- func RecoverError()
- type Node
- func (n *Node) AddModule(module string, factory module.ModuleFactory)
- func (n *Node) Call(moduleTag, method string, args ...interface{}) interface{}
- func (n *Node) InitRClient()
- func (n *Node) RegisterModules() error
- func (n *Node) RemoteCall(ctx context.Context, args *RemoteArgs, reply *RemoteReply) error
- func (n *Node) Send(moduleTag, method string, args ...interface{}) error
- func (n *Node) Start(nodeName string)
- type RemoteArgs
- type RemoteReply
Constants ¶
View Source
const ETCD_BASE_PATH = "/richgo_modules"
Variables ¶
This section is empty.
Functions ¶
func RecoverError ¶
func RecoverError()
Types ¶
type Node ¶
type Node struct {
// contains filtered or unexported fields
}
Node 在进程中只有一个,管理modules,存储配置等
func (*Node) InitRClient ¶
func (n *Node) InitRClient()
func (*Node) RemoteCall ¶
func (n *Node) RemoteCall(ctx context.Context, args *RemoteArgs, reply *RemoteReply) error
type RemoteArgs ¶
type RemoteArgs struct {
// contains filtered or unexported fields
}
type RemoteReply ¶
type RemoteReply struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.