store

package
v0.0.0-...-7d1b427 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2024 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type User

type User struct {
	Id        int64  `json:"id"`
	Username  string `json:"username"`
	Password  string `json:"-"`
	FirstName string `json:"first_name"`
	LastName  string `json:"last_name"`
	Email     string `json:"email"`
	CreatedAt string `json:"created_at"`
	UpdatedAt string `json:"updated_at"`
	Uuid      string `json:"uuid"`
}

type UsersStore

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

func NewUsersStore

func NewUsersStore(db *sql.DB) UsersStore

func (*UsersStore) Create

func (s *UsersStore) Create(ctx context.Context, u *User) error

func (*UsersStore) GetAllUsers

func (s *UsersStore) GetAllUsers(ctx context.Context, u *[]User) error

func (*UsersStore) GetUser

func (s *UsersStore) GetUser(ctx context.Context, u *User) error

Jump to

Keyboard shortcuts

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