2015-03-30 21:23:32 +00:00
|
|
|
package logical
|
|
|
|
|
|
|
|
import (
|
|
|
|
"crypto/tls"
|
|
|
|
)
|
|
|
|
|
|
|
|
// Connection represents the connection information for a request. This
|
|
|
|
// is present on the Request structure for credential backends.
|
|
|
|
type Connection struct {
|
|
|
|
// RemoteAddr is the network address that sent the request.
|
2017-02-16 20:15:02 +00:00
|
|
|
RemoteAddr string `json:"remote_addr"`
|
2015-03-30 21:23:32 +00:00
|
|
|
|
|
|
|
// ConnState is the TLS connection state if applicable.
|
|
|
|
ConnState *tls.ConnectionState
|
|
|
|
}
|