web

package
v0.0.0-...-e28afbe Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2021 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func UserAgent

func UserAgent(s app.Software) string

Types

type Session

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

func (*Session) Clear

func (s *Session) Clear()

func (*Session) Delete

func (s *Session) Delete(k string)

func (*Session) DeleteFirstPartyCredentialID

func (s *Session) DeleteFirstPartyCredentialID()

func (*Session) DeleteUserID

func (s *Session) DeleteUserID()

func (*Session) FirstPartyCredentialID

func (s *Session) FirstPartyCredentialID() (id string, err error)

func (*Session) Get

func (s *Session) Get(k string) (interface{}, bool)

func (*Session) Has

func (s *Session) Has(k string) bool

func (*Session) HasFirstPartyCredentialID

func (s *Session) HasFirstPartyCredentialID() bool

func (*Session) Save

func (s *Session) Save(r *http.Request, w http.ResponseWriter) error

func (*Session) Set

func (s *Session) Set(k string, i interface{})

func (*Session) SetFirstPartyCredentialID

func (s *Session) SetFirstPartyCredentialID(id string)

func (*Session) SetUserID

func (s *Session) SetUserID(uuid string)

func (*Session) UserID

func (s *Session) UserID() (uuid string, err error)

type Sessions

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

func NewSessions

func NewSessions(c *config.Config, scheme string) (s *Sessions, err error)

func (*Sessions) Get

func (s *Sessions) Get(r *http.Request) (ses *Session, err error)

Jump to

Keyboard shortcuts

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