validationUser

package
v0.0.0-...-2a611ce Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 24, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ValidationFindUserProtocol

type ValidationFindUserProtocol func(ctx context.Context, req dto.FindUserRequest) error

func FindUserValidate

func FindUserValidate() ValidationFindUserProtocol

type ValidatorDeleteUserProtocol

type ValidatorDeleteUserProtocol func(ctx context.Context, req dto.DeleteUserRequest) error

func DeleteUserValidate

func DeleteUserValidate() ValidatorDeleteUserProtocol

type ValidatorEditUserProtocol

type ValidatorEditUserProtocol func(ctx context.Context, req dto.EditUserRequest) error

func EditUserValidate

func EditUserValidate() ValidatorEditUserProtocol

type ValidatorNewUserProtocol

type ValidatorNewUserProtocol func(ctx context.Context, req dto.NewUserRequest) error

func NewUserValidate

func NewUserValidate() ValidatorNewUserProtocol

type ValidatorStorage

type ValidatorStorage interface {
	IsUserExist(ctx context.Context, userID uint) (bool, error)
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL