Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrFailedToGetSshCert = errors.New("failed to get ssh cert")
)
View Source
var ErrListenOnPort = errors.New("failed to listen on tcp port")
View Source
var ErrSessionDisconnected = errors.New("session disconnected")
Functions ¶
Types ¶
type Connection ¶
type Connection struct {
// contains filtered or unexported fields
}
func NewConnection ¶
func NewConnection(logger *zap.Logger, opts ...ConnectionOption) *Connection
func (*Connection) Close ¶
func (c *Connection) Close()
func (*Connection) IsClosed ¶
func (c *Connection) IsClosed() bool
type ConnectionOption ¶
type ConnectionOption func(*Connection)
func WithRetry ¶
func WithRetry(numOfRetry int) ConnectionOption
Click to show internal directories.
Click to hide internal directories.