Documentation ¶
Index ¶
- Constants
- Variables
- func GenerateSimpleMessage(msg string, errorMsg string) string
- func RequestServer(host, transport string, port, timeout int, statics map[string]http.Handler, ...)
- func Respond(mediaType string, charset string, ...) http.HandlerFunc
- func SearchPersonPublicKeys(r *http.Request, db database.DBConnection) string
- type Server
- type SimpleMessage
Constants ¶
View Source
const ( INVALID_REQUEST = "Invalid Request" INVALID_SESSION = "Session is expired or invalid" MISSING_PARAMETER = "Missing required parameter" )
Variables ¶
View Source
var ( Srv *Server DefaultServerReadTimeout = 30 // in seconds DefaultServerTransport = "tcp" )
Functions ¶
func GenerateSimpleMessage ¶
func RequestServer ¶
func Respond ¶
func Respond(mediaType string, charset string, fn func(w http.ResponseWriter, r *http.Request) string) http.HandlerFunc
func SearchPersonPublicKeys ¶
func SearchPersonPublicKeys(r *http.Request, db database.DBConnection) string
Respond to an ajax request: return all the public keys for this email, on behalf of the particular registered person, with a valid session
Types ¶
type SimpleMessage ¶
Click to show internal directories.
Click to hide internal directories.