Documentation ¶
Index ¶
- Constants
- Variables
- func GetGettyClientHandlerInstance() *gettyClientHandler
- func InitRpcClient(gettyConfig *config.Config, seataConfig *config.SeataConfig)
- type GettyRemoting
- func (g *GettyRemoting) GetMergedMessage(msgID int32) *message.MergedWarpMessage
- func (g *GettyRemoting) GetMessageFuture(msgID int32) *message.MessageFuture
- func (g *GettyRemoting) NotifyRpcMessageResponse(rpcMessage message.RpcMessage)
- func (g *GettyRemoting) RemoveMergedMessageFuture(msgID int32)
- func (g *GettyRemoting) RemoveMessageFuture(msgID int32)
- func (g *GettyRemoting) SendASync(msg message.RpcMessage, s getty.Session, callback callbackMethod) error
- func (g *GettyRemoting) SendSync(msg message.RpcMessage, s getty.Session, callback callbackMethod) (interface{}, error)
- type GettyRemotingClient
- type RpcClient
- type RpcPackageHandler
- type SeataV1PackageHeader
- type SessionManager
Constants ¶
View Source
const (
RpcRequestTimeout = 20 * time.Second
)
View Source
const (
Seatav1HeaderLength = 16
)
Variables ¶
Functions ¶
func GetGettyClientHandlerInstance ¶
func GetGettyClientHandlerInstance() *gettyClientHandler
func InitRpcClient ¶
func InitRpcClient(gettyConfig *config.Config, seataConfig *config.SeataConfig)
Types ¶
type GettyRemoting ¶
type GettyRemoting struct {
// contains filtered or unexported fields
}
func GetGettyRemotingInstance ¶
func GetGettyRemotingInstance() *GettyRemoting
func (*GettyRemoting) GetMergedMessage ¶
func (g *GettyRemoting) GetMergedMessage(msgID int32) *message.MergedWarpMessage
func (*GettyRemoting) GetMessageFuture ¶
func (g *GettyRemoting) GetMessageFuture(msgID int32) *message.MessageFuture
func (*GettyRemoting) NotifyRpcMessageResponse ¶
func (g *GettyRemoting) NotifyRpcMessageResponse(rpcMessage message.RpcMessage)
func (*GettyRemoting) RemoveMergedMessageFuture ¶
func (g *GettyRemoting) RemoveMergedMessageFuture(msgID int32)
func (*GettyRemoting) RemoveMessageFuture ¶
func (g *GettyRemoting) RemoveMessageFuture(msgID int32)
func (*GettyRemoting) SendASync ¶
func (g *GettyRemoting) SendASync(msg message.RpcMessage, s getty.Session, callback callbackMethod) error
func (*GettyRemoting) SendSync ¶
func (g *GettyRemoting) SendSync(msg message.RpcMessage, s getty.Session, callback callbackMethod) (interface{}, error)
type GettyRemotingClient ¶
type GettyRemotingClient struct {
// contains filtered or unexported fields
}
func GetGettyRemotingClient ¶
func GetGettyRemotingClient() *GettyRemotingClient
func (*GettyRemotingClient) SendAsyncRequest ¶
func (client *GettyRemotingClient) SendAsyncRequest(msg interface{}) error
func (*GettyRemotingClient) SendAsyncResponse ¶
func (client *GettyRemotingClient) SendAsyncResponse(msgID int32, msg interface{}) error
func (*GettyRemotingClient) SendSyncRequest ¶
func (client *GettyRemotingClient) SendSyncRequest(msg interface{}) (interface{}, error)
type SeataV1PackageHeader ¶
type SessionManager ¶
type SessionManager struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.