Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewGitHubOAuthConfig ¶
func NewLinkedInOAuthConfig ¶
func NewServer ¶
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.
Types ¶
Click to show internal directories.
Click to hide internal directories.