Documentation ¶ Index ¶ type Session func New(name string, db gorm.Dialector, uc redis.UniversalClient) (*Session, error) func (s *Session) AppName() string func (s *Session) GetOrCreate(ctx context.Context, userId string) (string, error) func (s *Session) Service() session.Service Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Session ¶ type Session struct { // contains filtered or unexported fields } func New ¶ func New(name string, db gorm.Dialector, uc redis.UniversalClient) (*Session, error) func (*Session) AppName ¶ func (s *Session) AppName() string func (*Session) GetOrCreate ¶ func (s *Session) GetOrCreate(ctx context.Context, userId string) (string, error) func (*Session) Service ¶ func (s *Session) Service() session.Service Source Files ¶ View all Source files session.go Click to show internal directories. Click to hide internal directories.