Documentation ¶
Index ¶
- func Start(executeHandler interface{}, prepareHandler interface{}, ...)
- func StartExecute(executeHandler interface{})
- type ClientCaller
- func (c *ClientCaller) Commit(request common.RpcReqComponent) (resp common.RpcResComponent)
- func (c *ClientCaller) Execute(request common.RpcReqComponent) (resp common.RpcResComponent)
- func (c *ClientCaller) Prepare(request common.RpcReqComponent) (resp common.RpcResComponent)
- func (c *ClientCaller) Rollback(request common.RpcReqComponent) (resp common.RpcResComponent)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Start ¶
func Start(executeHandler interface{}, prepareHandler interface{}, commitHandler interface{}, rollbackHandler interface{})
服务启动
func StartExecute ¶
func StartExecute(executeHandler interface{})
Types ¶
type ClientCaller ¶
type ClientCaller struct {
// contains filtered or unexported fields
}
Here is a real implementation of Greeter
func (*ClientCaller) Commit ¶
func (c *ClientCaller) Commit(request common.RpcReqComponent) (resp common.RpcResComponent)
func (*ClientCaller) Execute ¶
func (c *ClientCaller) Execute(request common.RpcReqComponent) (resp common.RpcResComponent)
func (*ClientCaller) Prepare ¶
func (c *ClientCaller) Prepare(request common.RpcReqComponent) (resp common.RpcResComponent)
func (*ClientCaller) Rollback ¶
func (c *ClientCaller) Rollback(request common.RpcReqComponent) (resp common.RpcResComponent)
Click to show internal directories.
Click to hide internal directories.