invocation

package
v1.4.2 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2020 License: Apache-2.0 Imports: 3 Imported by: 6 modules, 17 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithArguments

func WithArguments(arguments []interface{}) option

WithArguments ...

func WithAttachments added in v1.2.0

func WithAttachments(attachments map[string]string) option

WithAttachments ...

func WithCallBack added in v1.2.0

func WithCallBack(callBack interface{}) option

WithCallBack ...

func WithInvoker added in v1.2.0

func WithInvoker(invoker protocol.Invoker) option

WithInvoker ...

func WithMethodName

func WithMethodName(methodName string) option

WithMethodName ...

func WithParameterTypes

func WithParameterTypes(parameterTypes []reflect.Type) option

WithParameterTypes ...

func WithParameterValues added in v1.3.0

func WithParameterValues(parameterValues []reflect.Value) option

WithParameterValues ...

func WithReply added in v1.2.0

func WithReply(reply interface{}) option

WithReply ...

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) Arguments

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

Arguments ...

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) CallBack

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

CallBack ...

func (*RPCInvocation) Invoker

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

Invoker ...

func (*RPCInvocation) MethodName

func (r *RPCInvocation) MethodName() string

MethodName ...

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) Reply

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

Reply ...

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 ...

func (*RPCInvocation) SetReply

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

SetReply ...

Jump to

Keyboard shortcuts

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