Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MongoId ¶
type MongoId struct { Id string `uri:"id" binding:"required" validate:"required,len=24"` ID primitive.ObjectID `uri:"-" validate:"-"` }
func EmptyMongoId ¶
func EmptyMongoId() *MongoId
func (*MongoId) ValidateErrors ¶
type Pagination ¶
type Pagination struct { Page int64 `form:"page" binding:"required" validate:"required,min=1,max=1000"` Limit int64 `form:"limit" binding:"required" validate:"required,min=1,max=1000"` }
func EmptyPagination ¶
func EmptyPagination() *Pagination
func (*Pagination) GetValue ¶
func (d *Pagination) GetValue() *Pagination
func (*Pagination) ValidateErrors ¶
func (d *Pagination) ValidateErrors(errs validator.ValidationErrors) ([]string, error)
Click to show internal directories.
Click to hide internal directories.