rest

package
v1.4.0-rc2 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2020 License: Apache-2.0 Imports: 19 Imported by: 2 modules, 4 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

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