handlers

package
v0.0.0-...-996da40 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoginHandler

func LoginHandler(queries *mydb.Queries) http.HandlerFunc

func NewNullString

func NewNullString(s string) sql.NullString

func NewNullTime

func NewNullTime(t time.Time) sql.NullTime

func RegisterHandler

func RegisterHandler(queries *mydb.Queries) http.HandlerFunc

func SubmitFinanceHandler

func SubmitFinanceHandler(queries *mydb.Queries) http.HandlerFunc

Types

type Finance

type Finance struct {
	UserID      int32     `json:"user_id"`
	Type        string    `json:"type"`
	Source      string    `json:"source"`
	Amount      string    `json:"amount"`
	Date        time.Time `json:"date,omitempty"`
	Description string    `json:"description,omitempty"`
}

type User

type User struct {
	Username string `json:"username"`
	Password string `json:"password"`
	Email    string `json:"email"`
}

Jump to

Keyboard shortcuts

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