Documentation
¶
Index ¶
- type Context
- type Database
- func (db *Database) CreateUser(user *User) error
- func (db *Database) DeleteUser(id string) error
- func (db *Database) GetAllUsers() ([]*User, error)
- func (db *Database) GetUsersByGoogleID(id string) (*User, error)
- func (db *Database) GetUsersByID(id string) (*User, error)
- func (db *Database) UpdateUser(user *User) error
- type Service
- type User
- type UserEditable
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Context ¶
func NewHandler ¶
func NewHandler(ctx *handler.Context, db *postgresql.DatabasePostgreSQL) *Context
func (*Context) ConnectUser ¶
func (*Context) CreateUser ¶
func (*Context) GetAllUsers ¶
type Database ¶
type Database struct {
*postgresql.DatabasePostgreSQL
}
func NewDatabase ¶
func NewDatabase(db *postgresql.DatabasePostgreSQL) *Database
func (*Database) CreateUser ¶
func (*Database) DeleteUser ¶
func (*Database) GetAllUsers ¶
func (*Database) GetUsersByGoogleID ¶
func (*Database) UpdateUser ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func NewService ¶
func (*Service) CreateUserFromGoogleToken ¶
type UserEditable ¶
type UserEditable struct {
Email string `json:"email" validate:"required"`
}
Click to show internal directories.
Click to hide internal directories.