Documentation ¶
Index ¶
- Constants
- Variables
- func CreateSessionFromEvent(ctx context.Context, s *models.Session, event *models.Event) error
- func CreateUser(ctx context.Context, usr *models.UserData) (id uuid.UUID, err error)
- func DeleteUser(ctx context.Context, id uuid.UUID) error
- func GenerateUserID(ctx context.Context, remoteIP, userAgent, domain, hostname string) (id uint64, err error)
- func GetAndVerifyUserByEmail(ctx context.Context, email, password string) (*models.User, error)
- func GetSessionID(ctx context.Context) (uint64, error)
- func GetStore(ctx context.Context) *badger.DB
- func GetUserByDomain(ctx context.Context, domain string) (*models.User, error)
- func GetUserByEmail(ctx context.Context, email string) (*models.User, error)
- func GetUserByID(ctx context.Context, id uuid.UUID) (*models.User, error)
- func IsNotFound(err error) bool
- func SaveSession(ctx context.Context, event *models.Event, sessionWindow time.Duration) (ss *models.Session, err error)
- func Session(ctx context.Context)
- func Set(ctx context.Context, value []byte, keys ...*Key) error
- func SetStore(ctx context.Context, s *badger.DB) context.Context
- func UpdateUser(ctx context.Context, u *models.User) error
- type Key
Constants ¶
View Source
const LeaseSize = uint64(1000)
Variables ¶
Functions ¶
func CreateSessionFromEvent ¶
func CreateUser ¶
func GenerateUserID ¶
func GetAndVerifyUserByEmail ¶
func GetUserByDomain ¶
func IsNotFound ¶
func SaveSession ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.