Documentation ¶
Index ¶
- type Provider
- type ProviderRuntime
- func (p *ProviderRuntime) ClearSession(w http.ResponseWriter, r *http.Request) error
- func (p *ProviderRuntime) Done(w http.ResponseWriter, r *http.Request)
- func (p *ProviderRuntime) GetSession(r *http.Request) (*authsession.AuthSession, error)
- func (p *ProviderRuntime) Restart(w http.ResponseWriter, r *http.Request)
- func (p *ProviderRuntime) SetSession(w http.ResponseWriter, r *http.Request, s *authsession.AuthSession) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Provider ¶
type Provider struct { Type string Invoke func(http.ResponseWriter, *http.Request, *ProviderRuntime) RegisterRoutes func(*mux.Router, *ProviderRuntime) error }
type ProviderRuntime ¶
type ProviderRuntime struct {
// contains filtered or unexported fields
}
func NewProviderRuntime ¶
func NewProviderRuntime(store sessions.Store) *ProviderRuntime
func (*ProviderRuntime) ClearSession ¶
func (p *ProviderRuntime) ClearSession(w http.ResponseWriter, r *http.Request) error
func (*ProviderRuntime) Done ¶
func (p *ProviderRuntime) Done(w http.ResponseWriter, r *http.Request)
func (*ProviderRuntime) GetSession ¶
func (p *ProviderRuntime) GetSession(r *http.Request) (*authsession.AuthSession, error)
func (*ProviderRuntime) Restart ¶
func (p *ProviderRuntime) Restart(w http.ResponseWriter, r *http.Request)
func (*ProviderRuntime) SetSession ¶
func (p *ProviderRuntime) SetSession(w http.ResponseWriter, r *http.Request, s *authsession.AuthSession) error
Click to show internal directories.
Click to hide internal directories.