Discover Packages
github.com/psimika/secure-web-app
web
package
Version:
v0.0.0-...-42776a7
Opens a new window with list of versions in this module.
Published: Sep 3, 2017
License: MIT
Opens a new window with license information.
Imports: 21
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Jump to ...
Documentation
Index
Constants
Variables
Functions
NewGitHubOAuthConfig(clientID, clientSecret)
NewLinkedInOAuthConfig(clientID, clientSecret, redirectURL)
NewServer(store, sessionStore, sessionTTL, sessionMaxTTL, CSRF, templatePath, photoStore, ...)
Types
Source Files
Documentation
Documentation
¶
func NewServer(
store petfind .Store ,
sessionStore sessions .Store ,
sessionTTL int ,
sessionMaxTTL int ,
CSRF func(http .Handler ) http .Handler ,
templatePath string ,
photoStore petfind .PhotoStore ,
githubOAuth *oauth2 .Config ,
linkedinOAuth *oauth2 .Config ,
) (http .Handler , error )
NewServer initializes and returns a new HTTP server.
sessionTTL is used to extend the session's idle timeout.
sessionMaxTTL is used to check if a session has expired by surpassing its
absolute timeout.
Error can be returned by the handlers of application's HTTP server.
E constructs an *Error and can be used as a shorthand when a handler returns
an *Error.
type LinkedinError struct {
ErrorCode int `json:"errorCode"`
Message string `json:"message"`
RequestID string `json:"requestId"`
Status int `json:"status"`
Timestamp int64 `json:"timestamp"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.