Documentation ¶
Index ¶
- type UseCase
- func (u UseCase) Create(ctx context.Context, userhash userentity.Hash, ...) (string, error)
- func (u UseCase) Get(ctx context.Context, userhash userentity.Hash, sessionid string) (sessionentity.Session, error)
- func (u UseCase) Remove(ctx context.Context, userhash userentity.Hash, sessionid string) error
- func (u UseCase) RemoveAll(ctx context.Context, userhash userentity.Hash) error
- func (u UseCase) SetUserInfo(ctx context.Context, userhash userentity.Hash, sessionid string, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type UseCase ¶
type UseCase struct {
// contains filtered or unexported fields
}
UseCase struct
func (UseCase) Create ¶
func (u UseCase) Create(ctx context.Context, userhash userentity.Hash, sessionData sessionentity.Session) (string, error)
Create function
func (UseCase) Get ¶
func (u UseCase) Get(ctx context.Context, userhash userentity.Hash, sessionid string) (sessionentity.Session, error)
Get session sessionkey is the user hash-id sessionid is the sessionid returned when logged in or creating session
func (UseCase) SetUserInfo ¶
func (u UseCase) SetUserInfo(ctx context.Context, userhash userentity.Hash, sessionid string, userData sessionentity.UserData) error
SetUserInfo to set/change user information in session
Click to show internal directories.
Click to hide internal directories.