interfaces

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewSession

func NewSession() *core.Session

Types

type DbSession

type DbSession struct {
	// contains filtered or unexported fields
}

func (*DbSession) ClearAll

func (s *DbSession) ClearAll() bool

func (*DbSession) Create

func (s *DbSession) Create() core.ISessionProvider

func (*DbSession) Delete

func (s *DbSession) Delete() bool

func (*DbSession) ExpiresOn

func (s *DbSession) ExpiresOn(expiresOn *time.Time)

func (*DbSession) Get

func (s *DbSession) Get(name string) (string, error)

func (*DbSession) GetByKey

func (s *DbSession) GetByKey(sessionKey string) (core.ISessionProvider, error)

func (*DbSession) GetKey

func (s *DbSession) GetKey() string

func (*DbSession) GetName

func (s *DbSession) GetName() string

func (*DbSession) GetUser

func (s *DbSession) GetUser() core.IUser

func (*DbSession) IsExpired

func (s *DbSession) IsExpired() bool

func (*DbSession) Save

func (s *DbSession) Save() bool

func (*DbSession) Set

func (s *DbSession) Set(name string, value string)

func (*DbSession) SetUser

func (s *DbSession) SetUser(user core.IUser)

type SessionProviderRegistry

type SessionProviderRegistry struct {
	// contains filtered or unexported fields
}

func NewSessionRegistry

func NewSessionRegistry() *SessionProviderRegistry

func (*SessionProviderRegistry) GetAdapter

func (r *SessionProviderRegistry) GetAdapter(name string) (core.ISessionProvider, error)

func (*SessionProviderRegistry) GetDefaultAdapter

func (r *SessionProviderRegistry) GetDefaultAdapter() (core.ISessionProvider, error)

func (*SessionProviderRegistry) RegisterNewAdapter

func (r *SessionProviderRegistry) RegisterNewAdapter(adapter core.ISessionProvider, defaultAdapter bool)

Jump to

Keyboard shortcuts

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