invoke

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2021 License: Apache-2.0 Imports: 9 Imported by: 2

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

type Handler interface {
	Call(Message) error
}

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

func NewMessage(local, remote net.Addr) Message

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.

Jump to

Keyboard shortcuts

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