Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var TrustLevelValues = []string{"proxy", "client", "connection"}
Functions ¶
func SecureCompare ¶
SecureCompare performs a constant time compare of two strings to limit timing attacks. https://go.dev/play/p/NU5uTaB-sp
Types ¶
type Config ¶
type Portal ¶
type Portal struct {
// contains filtered or unexported fields
}
func (*Portal) TrustLevel ¶
func (p *Portal) TrustLevel() TrustLevel
type Request ¶
type TrustLevel ¶
type TrustLevel string
const ( ProxyTrustLevel TrustLevel = "proxy" ClientTrustLevel TrustLevel = "client" ConnectionTrustLevel TrustLevel = "connection" )
func (*TrustLevel) Set ¶
func (t *TrustLevel) Set(s string) error
Set updates the value of the trust level.
func (TrustLevel) String ¶
func (t TrustLevel) String() string
Source Files ¶
Click to show internal directories.
Click to hide internal directories.