goweb/service/session/session.go

17 lines
361 B
Go
Raw Permalink Normal View History

2018-12-06 15:18:05 +01:00
package session
import (
"net/http"
)
// Session defines the API of a Session
type Session interface {
Set(string, interface{})
Unset(string)
Get(string) interface{}
AddFlash(flashType FlashType, message string)
Flashes(flashTypes ...FlashType) []Flash
Save(http.ResponseWriter, *http.Request) error
Delete(http.ResponseWriter, *http.Request) error
}