session

package
v0.0.0-...-ed2a08d Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2019 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteSessionIDFromResponse

func DeleteSessionIDFromResponse(w http.ResponseWriter)

func GetSessionIDFromRequest

func GetSessionIDFromRequest(r *http.Request) string

func ID

func ID() string

func SetSessionIDToResponse

func SetSessionIDToResponse(w http.ResponseWriter, id string)

Types

type Store

type Store interface {
	Set(k string, x interface{})
	Delete(k string)
	Get(k string) (interface{}, bool)
}

type StoreOnMemory

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

func NewStoreOnMemory

func NewStoreOnMemory() *StoreOnMemory

func (*StoreOnMemory) Delete

func (ss *StoreOnMemory) Delete(k string)

func (*StoreOnMemory) Get

func (ss *StoreOnMemory) Get(k string) (interface{}, bool)

func (*StoreOnMemory) Set

func (ss *StoreOnMemory) Set(k string, x interface{})

Jump to

Keyboard shortcuts

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