invocation

package
v1.2.3 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2019 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithArguments

func WithArguments(arguments []interface{}) option

func WithAttachments

func WithAttachments(attachments map[string]string) option

func WithCallBack

func WithCallBack(callBack interface{}) option

func WithInvoker

func WithInvoker(invoker protocol.Invoker) option

func WithMethodName

func WithMethodName(methodName string) option

func WithParameterTypes

func WithParameterTypes(parameterTypes []reflect.Type) option

func WithReply

func WithReply(reply interface{}) option

Types

type RPCInvocation

type RPCInvocation struct {
	// contains filtered or unexported fields
}

/////////////////////////// Invocation Impletment of RPC /////////////////////////// todo: is it necessary to separate fields of consumer(provider) from RPCInvocation

func NewRPCInvocation

func NewRPCInvocation(methodName string, arguments []interface{}, attachments map[string]string) *RPCInvocation

func NewRPCInvocationWithOptions

func NewRPCInvocationWithOptions(opts ...option) *RPCInvocation

func (*RPCInvocation) Arguments

func (r *RPCInvocation) Arguments() []interface{}

func (*RPCInvocation) Attachments

func (r *RPCInvocation) Attachments() map[string]string

func (*RPCInvocation) AttachmentsByKey

func (r *RPCInvocation) AttachmentsByKey(key string, defaultValue string) string

func (*RPCInvocation) CallBack

func (r *RPCInvocation) CallBack() interface{}

func (*RPCInvocation) Invoker

func (r *RPCInvocation) Invoker() protocol.Invoker

func (*RPCInvocation) MethodName

func (r *RPCInvocation) MethodName() string

func (*RPCInvocation) ParameterTypes

func (r *RPCInvocation) ParameterTypes() []reflect.Type

func (*RPCInvocation) Reply

func (r *RPCInvocation) Reply() interface{}

func (*RPCInvocation) SetAttachments

func (r *RPCInvocation) SetAttachments(key string, value string)

func (*RPCInvocation) SetCallBack

func (r *RPCInvocation) SetCallBack(c interface{})

func (*RPCInvocation) SetInvoker

func (r *RPCInvocation) SetInvoker() protocol.Invoker

func (*RPCInvocation) SetReply

func (r *RPCInvocation) SetReply(reply interface{})

Jump to

Keyboard shortcuts

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