session

package
v0.1.322 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ReflectTypeGetSession = reflect.TypeOf(GetSession(nil))

ReflectTypeGetSession used when your service claims to implement GetSession

View Source
var ReflectTypeGetSessionStore = reflect.TypeOf(GetSessionStore(nil))

ReflectTypeGetSessionStore used when your service claims to implement GetSessionStore

Functions

func AddGetSessionFunc

func AddGetSessionFunc(builder *di.Builder, fnc GetSession)

AddSingletonGetSessionFunc adds a func to the DI

func AddGetSessionStoreFunc

func AddGetSessionStoreFunc(builder *di.Builder, fnc GetSessionStore)

AddSingletonGetSessionStoreFunc adds a func to the DI

func RemoveAllGetSessionFunc

func RemoveAllGetSessionFunc(builder *di.Builder)

RemoveAllGetSessionFunc removes all GetSession functions from the DI

func RemoveAllGetSessionStoreFunc

func RemoveAllGetSessionStoreFunc(builder *di.Builder)

RemoveAllGetSessionStoreFunc removes all GetSessionStore functions from the DI

Types

type GetSession

type GetSession func(c echo.Context) *sessions.Session

GetSession ...

func GetGetSessionFromContainer

func GetGetSessionFromContainer(ctn di.Container) GetSession

GetGetSessionFromContainer alternative to SafeGetGetSessionFromContainer but panics of object is not present

func GetManyGetSessionFromContainer

func GetManyGetSessionFromContainer(ctn di.Container) []GetSession

GetManyGetSessionFromContainer alternative to SafeGetManyGetSessionFromContainer but panics of object is not present

func SafeGetGetSessionFromContainer

func SafeGetGetSessionFromContainer(ctn di.Container) (GetSession, error)

SafeGetGetSessionFromContainer trys to get the object by type, will not panic, returns nil and error

func SafeGetManyGetSessionFromContainer

func SafeGetManyGetSessionFromContainer(ctn di.Container) ([]GetSession, error)

SafeGetManyGetSessionFromContainer trys to get the object by type, will not panic, returns nil and error

type GetSessionStore

type GetSessionStore func() sessions.Store

GetSessionStore ...

func GetGetSessionStoreFromContainer

func GetGetSessionStoreFromContainer(ctn di.Container) GetSessionStore

GetGetSessionStoreFromContainer alternative to SafeGetGetSessionStoreFromContainer but panics of object is not present

func GetManyGetSessionStoreFromContainer

func GetManyGetSessionStoreFromContainer(ctn di.Container) []GetSessionStore

GetManyGetSessionStoreFromContainer alternative to SafeGetManyGetSessionStoreFromContainer but panics of object is not present

func SafeGetGetSessionStoreFromContainer

func SafeGetGetSessionStoreFromContainer(ctn di.Container) (GetSessionStore, error)

SafeGetGetSessionStoreFromContainer trys to get the object by type, will not panic, returns nil and error

func SafeGetManyGetSessionStoreFromContainer

func SafeGetManyGetSessionStoreFromContainer(ctn di.Container) ([]GetSessionStore, error)

SafeGetManyGetSessionStoreFromContainer trys to get the object by type, will not panic, returns nil and error

Jump to

Keyboard shortcuts

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