Documentation
¶
Index ¶
- type UserService
- func (s *UserService) Create(ctx context.Context, req *proto.CreateUserRequest) (*proto.CreateUserResponse, error)
- func (s *UserService) Delete(ctx context.Context, req *proto.DeleteUserRequest) (*proto.DeleteUserResponse, error)
- func (s *UserService) Get(ctx context.Context, req *proto.GetUserRequest) (*proto.GetUserResponse, error)
- func (s *UserService) List(ctx context.Context, req *proto.ListUserRequest) (*proto.ListUserResponse, error)
- func (s *UserService) Update(ctx context.Context, req *proto.UpdateUserRequest) (*proto.UpdateUserResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type UserService ¶
type UserService struct {
// contains filtered or unexported fields
}
UserService UserService
func NewUserService ¶
func NewUserService(s *grpc.Server, storage storage.UserStorage) *UserService
NewUserService NewUserService
func (*UserService) Create ¶
func (s *UserService) Create(ctx context.Context, req *proto.CreateUserRequest) (*proto.CreateUserResponse, error)
Create Create
func (*UserService) Delete ¶
func (s *UserService) Delete(ctx context.Context, req *proto.DeleteUserRequest) (*proto.DeleteUserResponse, error)
Delete Delete
func (*UserService) Get ¶
func (s *UserService) Get(ctx context.Context, req *proto.GetUserRequest) (*proto.GetUserResponse, error)
Get Get
func (*UserService) List ¶
func (s *UserService) List(ctx context.Context, req *proto.ListUserRequest) (*proto.ListUserResponse, error)
List List
func (*UserService) Update ¶
func (s *UserService) Update(ctx context.Context, req *proto.UpdateUserRequest) (*proto.UpdateUserResponse, error)
Update Update
Click to show internal directories.
Click to hide internal directories.