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
Functions ¶
func AddGetSessionFunc ¶
func AddGetSessionFunc(builder *di.Builder, fnc GetSession)
AddSingletonGetSessionFunc adds a func to the DI
func RemoveAllGetSessionFunc ¶
RemoveAllGetSessionFunc removes all GetSession 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
Click to show internal directories.
Click to hide internal directories.