Documentation ¶
Index ¶
- Variables
- func Connect()
- func DeleteGPS(w http.ResponseWriter, r *http.Request) (string, error)
- func DeleteUserPanel(w http.ResponseWriter, r *http.Request) (string, error)
- func InsertGPS(w http.ResponseWriter, r *http.Request) (map[string]interface{}, error)
- func LimitOffset(limit string, offset string) string
- func ReturnDBGorm() *gorm.DB
- func ShortBy(query string) string
- func UpdateGPS(w http.ResponseWriter, r *http.Request) (map[string]interface{}, error)
- func UpdateUserPanel(w http.ResponseWriter, r *http.Request) (map[string]interface{}, error)
- type Gps
- type ManyGps
- type ManyUser
- type Token
- type User
Constants ¶
This section is empty.
Variables ¶
View Source
var (
GetDB *gorm.DB // connection about DB
)
Functions ¶
func DeleteUserPanel ¶
DeleteUserPanel function for delete one data in table users
func LimitOffset ¶
func ReturnDBGorm ¶
func UpdateUserPanel ¶
UpdateUserPanel function for update data users
Types ¶
type Gps ¶
type Gps struct { Brand string `json:"brand,omitemp"` Models string `json:"models,omitemp"` Name string `json:"name,omitemp"` Waranty string `json:"waranty,omitemp"` DateBuy string `json:"date_buy,omitemp"` DateSold string `json:"date_sold,omitemp"` SoldTo string `json:"sold_to,omitemp"` Foto string `json:"foto,omitemp"` Description string `json:"description,omitemp"` gorm.Model }
struct GPS
type User ¶
type User struct { Email string `json:"email,omitemp"` Username string `json:"username,omitemp"` Password string `json:"password,omitemp"` Status string `json:"status,omitemp"` gorm.Model }
func GetAllUserPanel ¶
GetAllUserPanel function for get all data from table user
func GetUserPanel ¶
GetUserPanel functionfor get perUser
func (*User) RegisterUserPanel ¶
RegisterUserPanel function for register first time user
Click to show internal directories.
Click to hide internal directories.