Documentation ¶
Index ¶
- func JSONErrorResponse(w http.ResponseWriter, code int, message string)
- func JSONResponse(w http.ResponseWriter, code int, payload interface{})
- func TextResponse(w http.ResponseWriter, code int, text string)
- func ValidateEventType(value string) error
- type SessionStore
- func (s *SessionStore) GetStorageToken(r *http.Request) (string, error)
- func (s *SessionStore) GetUserInfo(r *http.Request) (*goth.User, error)
- func (s *SessionStore) SetStorageToken(r *http.Request, w http.ResponseWriter, token string)
- func (s *SessionStore) SetUserInfo(r *http.Request, w http.ResponseWriter, user goth.User)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func JSONErrorResponse ¶
func JSONErrorResponse(w http.ResponseWriter, code int, message string)
func JSONResponse ¶
func JSONResponse(w http.ResponseWriter, code int, payload interface{})
func TextResponse ¶
func TextResponse(w http.ResponseWriter, code int, text string)
func ValidateEventType ¶
Types ¶
type SessionStore ¶
func (*SessionStore) GetStorageToken ¶
func (s *SessionStore) GetStorageToken(r *http.Request) (string, error)
func (*SessionStore) GetUserInfo ¶
func (*SessionStore) SetStorageToken ¶
func (s *SessionStore) SetStorageToken(r *http.Request, w http.ResponseWriter, token string)
func (*SessionStore) SetUserInfo ¶
func (s *SessionStore) SetUserInfo(r *http.Request, w http.ResponseWriter, user goth.User)
Click to show internal directories.
Click to hide internal directories.