Documentation ¶
Index ¶
- Variables
- func AddGetSessionFunc(builder *di.Builder, fnc GetSession)
- func AddGetSessionStoreFunc(builder *di.Builder, fnc GetSessionStore)
- func RemoveAllGetSessionFunc(builder *di.Builder)
- func RemoveAllGetSessionStoreFunc(builder *di.Builder)
- type GetSession
- type GetSessionStore
- func GetGetSessionStoreFromContainer(ctn di.Container) GetSessionStore
- func GetManyGetSessionStoreFromContainer(ctn di.Container) []GetSessionStore
- func SafeGetGetSessionStoreFromContainer(ctn di.Container) (GetSessionStore, error)
- func SafeGetManyGetSessionStoreFromContainer(ctn di.Container) ([]GetSessionStore, error)
Constants ¶
This section is empty.
Variables ¶
var ReflectTypeGetSession = reflect.TypeOf(GetSession(nil))
ReflectTypeGetSession used when your service claims to implement GetSession
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 ¶
RemoveAllGetSessionFunc removes all GetSession functions from the DI
func RemoveAllGetSessionStoreFunc ¶
RemoveAllGetSessionStoreFunc removes all GetSessionStore functions from the DI
Types ¶
type GetSession ¶
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 ¶
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