Documentation
¶
Overview ¶
Package rest implements restful rpc protocol.
Index ¶
Constants ¶
View Source
const REST = "rest"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type RestExporter ¶
type RestExporter struct {
base.BaseExporter
}
RestExporter is the exporter implementation for REST protocol.
func NewRestExporter ¶
NewRestExporter returns a RestExporter
func (*RestExporter) UnExport ¶ added in v3.0.4
func (re *RestExporter) UnExport()
UnExport unexport the RestExporter
type RestInvoker ¶
type RestInvoker struct {
base.BaseInvoker
// contains filtered or unexported fields
}
RestInvoker invokes REST services using a RestClient and method mappings.
func NewRestInvoker ¶
func NewRestInvoker(url *common.URL, client *client.RestClient, restMethodConfig map[string]*config.RestMethodConfig) *RestInvoker
NewRestInvoker returns a RestInvoker
func (*RestInvoker) Invoke ¶
func (ri *RestInvoker) Invoke(ctx context.Context, inv base.Invocation) result.Result
Invoke is used to call service method by invocation
type RestProtocol ¶
type RestProtocol struct {
base.BaseProtocol
// contains filtered or unexported fields
}
RestProtocol implements base.Protocol for REST.
Click to show internal directories.
Click to hide internal directories.