Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CookieStore ¶
type CookieStore struct {
// contains filtered or unexported fields
}
CookieStore can store and retrieve SSPI context handles to/from an encrypted Cookie.
func NewCookieStore ¶
func NewCookieStore() *CookieStore
NewCookieStore creates a new CookieStore for storing and retrieving of SSPI context handles to/from encrypted Cookies
func (*CookieStore) GetHandle ¶
func (s *CookieStore) GetHandle(r *http.Request) (interface{}, error)
GetHandle retrieves a *websspi.CtxtHandle value from the store
func (*CookieStore) SetHandle ¶
func (s *CookieStore) SetHandle(r *http.Request, w http.ResponseWriter, contextHandle interface{}) error
SetHandle saves a *websspi.CtxtHandle value to the store
type Store ¶
type Store interface { // GetHandle retrieves a *websspi.CtxtHandle value from the store GetHandle(r *http.Request) (interface{}, error) // SetHandle saves a *websspi.CtxtHandle value to the store SetHandle(r *http.Request, w http.ResponseWriter, contextHandle interface{}) error }
Store is an interface for storage of SSPI context handles. SSPI context handles are Windows API handles and have nothing to do with the "context" package in Go.
Click to show internal directories.
Click to hide internal directories.