Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CredsRequirement ¶
type CredsRequirement int
CredsRequirement indicates whether a certificate is needed.
const ( // CredsRequire - Credentials/certificate required for thi type of connection. CredsRequire CredsRequirement = iota // CredsDrop - Credentials/certificate not needed and should get ignored. CredsDrop // CredsOptional - Credentials/certificate might be used if supplied CredsOptional )
func RequiresCredentials ¶
func RequiresCredentials(ep string) CredsRequirement
RequiresCredentials returns whether given endpoint requires credentials/certificates for connection.
Click to show internal directories.
Click to hide internal directories.