msgenvelope

package
v1.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 16, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package msgenvelope @Title 数据信封 @Description 用于不同service之间的数据传递 @Author yr 2024/9/2 下午3:40 @Update yr 2024/9/2 下午3:40

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReleaseMsgEnvelope

func ReleaseMsgEnvelope(envelope inf.IEnvelope)

Types

type MsgEnvelope

type MsgEnvelope struct {
	def.DataRef
	// contains filtered or unexported fields
}

func NewMsgEnvelope

func NewMsgEnvelope() *MsgEnvelope

func (*MsgEnvelope) Done

func (e *MsgEnvelope) Done()

func (*MsgEnvelope) GetErrStr

func (e *MsgEnvelope) GetErrStr() string

func (*MsgEnvelope) GetError

func (e *MsgEnvelope) GetError() error

func (*MsgEnvelope) GetHeader

func (e *MsgEnvelope) GetHeader(key string) string

func (*MsgEnvelope) GetHeaders

func (e *MsgEnvelope) GetHeaders() def.Header

func (*MsgEnvelope) GetMethod

func (e *MsgEnvelope) GetMethod() string

func (*MsgEnvelope) GetReceiver

func (e *MsgEnvelope) GetReceiver() *actor.PID

func (*MsgEnvelope) GetReqId

func (e *MsgEnvelope) GetReqId() uint64

func (*MsgEnvelope) GetRequest

func (e *MsgEnvelope) GetRequest() interface{}

func (*MsgEnvelope) GetResponse

func (e *MsgEnvelope) GetResponse() interface{}

func (*MsgEnvelope) GetSender

func (e *MsgEnvelope) GetSender() *actor.PID

func (*MsgEnvelope) GetSenderClient

func (e *MsgEnvelope) GetSenderClient() inf.IRpcSender

func (*MsgEnvelope) GetTimeout

func (e *MsgEnvelope) GetTimeout() time.Duration

func (*MsgEnvelope) IsReply

func (e *MsgEnvelope) IsReply() bool

func (*MsgEnvelope) NeedCallback

func (e *MsgEnvelope) NeedCallback() bool

func (*MsgEnvelope) NeedResponse

func (e *MsgEnvelope) NeedResponse() bool

func (*MsgEnvelope) Reset

func (e *MsgEnvelope) Reset()

func (*MsgEnvelope) RunCompletions

func (e *MsgEnvelope) RunCompletions()

func (*MsgEnvelope) SetCallback

func (e *MsgEnvelope) SetCallback(cbs []def.CompletionFunc)

func (*MsgEnvelope) SetErrStr

func (e *MsgEnvelope) SetErrStr(err string)

func (*MsgEnvelope) SetError

func (e *MsgEnvelope) SetError(err error)

func (*MsgEnvelope) SetHeader

func (e *MsgEnvelope) SetHeader(key string, value string)

func (*MsgEnvelope) SetHeaders

func (e *MsgEnvelope) SetHeaders(header def.Header)

func (*MsgEnvelope) SetMethod

func (e *MsgEnvelope) SetMethod(method string)

func (*MsgEnvelope) SetNeedResponse

func (e *MsgEnvelope) SetNeedResponse(need bool)

func (*MsgEnvelope) SetReceiver

func (e *MsgEnvelope) SetReceiver(receiver *actor.PID)

func (*MsgEnvelope) SetReply

func (e *MsgEnvelope) SetReply()

func (*MsgEnvelope) SetReqId

func (e *MsgEnvelope) SetReqId(reqId uint64)

func (*MsgEnvelope) SetRequest

func (e *MsgEnvelope) SetRequest(req interface{})

func (*MsgEnvelope) SetResponse

func (e *MsgEnvelope) SetResponse(res interface{})

func (*MsgEnvelope) SetSender

func (e *MsgEnvelope) SetSender(sender *actor.PID)

func (*MsgEnvelope) SetSenderClient

func (e *MsgEnvelope) SetSenderClient(client inf.IRpcSender)

func (*MsgEnvelope) SetTimeout

func (e *MsgEnvelope) SetTimeout(timeout time.Duration)

func (*MsgEnvelope) ToProtoMsg

func (e *MsgEnvelope) ToProtoMsg() *actor.Message

func (*MsgEnvelope) Wait

func (e *MsgEnvelope) Wait()

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL