session

package
Version: v1.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 20, 2020 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	COOKIENAME string = "GOSSID"
	TIMELAYOUT string = "2006-01-02 15:04:05"
)

Variables

This section is empty.

Functions

func Init

func Init(sfn string, keep time.Duration) (err error)

Types

type Session

type Session struct {
	// contains filtered or unexported fields
}

func Start

func Start(w http.ResponseWriter, r *http.Request) (ses *Session)

func (*Session) Clear

func (s *Session) Clear()

func (*Session) Get

func (s *Session) Get(name string) (value string)

func (*Session) Remove

func (s *Session) Remove(name string)

func (*Session) Set

func (s *Session) Set(name string, value string)

func (*Session) SetCookieExpire

func (s *Session) SetCookieExpire(t time.Duration)

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL