Documentation ¶
Index ¶
Constants ¶
View Source
const (
// FILTER is protocol key.
FILTER = "filter"
)
Variables ¶
This section is empty.
Functions ¶
func BuildInvokerChain ¶
func NewMockProtocolFilter ¶
NewMockProtocolFilter creates a new mock protocol
Types ¶
type FilterInvoker ¶
type FilterInvoker struct {
// contains filtered or unexported fields
}
FilterInvoker defines invoker and filter
func (*FilterInvoker) GetURL ¶
func (fi *FilterInvoker) GetURL() *common.URL
GetURL is used to get url from FilterInvoker
func (*FilterInvoker) Invoke ¶
func (fi *FilterInvoker) Invoke(ctx context.Context, invocation protocol.Invocation) protocol.Result
Invoke is used to call service method by invocation
func (*FilterInvoker) IsAvailable ¶
func (fi *FilterInvoker) IsAvailable() bool
IsAvailable is used to get available status
type ProtocolFilterWrapper ¶
type ProtocolFilterWrapper struct {
// contains filtered or unexported fields
}
ProtocolFilterWrapper protocol in url decide who ProtocolFilterWrapper.protocol is
func (*ProtocolFilterWrapper) Destroy ¶
func (pfw *ProtocolFilterWrapper) Destroy()
Destroy will destroy all invoker and exporter.
Click to show internal directories.
Click to hide internal directories.