Documentation ¶
Overview ¶
Package injecterror provides chain elements returning given error on Register, Unregister on given times
Index ¶
- func NewNetworkServiceEndpointRegistryClient(opts ...Option) registry.NetworkServiceEndpointRegistryClient
- func NewNetworkServiceEndpointRegistryServer(opts ...Option) registry.NetworkServiceEndpointRegistryServer
- func NewNetworkServiceRegistryClient(opts ...Option) registry.NetworkServiceRegistryClient
- func NewNetworkServiceRegistryServer(opts ...Option) registry.NetworkServiceRegistryServer
- type Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewNetworkServiceEndpointRegistryClient ¶
func NewNetworkServiceEndpointRegistryClient(opts ...Option) registry.NetworkServiceEndpointRegistryClient
NewNetworkServiceEndpointRegistryClient returns a client chain element returning error on Register/Find/Unregister on given times
func NewNetworkServiceEndpointRegistryServer ¶
func NewNetworkServiceEndpointRegistryServer(opts ...Option) registry.NetworkServiceEndpointRegistryServer
NewNetworkServiceEndpointRegistryServer returns a server chain element returning error on Register/Find/Unregister on given times
func NewNetworkServiceRegistryClient ¶ added in v1.2.0
func NewNetworkServiceRegistryClient(opts ...Option) registry.NetworkServiceRegistryClient
NewNetworkServiceRegistryClient returns a client chain element returning error on Register/Find/Unregister on given times
func NewNetworkServiceRegistryServer ¶ added in v1.10.0
func NewNetworkServiceRegistryServer(opts ...Option) registry.NetworkServiceRegistryServer
NewNetworkServiceRegistryServer returns a server chain element returning error on Register/Find/Unregister on given times
Types ¶
type Option ¶
type Option func(o *options)
Option is an option pattern for injecterror package
func WithFindErrorTimes ¶
WithFindErrorTimes sets Find error times
func WithRegisterErrorTimes ¶
WithRegisterErrorTimes sets Register error times
func WithUnregisterErrorTimes ¶
WithUnregisterErrorTimes sets Unregister error times