Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Provider ¶
type Provider struct {
// contains filtered or unexported fields
}
Provider provides the ability to make requests to a backend through a pool of connections. This package does not provide goroutines on top of connections; if you make multiple calls to ReadFile in a single goroutine, it's basically the same thing as calling ReadFile on a connection in serial. What this package does provide is a guarantee that if you call ReadFile from multiple goroutines, no two concurrent calls will share the same connection.
func NewProvider ¶
NewProvider creates a new instance of a Provider
func (*Provider) ReadDir ¶
ReadDir acquires a connection from the connection pool and calls ReadDir on the acquired SFTP connection.
Click to show internal directories.
Click to hide internal directories.