Documentation ¶
Index ¶
- type Repository
- type Validator
- func (v Validator) ValidateCreateRequest(req sourceparam.CreateRequest) *validator.Error
- func (v Validator) ValidateDeleteRequest(req sourceparam.DeleteRequest) *validator.Error
- func (v Validator) ValidateDisableRequest(req sourceparam.DisableRequest) *validator.Error
- func (v Validator) ValidateEnableRequest(req sourceparam.EnableRequest) *validator.Error
- func (v Validator) ValidateRotateWriteKeyRequest(req sourceparam.RotateWriteKeyRequest) *validator.Error
- func (v Validator) ValidateShowRequest(req sourceparam.ShowRequest) *validator.Error
- func (v Validator) ValidateUpdateRequest(req sourceparam.UpdateRequest) *validator.Error
- type ValidatorError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Repository ¶
type Validator ¶
type Validator struct {
// contains filtered or unexported fields
}
func New ¶
func New(sourceRepo Repository) Validator
func (Validator) ValidateCreateRequest ¶
func (v Validator) ValidateCreateRequest(req sourceparam.CreateRequest) *validator.Error
func (Validator) ValidateDeleteRequest ¶
func (v Validator) ValidateDeleteRequest(req sourceparam.DeleteRequest) *validator.Error
func (Validator) ValidateDisableRequest ¶
func (v Validator) ValidateDisableRequest(req sourceparam.DisableRequest) *validator.Error
func (Validator) ValidateEnableRequest ¶
func (v Validator) ValidateEnableRequest(req sourceparam.EnableRequest) *validator.Error
func (Validator) ValidateRotateWriteKeyRequest ¶
func (v Validator) ValidateRotateWriteKeyRequest(req sourceparam.RotateWriteKeyRequest) *validator.Error
func (Validator) ValidateShowRequest ¶
func (v Validator) ValidateShowRequest(req sourceparam.ShowRequest) *validator.Error
func (Validator) ValidateUpdateRequest ¶
func (v Validator) ValidateUpdateRequest(req sourceparam.UpdateRequest) *validator.Error
type ValidatorError ¶
func (ValidatorError) Error ¶
func (v ValidatorError) Error() string
Click to show internal directories.
Click to hide internal directories.