Documentation ¶
Index ¶
- type Implementation
- func (i *Implementation) CreateUser(ctx context.Context, req *desc.UserCreateRequest) (*desc.UserCreateResponse, error)
- func (i *Implementation) GetUserByID(ctx context.Context, req *desc.UserGetByIDRequest) (*desc.UserGetByIDResponse, error)
- func (i *Implementation) GetUserTotalSalary(ctx context.Context, req *desc.UserGetTotalSalaryRequest) (*desc.UserGetTotalSalaryResponse, error)
- func (i *Implementation) GetUsers(ctx context.Context, req *desc.UserGetRequest) (*desc.UserGetResponse, error)
- func (i *Implementation) UpdateUser(ctx context.Context, req *desc.UserUpdateRequest) (*desc.UserUpdateResponse, error)
- func (i *Implementation) UpdateUserContacts(ctx context.Context, req *desc.UserContactsUpdateRequest) (*desc.UserContactsUpdateResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Implementation ¶
type Implementation struct { desc.UnimplementedUserRegistryServer // contains filtered or unexported fields }
func NewService ¶
func NewService( storage userStorage.UserStorage, authService authservice.Service, dataManagerService dataManager.Service, validator validation.Validator, authorizer authorization.Authorizer, ) *Implementation
func (*Implementation) CreateUser ¶
func (i *Implementation) CreateUser(ctx context.Context, req *desc.UserCreateRequest) (*desc.UserCreateResponse, error)
func (*Implementation) GetUserByID ¶
func (i *Implementation) GetUserByID(ctx context.Context, req *desc.UserGetByIDRequest) (*desc.UserGetByIDResponse, error)
func (*Implementation) GetUserTotalSalary ¶
func (i *Implementation) GetUserTotalSalary(ctx context.Context, req *desc.UserGetTotalSalaryRequest) (*desc.UserGetTotalSalaryResponse, error)
func (*Implementation) GetUsers ¶
func (i *Implementation) GetUsers(ctx context.Context, req *desc.UserGetRequest) (*desc.UserGetResponse, error)
func (*Implementation) UpdateUser ¶
func (i *Implementation) UpdateUser(ctx context.Context, req *desc.UserUpdateRequest) (*desc.UserUpdateResponse, error)
func (*Implementation) UpdateUserContacts ¶
func (i *Implementation) UpdateUserContacts(ctx context.Context, req *desc.UserContactsUpdateRequest) (*desc.UserContactsUpdateResponse, error)
Click to show internal directories.
Click to hide internal directories.