Documentation ¶
Index ¶
- type Session
- type SessionManager
- func (s *SessionManager) CreateSession(ctx context.Context, userID string, guildIDs []string, accessToken string) (string, error)
- func (s *SessionManager) CreateSessionCookie(c *fiber.Ctx, token string)
- func (s *SessionManager) DeleteSession(c *fiber.Ctx) error
- func (s *SessionManager) GetSession(c *fiber.Ctx) (*Session, error)
- type SessionMiddleware
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SessionManager ¶
type SessionManager struct {
// contains filtered or unexported fields
}
func New ¶
func New(pg *postgres.PostgresStore) *SessionManager
func (*SessionManager) CreateSession ¶
func (*SessionManager) CreateSessionCookie ¶
func (s *SessionManager) CreateSessionCookie(c *fiber.Ctx, token string)
func (*SessionManager) DeleteSession ¶
func (s *SessionManager) DeleteSession(c *fiber.Ctx) error
func (*SessionManager) GetSession ¶
func (s *SessionManager) GetSession(c *fiber.Ctx) (*Session, error)
type SessionMiddleware ¶
type SessionMiddleware struct {
// contains filtered or unexported fields
}
func NewSessionMiddleware ¶
func NewSessionMiddleware(manager *SessionManager) *SessionMiddleware
func (*SessionMiddleware) SessionOptional ¶
func (m *SessionMiddleware) SessionOptional() func(c *fiber.Ctx) error
func (*SessionMiddleware) SessionRequired ¶
func (m *SessionMiddleware) SessionRequired() func(c *fiber.Ctx) error
Click to show internal directories.
Click to hide internal directories.