user

package
v0.0.0-...-9d03f01 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2024 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

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

func NewHandler

func NewHandler(store types.UserStore) *Handler

func (*Handler) RegisterRoutes

func (h *Handler) RegisterRoutes(router *mux.Router)

type Store

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

func NewStore

func NewStore(db *sql.DB) *Store

func (*Store) CreateUser

func (s *Store) CreateUser(user types.User) error

func (*Store) GetUserByID

func (s *Store) GetUserByID(id uuid.UUID) (*types.User, error)

func (*Store) GetUserByUUID

func (s *Store) GetUserByUUID(uid uuid.UUID) (*types.User, error)

func (*Store) GetUserByUsername

func (s *Store) GetUserByUsername(username string) (*types.User, error)

Jump to

Keyboard shortcuts

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