Documentation
¶
Index ¶
- type Extension
- func (s *Extension) GetAttribute(r *http.Request, attribute string) (interface{}, error)
- func (s *Extension) GetCaller(r *http.Request) (*nibbler.User, error)
- func (s *Extension) Init(app *nibbler.Application) error
- func (s *Extension) SetAttribute(w http.ResponseWriter, r *http.Request, key string, value interface{}) error
- func (s *Extension) SetCaller(w http.ResponseWriter, r *http.Request, userValue *nibbler.User) error
- type StoreConnector
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Extension ¶
type Extension struct { nibbler.NoOpExtension SessionName string StoreConnector StoreConnector // creates cookie store if not provided // contains filtered or unexported fields }
func (*Extension) GetAttribute ¶
func (*Extension) SetAttribute ¶
func (s *Extension) SetAttribute(w http.ResponseWriter, r *http.Request, key string, value interface{}) error
TODO: SetAttributes to set multiple attributes in one save
Click to show internal directories.
Click to hide internal directories.