sessions

package
v0.0.0-...-64a0d4e Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2017 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register(reg *objects.Registry)

Types

type Component

type Component struct {
	Initializer Initializer `com:"singleton"`
	// contains filtered or unexported fields
}

func (*Component) Get

func (c *Component) Get(r *http.Request, name string) (*sessions.Session, error)

func (*Component) Initialize

func (c *Component) Initialize() (err error)

func (*Component) InitializeDaemon

func (c *Component) InitializeDaemon() error

func (*Component) New

func (c *Component) New(r *http.Request, name string) (*sessions.Session, error)

func (*Component) Save

func (*Component) Set

func (c *Component) Set(w http.ResponseWriter, r *http.Request, key string, value interface{}) error

func (*Component) Unset

func (c *Component) Unset(w http.ResponseWriter, r *http.Request, key string) error

func (*Component) Value

func (c *Component) Value(r *http.Request, key string) interface{}

func (*Component) ValueString

func (c *Component) ValueString(r *http.Request, key string) string

type Initializer

type Initializer interface {
	InitializeSessions() (Store, error)
}

type Session

type Session interface {
	Value(r *http.Request, key string) interface{}
	ValueString(r *http.Request, key string) string
	Set(w http.ResponseWriter, r *http.Request, key string, value interface{}) error
	Unset(w http.ResponseWriter, r *http.Request, key string) error
}

type Store

type Store = sessions.Store

Source Files

  • com.go

Directories

Path Synopsis
Package init is used to register the sessions component with the default registry via side effect import.
Package init is used to register the sessions component with the default registry via side effect import.

Jump to

Keyboard shortcuts

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