open-vault/sdk/logical/connection.go

16 lines
411 B
Go
Raw Normal View History

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.
RemoteAddr string `json:"remote_addr"`
// ConnState is the TLS connection state if applicable.
2017-10-23 20:42:56 +00:00
ConnState *tls.ConnectionState `sentinel:""`
}