Documentation ¶
Overview ¶
Package cleanup provides networkservice.NetworkService chain elements to clean up resources before termination
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewClient ¶
func NewClient(ctx context.Context, opts ...Option) networkservice.NetworkServiceClient
NewClient - returns a cleanup client chain element
Types ¶
type Option ¶
type Option func(*options)
Option - options for the cleanup chain element
func WithDoneChan ¶
func WithDoneChan(doneCh chan struct{}) Option
WithDoneChan - receives a channel to notify the end of cleaning
func WithoutGRPCCall ¶
func WithoutGRPCCall() Option
WithoutGRPCCall - closes client connection to prevent calling requests/closes on other endpoints
Click to show internal directories.
Click to hide internal directories.