Documentation ¶
Overview ¶
Package values provides a mechanism for specifying and selecting dynamic values employed by the Psiphon client and server.
Index ¶
- func GetContentType(PRNG *prng.PRNG) string
- func GetCookieName(PRNG *prng.PRNG) string
- func GetHostName() string
- func GetRevision() string
- func GetSSHClientVersion() string
- func GetSSHServerVersion(seed *prng.Seed) string
- func GetUserAgent() string
- func SetContentTypesSpec(spec *ValueSpec)
- func SetCookieNamesSpec(spec *ValueSpec)
- func SetHostNamesSpec(spec *ValueSpec)
- func SetRevision(rev string)
- func SetSSHClientVersionsSpec(spec *ValueSpec)
- func SetSSHServerVersionsSpec(spec *ValueSpec)
- func SetUserAgentsSpec(spec *ValueSpec)
- type PartSpec
- type ValueSpec
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetContentType ¶
GetContentType selects a value based on the previously set spec, or returns a default when no spec is set.
func GetCookieName ¶
GetCookieName selects a value based on the previously set spec, or returns a default when no spec is set.
func GetHostName ¶
func GetHostName() string
GetHostName selects a value based on the previously set spec, or returns a default when no spec is set.
func GetSSHClientVersion ¶
func GetSSHClientVersion() string
GetSSHClientVersion selects a value based on the previously set spec, or returns a default when no spec is set.
func GetSSHServerVersion ¶
GetSSHServerVersion selects a value based on the previously set spec, or returns a default when no spec is set.
func GetUserAgent ¶
func GetUserAgent() string
GetUserAgent selects a value based on the previously set spec, or returns a default when no spec is set.
func SetContentTypesSpec ¶
func SetContentTypesSpec(spec *ValueSpec)
SetContentTypesSpec sets the corresponding value spec.
func SetCookieNamesSpec ¶
func SetCookieNamesSpec(spec *ValueSpec)
SetCookieNamesSpec sets the corresponding value spec.
func SetHostNamesSpec ¶
func SetHostNamesSpec(spec *ValueSpec)
SetHostNamesSpec sets the corresponding value spec.
func SetRevision ¶
func SetRevision(rev string)
SetRevision set the revision value, which may be used to track which value specs are active. The revision is not managed by this package and must be set by the package user.
func SetSSHClientVersionsSpec ¶
func SetSSHClientVersionsSpec(spec *ValueSpec)
SetSSHClientVersionsSpec sets the corresponding value spec.
func SetSSHServerVersionsSpec ¶
func SetSSHServerVersionsSpec(spec *ValueSpec)
SetSSHServerVersionsSpec sets the corresponding value spec.
func SetUserAgentsSpec ¶
func SetUserAgentsSpec(spec *ValueSpec)
SetUserAgentsSpec sets the corresponding value spec.
Types ¶
type ValueSpec ¶
ValueSpec specifies a value selection space.
func DeobfuscateValueSpec ¶
DeobfuscateValueSpec reconstitutes an obfuscated spec.
func NewPickOneSpec ¶
NewPickOneSpec creates a simple spec to select one item from a list as a value.