Documentation
¶
Index ¶
- func GetTodos(params types.GetTodosParams, pool *pgxpool.Pool) []types.Todo
- func InsertTodo(params types.InsertTodoParams, pool *pgxpool.Pool) types.Todo
- func InsertTodoList(pool *pgxpool.Pool, userId int) int
- func InsertUser(params types.InsertUserParams, pool *pgxpool.Pool) (int, error)
- func UpdateTodo(params types.UpdateTodoParams, pool *pgxpool.Pool) types.Todo
- type JWTService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InsertTodo ¶
func InsertUser ¶
func UpdateTodo ¶
Types ¶
type JWTService ¶
type JWTService interface { GenerateToken(userId int) string ValidateToken(token string) (*jwt.Token, error) }
func JWTAuthService ¶
func JWTAuthService() JWTService
Click to show internal directories.
Click to hide internal directories.