dummy

package
v0.0.0-...-1ba6274 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNoUser = errors.New("user does not exist")

Functions

This section is empty.

Types

type DB

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

func (*DB) AddSessionToUser

func (d *DB) AddSessionToUser(_ context.Context, gothID, session string) error

func (*DB) CreateOrUpdateUser

func (d *DB) CreateOrUpdateUser(_ context.Context, gothID, provider, email, name string) (string, error)

func (*DB) GetUser

func (d *DB) GetUser(_ context.Context, userID string) (any, error)

func (*DB) GetUserID

func (d *DB) GetUserID(_ context.Context, gothID string) (string, error)

func (*DB) GetUserIDFromToken

func (d *DB) GetUserIDFromToken(_ context.Context, token string) (string, error)

func (*DB) GetUserWithSession

func (d *DB) GetUserWithSession(_ context.Context, userID string, token string) (any, error)

func (*DB) UpdateUserInfo

func (d *DB) UpdateUserInfo(_ context.Context, userID string, email string, name string) error

func (*DB) UserDisabled

func (d *DB) UserDisabled(_ context.Context, userID string) (bool, error)

type User

type User struct {
	ID       string
	Name     string
	Email    string
	Gothic   []string
	Sessions []string
	Tokens   []string
}

Jump to

Keyboard shortcuts

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