Documentation
¶
Index ¶
- func CreateCar(db *sql.DB, c Car) (int64, error)
- func CreateCarController(cc *CustomContext, cf CarForm, userId int) (int64, error)
- func CreateMaintenanceItem(db *sql.DB, mi MaintenanceItem) (int64, error)
- func CreateServiceRecord(db *sql.DB, sr ServiceRecord) (int64, error)
- func CreateUser(db *sql.DB, u User) (int64, error)
- func CustomContextHandler(h func(*CustomContext) error) echo.HandlerFunc
- func GetCarWithServiceRecords(c *CustomContext) error
- func Hello(c echo.Context) error
- func Login(c *CustomContext) error
- func Logout(c *CustomContext) error
- func MyCars(c *CustomContext) error
- func OauthGoogleCallback(c *CustomContext) error
- func OauthGoogleLogin(c *CustomContext) error
- func Register(c *CustomContext) error
- func RegisterUser(cc *CustomContext, r RegisterForm) (int64, error)
- func RemoveCar(db *sql.DB, id int) error
- func ResetPass(c *CustomContext) error
- func ResetPassUser(cc *CustomContext, r ResetPassForm) error
- func StartServer()
- func Test(c echo.Context) error
- type Car
- type CarForm
- type CarWithServiceRecords
- type CustomContext
- type LoginForm
- type MaintenanceItem
- type RegisterForm
- type ResetPassForm
- type ServiceRecord
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateCarController ¶
func CreateCarController(cc *CustomContext, cf CarForm, userId int) (int64, error)
func CreateMaintenanceItem ¶
func CreateMaintenanceItem(db *sql.DB, mi MaintenanceItem) (int64, error)
func CreateServiceRecord ¶
func CreateServiceRecord(db *sql.DB, sr ServiceRecord) (int64, error)
func CustomContextHandler ¶
func CustomContextHandler(h func(*CustomContext) error) echo.HandlerFunc
func GetCarWithServiceRecords ¶
func GetCarWithServiceRecords(c *CustomContext) error
func Login ¶
func Login(c *CustomContext) error
func Logout ¶
func Logout(c *CustomContext) error
func MyCars ¶
func MyCars(c *CustomContext) error
func OauthGoogleCallback ¶
func OauthGoogleCallback(c *CustomContext) error
func OauthGoogleLogin ¶
func OauthGoogleLogin(c *CustomContext) error
func Register ¶
func Register(c *CustomContext) error
func RegisterUser ¶
func RegisterUser(cc *CustomContext, r RegisterForm) (int64, error)
func ResetPass ¶
func ResetPass(c *CustomContext) error
func ResetPassUser ¶
func ResetPassUser(cc *CustomContext, r ResetPassForm) error
func StartServer ¶
func StartServer()
Types ¶
type Car ¶
func GetCarsByUserId ¶
func GetCarsByUserId(cc *CustomContext, userId int) ([]Car, error)
type CarWithServiceRecords ¶
type CarWithServiceRecords struct {
Car Car
ServiceRecords []ServiceRecord
}
func GetCarWithServiceRecord ¶
type CustomContext ¶
type MaintenanceItem ¶
type RegisterForm ¶
type RegisterForm struct {
Name string `json:"name" xml:"name" form:"name" query:"name"`
Email string `json:"email" xml:"email" form:"email" query:"email"`
Password string `json:"password" xml:"password" form:"password" query:"password"`
PasswordConfirm string `json:"password-confirm" xml:"password-confirm" form:"password-confirm" query:"password-confirm"`
}
type ResetPassForm ¶
type ResetPassForm struct {
Email string `json:"email" xml:"email" form:"email" query:"email"`
}
type ServiceRecord ¶
Click to show internal directories.
Click to hide internal directories.