16 lines
256 B
Go
16 lines
256 B
Go
package connector
|
|
|
|
import (
|
|
"context"
|
|
"errors"
|
|
"net"
|
|
)
|
|
|
|
var (
|
|
ErrBindUnsupported = errors.New("bind unsupported")
|
|
)
|
|
|
|
type Binder interface {
|
|
Bind(ctx context.Context, conn net.Conn, network, address string, opts ...BindOption) (net.Listener, error)
|
|
}
|