Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ReceiveRequest ¶
type ReceiveRequest struct { Method string `json:"method"` Variables datatypes.JSONMap `json:"variables"` }
func (ReceiveRequest) Validate ¶
func (r ReceiveRequest) Validate() error
func (ReceiveRequest) ValidateFunc ¶
func (r ReceiveRequest) ValidateFunc() func(interface{}) error
type RestySendRequest ¶
type Rule ¶
type Rule struct { RuleItem Receive ReceiveRequest `json:"receive" gorm:"embedded;embeddedPrefix:receive_"` Send SendRequest `json:"send" gorm:"embedded;embeddedPrefix:send_"` }
type RuleItem ¶
type RuleItem struct { gorm.Model UID string `json:"uid" gorm:"unique,not null"` Name string `json:"name" gorm:"unique,not null"` Description string `json:"description"` GroupId string `json:"groupId"` IsAuth bool `json:"isAuth"` IsForward bool `json:"isForward"` }
func (RuleItem) ValidateFunc ¶
type SendRequest ¶
type SendRequest struct { SendBase Header datatypes.JSONMap `json:"header"` Query datatypes.JSONMap `json:"query"` Form datatypes.JSONMap `json:"form"` Body datatypes.JSONMap `json:"body"` }
func (SendRequest) ToResty ¶
func (r SendRequest) ToResty() RestySendRequest
func (SendRequest) Validate ¶
func (r SendRequest) Validate() error
func (SendRequest) ValidateFunc ¶
func (r SendRequest) ValidateFunc() func(interface{}) error
type UserCreateRequest ¶
type UserCreateRequest struct { Username string `json:"username" binding:"required"` Password string `json:"password" binding:"required"` }
func (UserCreateRequest) Validate ¶
func (r UserCreateRequest) Validate() error
type UserResetPasswordRequest ¶
type UserResetPasswordRequest struct { Password string `json:"password" binding:"required"` NewPassword string `json:"new_password" binding:"required"` }
func (UserResetPasswordRequest) Validate ¶
func (r UserResetPasswordRequest) Validate() error
type UserUpdateRequest ¶
type UserUpdateRequest struct {
Username string `json:"username" binding:"required"`
}
func (UserUpdateRequest) Validate ¶
func (r UserUpdateRequest) Validate() error
Click to show internal directories.
Click to hide internal directories.