Documentation ¶
Index ¶
- func GetValue(jr *JsonRequest, key string) (string, bool)
- func JsonResponseWriter(response JsonResponse)
- type Handler
- func (app *Handler) About(w http.ResponseWriter, r *http.Request)
- func (app *Handler) Contact(w http.ResponseWriter, r *http.Request)
- func (app *Handler) CreateProduct(w http.ResponseWriter, r *http.Request)
- func (app *Handler) DeleteProduct(w http.ResponseWriter, r *http.Request)
- func (app *Handler) DeleteProfile(w http.ResponseWriter, r *http.Request)
- func (app *Handler) Home(w http.ResponseWriter, r *http.Request)
- func (app *Handler) IV() (result string)
- func (app *Handler) ImageHandler(w http.ResponseWriter, r *http.Request)
- func (app *Handler) Login(w http.ResponseWriter, r *http.Request)
- func (app *Handler) LoginHashedPassword(password string, iv string) (hashedPassword string)
- func (app *Handler) Logout(w http.ResponseWriter, r *http.Request)
- func (app *Handler) NewPassword(w http.ResponseWriter, r *http.Request)
- func (app *Handler) ReadProduct(w http.ResponseWriter, r *http.Request)
- func (app *Handler) ReadProfile(w http.ResponseWriter, r *http.Request)
- func (app *Handler) Register(w http.ResponseWriter, r *http.Request)
- func (app *Handler) RegisterHashedPassword(password string) (iv string, hashedPassword string)
- func (app *Handler) ResetPassword(w http.ResponseWriter, r *http.Request)
- func (app *Handler) Token() (result string)
- func (app *Handler) UpdatePassword(w http.ResponseWriter, r *http.Request)
- func (app *Handler) UpdateProduct(w http.ResponseWriter, r *http.Request)
- func (app *Handler) UpdateProfile(w http.ResponseWriter, r *http.Request)
- func (app *Handler) VerifyEmail(w http.ResponseWriter, r *http.Request)
- type JsonRequest
- type JsonResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func JsonResponseWriter ¶
func JsonResponseWriter(response JsonResponse)
Types ¶
type Handler ¶
func (*Handler) CreateProduct ¶
func (app *Handler) CreateProduct(w http.ResponseWriter, r *http.Request)
func (*Handler) DeleteProduct ¶
func (app *Handler) DeleteProduct(w http.ResponseWriter, r *http.Request)
func (*Handler) DeleteProfile ¶
func (app *Handler) DeleteProfile(w http.ResponseWriter, r *http.Request)
func (*Handler) ImageHandler ¶
func (app *Handler) ImageHandler(w http.ResponseWriter, r *http.Request)
func (*Handler) LoginHashedPassword ¶
func (*Handler) NewPassword ¶
func (app *Handler) NewPassword(w http.ResponseWriter, r *http.Request)
func (*Handler) ReadProduct ¶
func (app *Handler) ReadProduct(w http.ResponseWriter, r *http.Request)
func (*Handler) ReadProfile ¶
func (app *Handler) ReadProfile(w http.ResponseWriter, r *http.Request)
func (*Handler) RegisterHashedPassword ¶
func (*Handler) ResetPassword ¶
func (app *Handler) ResetPassword(w http.ResponseWriter, r *http.Request)
func (*Handler) UpdatePassword ¶
func (app *Handler) UpdatePassword(w http.ResponseWriter, r *http.Request)
func (*Handler) UpdateProduct ¶
func (app *Handler) UpdateProduct(w http.ResponseWriter, r *http.Request)
func (*Handler) UpdateProfile ¶
func (app *Handler) UpdateProfile(w http.ResponseWriter, r *http.Request)
func (*Handler) VerifyEmail ¶
func (app *Handler) VerifyEmail(w http.ResponseWriter, r *http.Request)
type JsonRequest ¶
type JsonRequest struct {
Data map[string]interface{}
}
func JsonRequestDecoder ¶
func JsonRequestDecoder(r *http.Request) (*JsonRequest, error)
type JsonResponse ¶
type JsonResponse struct { ResponseWriter http.ResponseWriter Data any // contains filtered or unexported fields }
Click to show internal directories.
Click to hide internal directories.