protocol_impl

package
v0.0.0-...-3a05b22 Latest Latest
Warning

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

Go to latest
Published: May 31, 2024 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultSchema = "http"
View Source
const IOCProtocolName = "ioc"

Variables

This section is empty.

Functions

func ParseArgs

func ParseArgs(argsType []reflect.Type, data []byte) (finalArgument []interface{}, err error)

ParseArgs @data should be []interface{}'s marshal result, @argsType should be each object's reflect type

Types

type IOCProtocol

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

IOCProtocol is ioc protocol impl

func GetIOCProtocol

func GetIOCProtocol(p *Param) (*IOCProtocol, error)

func (*IOCProtocol) Export

func (*IOCProtocol) Invoke

type IOCProtocolIOCInterface

type IOCProtocolIOCInterface interface {
	Invoke(invocation protocol.Invocation) protocol.Result
	Export(invoker protocol.Invoker) protocol.Exporter
}

func GetIOCProtocolIOCInterface

func GetIOCProtocolIOCInterface(p *Param) (IOCProtocolIOCInterface, error)

type Param

type Param struct {
	Address    string
	Timeout    string
	ExportPort string
}

func (*Param) Init

func (p *Param) Init(iocProtocol *IOCProtocol) (*IOCProtocol, error)

Jump to

Keyboard shortcuts

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