package
1.1.0
Repository: https://github.com/escanbe/go-lib.git
Documentation: pkg.go.dev

# Functions

NewCancellationTokenSource returns an instance of CancellationTokenSource which returns always return false when ask for IsExpired, but you can cancel it by calling RequestCancellation.
NewCancellationTokenSourceWithExpiry returns an instance of CancellationTokenSource which returns true when ask for IsExpired after specific time passed Default counter will be infinite.
No description provided by the author
NewCancellationTokenSourceWithTimeoutDuration returns an instance of CancellationTokenSource which returns true when ask for IsExpired after amount of time passed Default counter will be infinite.
No description provided by the author
NewCancellationTokenSourceWithTimeoutMilliseconds returns an instance of CancellationTokenSource which returns true when ask for IsExpired after amount of time passed Default counter will be infinite.
No description provided by the author
NewCancellationTokenSourceWithTimeoutSeconds returns an instance of CancellationTokenSource which returns true when ask for IsExpired after amount of time passed Default counter will be infinite.
No description provided by the author
NewSshAuthByPrivateKey returns an instance which holds target endpoint auth information.
NewSshRemoteEndpoint returns a SshRemote instance with endpoint info and supplied auth type if any.

# Structs

CancellationToken is child of CancellationTokenSource, it can check if the parent token source is expired.
CancellationTokenSource holds an expiry condition, you can either provide expiry time and/or reduce counter or manually cancel it via RequestCancellation method.
SshAuthPrivateKey holds target endpoint auth information.
SshRemote holds target endpoint information.