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 {
protocol.BaseExporter
}
nolint
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 { protocol.BaseInvoker // contains filtered or unexported fields }
nolint
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, invocation protocol.Invocation) protocol.Result
Invoke is used to call service method by invocation
type RestProtocol ¶
type RestProtocol struct { protocol.BaseProtocol // contains filtered or unexported fields }
nolint
Click to show internal directories.
Click to hide internal directories.