Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( MessageMockMarshalProxyContext = func() (pctx inject.ProxyContext) { pctx = messageMockCommonProxyContext pctx.MethodName = "Marshal" return }() MessageMockUnmarshalProxyContext = func() (pctx inject.ProxyContext) { pctx = messageMockCommonProxyContext pctx.MethodName = "Unmarshal" return }() )
View Source
var (
ConsumerMockConsumeProxyContext = func() (pctx inject.ProxyContext) {
pctx = consumerMockCommonProxyContext
pctx.MethodName = "Consume"
return
}()
)
View Source
var (
ProducerMockProduceProxyContext = func() (pctx inject.ProxyContext) {
pctx = producerMockCommonProxyContext
pctx.MethodName = "Produce"
return
}()
)
View Source
var (
ReceiptMockStringProxyContext = func() (pctx inject.ProxyContext) {
pctx = receiptMockCommonProxyContext
pctx.MethodName = "String"
return
}()
)
View Source
var (
TopicMockNameProxyContext = func() (pctx inject.ProxyContext) {
pctx = topicMockCommonProxyContext
pctx.MethodName = "Name"
return
}()
)
Functions ¶
func RegisterProxyMethod ¶
func RegisterProxyMethod(pctx inject.ProxyContext, cf inject.CtxFunc)
Types ¶
type ConsumerMock ¶
type MemMessage ¶
func (*MemMessage[T]) Marshal ¶
func (msg *MemMessage[T]) Marshal() ([]byte, error)
func (*MemMessage[T]) Unmarshal ¶
func (msg *MemMessage[T]) Unmarshal(data []byte) error
type MemReceipt ¶
type MemReceipt struct {
Id string `json:"id"`
}
func (*MemReceipt) String ¶
func (receipt *MemReceipt) String() string
type MessageMock ¶
func (*MessageMock) Marshal ¶
func (mockRecv *MessageMock) Marshal() ([]byte, error)
func (*MessageMock) Unmarshal ¶
func (mockRecv *MessageMock) Unmarshal(p0 []byte) error
type ProducerMock ¶
type Queue ¶
type ReceiptMock ¶
type ReceiptMock struct {
StringFunc func() string
}
func (*ReceiptMock) String ¶
func (mockRecv *ReceiptMock) String() string
Click to show internal directories.
Click to hide internal directories.