Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // US West is the default: DefaultEndpoint = Endpoint{Hostname: conf.DefaultServerHost, SessionPrefix: ""} // List of Teleconsole proxy servers. Endpoints = []Endpoint{ DefaultEndpoint, {"eu.teleconsole.com", "eu"}, {"as.teleconsole.com", "as"}, } )
Functions ¶
func EndpointForSession ¶
EndpointForSession deterines which Teleconsole server generated a given session ID It looks at the prefix (first few bytes) of it.
Returns the endpoint (or "" for legacy sessions from teleconsole.com) and also returns the session ID without the prefix
func IsGeobalancedSession ¶
IsGeobalancedSession returns 'true' if the given session ID starts with a geo prefix
func SesionPrefixFor ¶
SessionPrefixFor finds a session prefix for a given endpoint
Types ¶
Click to show internal directories.
Click to hide internal directories.