Documentation ¶
Index ¶
Constants ¶
View Source
const BufConnType = "bufconn"
Variables ¶
This section is empty.
Functions ¶
func TLSConfig ¶ added in v1.5.0
func TLSConfig( l *configutil.Listener, props map[string]string, ui cli.Ui) (*tls.Config, reloadutil.ReloadFunc, error)
func UnixSocketListener ¶
func UnixSocketListener(path string, unixSocketsConfig *UnixSocketsConfig) (net.Listener, error)
Types ¶
type BufConnWrapper ¶ added in v1.9.0
type BufConnWrapper struct {
// contains filtered or unexported fields
}
BufConnWrapper implements consul-template's TransportDialer using a bufconn listener, to provide a way to Dial the in-memory listener
func NewBufConnWrapper ¶ added in v1.9.0
func NewBufConnWrapper(bcl *bufconn.Listener) *BufConnWrapper
NewBufConnWrapper returns a new BufConnWrapper using an existing bufconn.Listener
func (*BufConnWrapper) Dial ¶ added in v1.9.0
func (bcl *BufConnWrapper) Dial(_, _ string) (net.Conn, error)
Dial connects to the listening end of the bufconn (satisfies consul-template's TransportDialer interface). This is essentially the client side of the bufconn connection.
func (*BufConnWrapper) DialContext ¶ added in v1.9.0
DialContext connects to the listening end of the bufconn (satisfies consul-template's TransportDialer interface). This is essentially the client side of the bufconn connection.
type UnixSocketsConfig ¶
Click to show internal directories.
Click to hide internal directories.