Documentation ¶
Index ¶
- Variables
- type Api
- func (a *Api) ChangePassword(req *grpc2.ChangePasswordRequest) error
- func (a *Api) ChangeProfile(req *grpc2.ChangeProfileRequest) error
- func (a *Api) GetProfile(req *grpc2.GetProfileRequest) (*response.UserProfile, error)
- func (a *Api) Login(req *request.Login) (*grpc2.LoginResponse, error)
- func (a *Api) Logout(req *grpc2.LogoutRequest) error
- func (a *Api) Register(req *request.Register) (*grpc2.RegisterResponse, error)
- type Auth
- func (s *Auth) ChangePassword(_ context.Context, req *grpc2.ChangePasswordRequest) (*grpc2.EmptyResponse, error)
- func (s *Auth) ChangeProfile(_ context.Context, req *grpc2.ChangeProfileRequest) (*grpc2.EmptyResponse, error)
- func (s *Auth) Check(_ context.Context, req *grpc2.CheckRequest) (*grpc2.CheckResponse, error)
- func (s *Auth) GetProfile(_ context.Context, req *grpc2.GetProfileRequest) (*grpc2.GetProfileResponse, error)
- func (s *Auth) Login(_ context.Context, req *grpc2.LoginRequest) (*grpc2.LoginResponse, error)
- func (s *Auth) Logout(_ context.Context, req *grpc2.LogoutRequest) (*grpc2.EmptyResponse, error)
- func (s *Auth) Register(_ context.Context, req *grpc2.RegisterRequest) (*grpc2.RegisterResponse, error)
- type TaskService
- func (s *TaskService) Answer(req *request.Answer) error
- func (s *TaskService) GetAnswers(req *request.GetAnswers) (*response.GetAnswers, error)
- func (s *TaskService) GetTask(req *request.GetTask) (*response.GetTask, error)
- func (s *TaskService) GetTaskTypes(req *request.GetTaskTypes) (response.GetTaskTypes, error)
- func (s *TaskService) TakeTask(req *request.TakeTask) error
- func (s *TaskService) UploadPhoto(req request.UploadPhoto) error
- type TeamService
- func (t *TeamService) DeleteFromTeam(req *request.DeleteFromTeam) error
- func (t *TeamService) DeleteTeam(req *request.DeleteTeam) error
- func (t *TeamService) GetTeam(req *request.GetTeam) (*response.GetTeam, error)
- func (t *TeamService) InviteToTeam(req *request.InviteToTeam) error
- func (t *TeamService) RegisterTeam(req *request.RegisterTeam) (response.RegisterTeam, error)
- func (t *TeamService) UpdateMember(req *request.UpdateMember) error
- func (t *TeamService) UpdateTeam(req *request.ChangeTeam) (response.UpdateTeam, error)
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Api ¶
type Api struct {
AuthClient grpc2.AuthClient
}
func NewApi ¶
func NewApi(conn grpc.ClientConnInterface) *Api
func (*Api) ChangePassword ¶
func (a *Api) ChangePassword(req *grpc2.ChangePasswordRequest) error
func (*Api) ChangeProfile ¶
func (a *Api) ChangeProfile(req *grpc2.ChangeProfileRequest) error
func (*Api) GetProfile ¶
func (a *Api) GetProfile(req *grpc2.GetProfileRequest) (*response.UserProfile, error)
type Auth ¶
type Auth struct { SessionCache cache.ICache[string, cache2.Session] Repository repository.IUserAuthStorage grpc2.UnimplementedAuthServer }
func NewAuth ¶
func NewAuth(sc cache.ICache[string, cache2.Session], r repository.IUserAuthStorage) *Auth
func (*Auth) ChangePassword ¶
func (s *Auth) ChangePassword(_ context.Context, req *grpc2.ChangePasswordRequest) (*grpc2.EmptyResponse, error)
func (*Auth) ChangeProfile ¶
func (s *Auth) ChangeProfile(_ context.Context, req *grpc2.ChangeProfileRequest) (*grpc2.EmptyResponse, error)
func (*Auth) Check ¶
func (s *Auth) Check(_ context.Context, req *grpc2.CheckRequest) (*grpc2.CheckResponse, error)
func (*Auth) GetProfile ¶
func (s *Auth) GetProfile(_ context.Context, req *grpc2.GetProfileRequest) (*grpc2.GetProfileResponse, error)
func (*Auth) Login ¶
func (s *Auth) Login(_ context.Context, req *grpc2.LoginRequest) (*grpc2.LoginResponse, error)
func (*Auth) Logout ¶
func (s *Auth) Logout(_ context.Context, req *grpc2.LogoutRequest) (*grpc2.EmptyResponse, error)
func (*Auth) Register ¶
func (s *Auth) Register(_ context.Context, req *grpc2.RegisterRequest) (*grpc2.RegisterResponse, error)
type TaskService ¶
type TaskService struct {
// contains filtered or unexported fields
}
func NewTaskService ¶
func NewTaskService(conn grpc.ClientConnInterface, r repository.TaskStorage) *TaskService
func (*TaskService) GetAnswers ¶
func (s *TaskService) GetAnswers(req *request.GetAnswers) (*response.GetAnswers, error)
func (*TaskService) GetTaskTypes ¶
func (s *TaskService) GetTaskTypes(req *request.GetTaskTypes) (response.GetTaskTypes, error)
func (*TaskService) UploadPhoto ¶
func (s *TaskService) UploadPhoto(req request.UploadPhoto) error
type TeamService ¶
type TeamService struct {
// contains filtered or unexported fields
}
func NewTeamService ¶
func NewTeamService(conn grpc.ClientConnInterface, r repository.TeamStorage) *TeamService
func (*TeamService) DeleteFromTeam ¶
func (t *TeamService) DeleteFromTeam(req *request.DeleteFromTeam) error
func (*TeamService) DeleteTeam ¶
func (t *TeamService) DeleteTeam(req *request.DeleteTeam) error
func (*TeamService) InviteToTeam ¶
func (t *TeamService) InviteToTeam(req *request.InviteToTeam) error
func (*TeamService) RegisterTeam ¶
func (t *TeamService) RegisterTeam(req *request.RegisterTeam) (response.RegisterTeam, error)
func (*TeamService) UpdateMember ¶
func (t *TeamService) UpdateMember(req *request.UpdateMember) error
func (*TeamService) UpdateTeam ¶
func (t *TeamService) UpdateTeam(req *request.ChangeTeam) (response.UpdateTeam, error)
Click to show internal directories.
Click to hide internal directories.