add SendWaitObj Fn

This commit is contained in:
2022-01-07 15:07:24 +08:00
parent 555bc3653e
commit 3964cd05b0
4 changed files with 22 additions and 5 deletions
+1
View File
@@ -12,6 +12,7 @@ type Client interface {
sendWait(msg TransferMsg, timeout time.Duration) (Message, error)
Send(key string, value MsgVal) error
SendWait(key string, value MsgVal, timeout time.Duration) (Message, error)
SendWaitObj(key string, value interface{}, timeout time.Duration) (Message, error)
SendCtx(ctx context.Context, key string, value MsgVal) (Message, error)
Reply(m Message, value MsgVal) error
ExchangeKey(newKey []byte) error