rest

package
v1.4.0-rc8 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2020 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const REST = "rest"

Variables

This section is empty.

Functions

func GetRestProtocol

func GetRestProtocol() protocol.Protocol

Types

type RestExporter

type RestExporter struct {
	protocol.BaseExporter
}

func NewRestExporter

func NewRestExporter(key string, invoker protocol.Invoker, exporterMap *sync.Map) *RestExporter

func (*RestExporter) Unexport

func (re *RestExporter) Unexport()

type RestInvoker

type RestInvoker struct {
	protocol.BaseInvoker
	// contains filtered or unexported fields
}

func NewRestInvoker

func NewRestInvoker(url common.URL, client *client.RestClient, restMethodConfig map[string]*config.RestMethodConfig) *RestInvoker

func (*RestInvoker) Invoke

func (ri *RestInvoker) Invoke(ctx context.Context, invocation protocol.Invocation) protocol.Result

type RestProtocol

type RestProtocol struct {
	protocol.BaseProtocol
	// contains filtered or unexported fields
}

func NewRestProtocol

func NewRestProtocol() *RestProtocol

func (*RestProtocol) Destroy

func (rp *RestProtocol) Destroy()

func (*RestProtocol) Export

func (rp *RestProtocol) Export(invoker protocol.Invoker) protocol.Exporter

func (*RestProtocol) Refer

func (rp *RestProtocol) Refer(url common.URL) protocol.Invoker

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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