Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateMessage ¶
type CreateMessage struct { Type string `json:"type" binding:"required,min=2,max=50"` Msg string `json:"msg" binding:"required,min=0,max=2000"` }
func EmptyCreateMessage ¶
func EmptyCreateMessage() *CreateMessage
func (*CreateMessage) GetValue ¶
func (d *CreateMessage) GetValue() *CreateMessage
func (*CreateMessage) ValidateErrors ¶
func (d *CreateMessage) ValidateErrors(errs validator.ValidationErrors) ([]string, error)
type InfoMessage ¶
type InfoMessage struct { ID primitive.ObjectID `json:"_id" binding:"required"` Type string `json:"type" binding:"required"` Msg string `json:"msg" binding:"required"` CreatedAt time.Time `json:"createdAt" binding:"required"` }
func EmptyInfoMessage ¶
func EmptyInfoMessage() *InfoMessage
func (*InfoMessage) GetValue ¶
func (d *InfoMessage) GetValue() *InfoMessage
func (*InfoMessage) ValidateErrors ¶
func (d *InfoMessage) ValidateErrors(errs validator.ValidationErrors) ([]string, error)
Click to show internal directories.
Click to hide internal directories.