Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateStudentpayload ¶
type CreateStudentpayload struct {
FirstName string `json:"firstName" binding:"required"`
LastName string `json:"lastName" binding:"required"`
Email string `json:"email" binding:"required,email"`
Age int `json:"age" binding:"required,gte=0,lte=150"`
Sex string `json:"sex" binding:"required,oneof=M F Other"`
}
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
func NewHandler ¶
func NewHandler(store repository.Storage) *Handler
func (*Handler) CreateStudentHandler ¶
func (*Handler) DeleteStudentHandler ¶
func (*Handler) GetStudentByID ¶
func (*Handler) UpdateStudentHandler ¶
Click to show internal directories.
Click to hide internal directories.