Documentation ¶
Overview ¶
Package injecterror provides chain elements returning given error on Register, Unregister on given times
Index ¶
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
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
Click to show internal directories.
Click to hide internal directories.