Versions in this module Expand all Collapse all v0 v0.2.4 Mar 21, 2023 v0.2.3 Jan 1, 2023 Changes in this version + func CookieName(n string) func(*Jeff) + func Domain(d string) func(*Jeff) + func Expires(dur time.Duration) func(*Jeff) + func Insecure(j *Jeff) + func Path(p string) func(*Jeff) + func Redirect(h http.Handler) func(*Jeff) + func Samesite(s http.SameSite) func(*Jeff) + type Jeff struct + func New(s Storage, opts ...func(*Jeff)) *Jeff + func (j *Jeff) Clear(ctx context.Context, w http.ResponseWriter) error + func (j *Jeff) Delete(ctx context.Context, key []byte, tokens ...[]byte) error + func (j *Jeff) Public(wrap http.Handler) http.Handler + func (j *Jeff) PublicFunc(wrap http.HandlerFunc) http.HandlerFunc + func (j *Jeff) SessionsForKey(ctx context.Context, key []byte) (SessionList, error) + func (j *Jeff) Set(ctx context.Context, w http.ResponseWriter, key []byte, meta ...[]byte) error + func (j *Jeff) Wrap(wrap http.Handler) http.Handler + func (j *Jeff) WrapFunc(wrap http.HandlerFunc) http.HandlerFunc + type Session struct + Exp time.Time + Key []byte + Meta []byte + Token []byte + func ActiveSession(ctx context.Context) Session + func (z *Session) DecodeMsg(dc *msgp.Reader) (err error) + func (z *Session) EncodeMsg(en *msgp.Writer) (err error) + func (z *Session) MarshalMsg(b []byte) (o []byte, err error) + func (z *Session) Msgsize() (s int) + func (z *Session) UnmarshalMsg(bts []byte) (o []byte, err error) + type SessionList []Session + func (z *SessionList) DecodeMsg(dc *msgp.Reader) (err error) + func (z *SessionList) UnmarshalMsg(bts []byte) (o []byte, err error) + func (z SessionList) EncodeMsg(en *msgp.Writer) (err error) + func (z SessionList) MarshalMsg(b []byte) (o []byte, err error) + func (z SessionList) Msgsize() (s int) + type Storage interface + Delete func(ctx context.Context, key []byte) error + Fetch func(ctx context.Context, key []byte) (value []byte, err error) + Store func(ctx context.Context, key, value []byte, exp time.Time) error