Documentation ¶
Overview ¶
Package protocol provides defines APIs of protocol.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Unregister ¶
func Unregister(name string)
Unregister unregisters the protocol from the registry.
Types ¶
type AssertionBuilder ¶
AssertionBuilder builds the assertion for the result of Invoke.
type Invoker ¶
Invoker is the interface that sends the request and returns response sent from the server.
type Protocol ¶
type Protocol interface { Name() string UnmarshalRequest([]byte) (Invoker, error) UnmarshalExpect([]byte) (AssertionBuilder, error) }
Protocol is the interface that creates Invoker and AssertionBuilder from YAML.
type QueryOptionsProvider ¶ added in v0.17.0
type QueryOptionsProvider interface {
QueryOptions() []query.Option
}
QueryOptionsProvider is the interface that provides custom querying options.
Click to show internal directories.
Click to hide internal directories.