Documentation ¶
Overview ¶
Package injecterror provides chain elements returning given error on Request, Close on given times
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewClient ¶
func NewClient(opts ...Option) networkservice.NetworkServiceClient
NewClient returns a client chain element returning error on Close/Request on given times
func NewServer ¶
func NewServer(opts ...Option) networkservice.NetworkServiceServer
NewServer returns a server chain element returning error on Close/Request on given times
Types ¶
type Option ¶
type Option func(o *options)
Option is an option pattern for injectErrorClient/Server
func WithCloseErrorTimes ¶
WithCloseErrorTimes sets injectErrorClient/Server close error times
func WithRequestErrorTimes ¶
WithRequestErrorTimes sets injectErrorClient/Server request error times
Click to show internal directories.
Click to hide internal directories.