Documentation
¶
Index ¶
- Variables
- func RegisterUserService(s *grpc.Server, db *sql.DB)
- type UserService
- func (s *UserService) Create(ctx context.Context, in *profile.CreateRequest) (*profile.CreateResponse, error)
- func (s *UserService) Delete(ctx context.Context, in *profile.DeleteRequest) (*empty.Empty, error)
- func (s *UserService) Read(ctx context.Context, in *profile.ReadRequest) (*profile.ReadResponse, error)
- func (s *UserService) ReadAll(ctx context.Context, in *profile.ReadAllRequest) (*profile.ReadAllResponse, error)
- func (s *UserService) Update(ctx context.Context, in *profile.UpdateRequest) (*empty.Empty, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var Module = fx.Invoke(RegisterUserService)
Module register user service in DI container
Functions ¶
Types ¶
type UserService ¶
UserService .
func (*UserService) Create ¶
func (s *UserService) Create(ctx context.Context, in *profile.CreateRequest) (*profile.CreateResponse, error)
Create .
func (*UserService) Delete ¶
func (s *UserService) Delete(ctx context.Context, in *profile.DeleteRequest) (*empty.Empty, error)
Delete .
func (*UserService) Read ¶
func (s *UserService) Read(ctx context.Context, in *profile.ReadRequest) (*profile.ReadResponse, error)
Read .
func (*UserService) ReadAll ¶
func (s *UserService) ReadAll(ctx context.Context, in *profile.ReadAllRequest) (*profile.ReadAllResponse, error)
ReadAll .
func (*UserService) Update ¶
func (s *UserService) Update(ctx context.Context, in *profile.UpdateRequest) (*empty.Empty, error)
Update .
Click to show internal directories.
Click to hide internal directories.