Documentation ¶
Overview ¶
Package invoke .
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewIvkTransHandlerFactory ¶
func NewIvkTransHandlerFactory() remote.ServerTransHandlerFactory
NewIvkTransHandlerFactory creates a ServerTransHandlerFactory for invoker.
Types ¶
type Handler ¶
Handler is used to Call a Message.
func NewIvkHandler ¶
func NewIvkHandler(opt *remote.ServerOption, transHdlr remote.ServerTransHandler) (Handler, error)
NewIvkHandler creates a invoker handler.
type Message ¶
type Message interface { net.Conn PayloadHandler }
Message is the core abstraction.
func NewMessage ¶
NewMessage creates a new Message using the given net.addr.
type PayloadHandler ¶
type PayloadHandler interface { SetRequestBytes(buf []byte) error GetResponseBytes() ([]byte, error) GetRequestReaderByteBuffer() remote.ByteBuffer GetResponseWriterByteBuffer() remote.ByteBuffer Release() error }
PayloadHandler is used to operate the payload.
Click to show internal directories.
Click to hide internal directories.