Documentation
¶
Index ¶
- func WithArguments(arguments []interface{}) option
- func WithAttachments(attachments map[string]string) option
- func WithCallBack(callBack interface{}) option
- func WithInvoker(invoker protocol.Invoker) option
- func WithMethodName(methodName string) option
- func WithParameterTypes(parameterTypes []reflect.Type) option
- func WithParameterValues(parameterValues []reflect.Value) option
- func WithReply(reply interface{}) option
- type RPCInvocation
- func (r *RPCInvocation) Arguments() []interface{}
- func (r *RPCInvocation) Attachments() map[string]string
- func (r *RPCInvocation) AttachmentsByKey(key string, defaultValue string) string
- func (r *RPCInvocation) CallBack() interface{}
- func (r *RPCInvocation) Invoker() protocol.Invoker
- func (r *RPCInvocation) MethodName() string
- func (r *RPCInvocation) ParameterTypes() []reflect.Type
- func (r *RPCInvocation) ParameterValues() []reflect.Value
- func (r *RPCInvocation) Reply() interface{}
- func (r *RPCInvocation) SetAttachments(key string, value string)
- func (r *RPCInvocation) SetCallBack(c interface{})
- func (r *RPCInvocation) SetInvoker() protocol.Invoker
- func (r *RPCInvocation) SetReply(reply interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithAttachments ¶ added in v1.2.0
WithAttachments ...
func WithInvoker ¶ added in v1.2.0
WithInvoker ...
func WithParameterTypes ¶
WithParameterTypes ...
func WithParameterValues ¶ added in v1.3.0
WithParameterValues ...
Types ¶
type RPCInvocation ¶
type RPCInvocation struct {
// contains filtered or unexported fields
}
todo: is it necessary to separate fields of consumer(provider) from RPCInvocation RPCInvocation ...
func NewRPCInvocation ¶ added in v1.2.0
func NewRPCInvocation(methodName string, arguments []interface{}, attachments map[string]string) *RPCInvocation
NewRPCInvocation ...
func NewRPCInvocationWithOptions ¶
func NewRPCInvocationWithOptions(opts ...option) *RPCInvocation
NewRPCInvocationWithOptions ...
func (*RPCInvocation) Attachments ¶
func (r *RPCInvocation) Attachments() map[string]string
Attachments ...
func (*RPCInvocation) AttachmentsByKey ¶
func (r *RPCInvocation) AttachmentsByKey(key string, defaultValue string) string
AttachmentsByKey ...
func (*RPCInvocation) ParameterTypes ¶
func (r *RPCInvocation) ParameterTypes() []reflect.Type
ParameterTypes ...
func (*RPCInvocation) ParameterValues ¶ added in v1.3.0
func (r *RPCInvocation) ParameterValues() []reflect.Value
ParameterValues ...
func (*RPCInvocation) SetAttachments ¶
func (r *RPCInvocation) SetAttachments(key string, value string)
SetAttachments ...
func (*RPCInvocation) SetCallBack ¶
func (r *RPCInvocation) SetCallBack(c interface{})
SetCallBack ...
func (*RPCInvocation) SetInvoker ¶
func (r *RPCInvocation) SetInvoker() protocol.Invoker
SetInvoker ...
Click to show internal directories.
Click to hide internal directories.