Documentation ¶
Index ¶
- type Repository
- type Validator
- func (v Validator) ValidateCreateRequest(req projectparam.CreateRequest) *validator.Error
- func (v Validator) ValidateDeleteRequest(req projectparam.DeleteRequest) *validator.Error
- func (v Validator) ValidateGetRequest(req projectparam.GetRequest) *validator.Error
- func (v Validator) ValidateUpdateRequest(req projectparam.UpdateRequest) *validator.Error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Validator ¶
type Validator struct {
// contains filtered or unexported fields
}
func New ¶
func New(repo Repository) Validator
func (Validator) ValidateCreateRequest ¶
func (v Validator) ValidateCreateRequest(req projectparam.CreateRequest) *validator.Error
func (Validator) ValidateDeleteRequest ¶
func (v Validator) ValidateDeleteRequest(req projectparam.DeleteRequest) *validator.Error
func (Validator) ValidateGetRequest ¶
func (v Validator) ValidateGetRequest(req projectparam.GetRequest) *validator.Error
func (Validator) ValidateUpdateRequest ¶
func (v Validator) ValidateUpdateRequest(req projectparam.UpdateRequest) *validator.Error
Click to show internal directories.
Click to hide internal directories.