service

package
v0.0.0-...-0bd2313 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2021 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service struct {
	// contains filtered or unexported fields
}

func NewAppService

func NewAppService(dx serviceDependencies) *Service

func (*Service) ChangePassword

func (s *Service) ChangePassword(ctx context.Context, req *user.ChangePasswordRequest) error

func (*Service) CreateExam

func (s *Service) CreateExam(ctx context.Context, req *exam.CreateExamRequest) (*exam.Exam, error)

func (*Service) CreateQuestion

func (s *Service) CreateQuestion(ctx context.Context, req *question.CreateQuestionRequest) (*question.Question, error)

func (*Service) DeleteQuestion

func (s *Service) DeleteQuestion(ctx context.Context, id uint64) error

func (*Service) DeleteSession

func (s *Service) DeleteSession(ctx context.Context, req *session.DeleteSessionRequest) error

func (*Service) DeleteSessionByToken

func (s *Service) DeleteSessionByToken(ctx context.Context, req *session.DeleteSessionByTokenRequest) error

func (*Service) GetExam

func (s *Service) GetExam(ctx context.Context, id uint64) (*exam.Exam, error)

func (*Service) GetExamStats

func (s *Service) GetExamStats(ctx context.Context, id uint64) (*exam.ExamStatsResponse, error)

func (*Service) GetQuestion

func (s *Service) GetQuestion(ctx context.Context, id uint64) (*question.Question, error)

func (*Service) GetQuestionOptions

func (s *Service) GetQuestionOptions(ctx context.Context, id uint64) ([]*question.Option, error)

func (*Service) GetResult

func (s *Service) GetResult(ctx context.Context, id uint64) (*exam.Result, error)

func (*Service) GetSession

func (s *Service) GetSession(ctx context.Context, token string) (*session.Session, error)

func (*Service) GetUser

func (s *Service) GetUser(ctx context.Context, id uint64) (*user.User, error)

func (*Service) GetUserByEmail

func (s *Service) GetUserByEmail(ctx context.Context, email string) (*user.User, error)

func (*Service) GetUserByUsername

func (s *Service) GetUserByUsername(ctx context.Context, username string) (*user.User, error)

func (*Service) IssueSession

func (s *Service) IssueSession(ctx context.Context, req *session.SigninRequest) (*session.Session, error)

func (*Service) OAuthIssueSession

func (s *Service) OAuthIssueSession(ctx context.Context, req *session.OAuthSignRequest) (*session.Session, error)

func (*Service) Participate

func (s *Service) Participate(ctx context.Context, u *user.User, e *exam.Exam) (*exam.Result, error)

func (*Service) PublishExam

func (s *Service) PublishExam(ctx context.Context, e *exam.Exam) error

func (*Service) RegisterUser

func (s *Service) RegisterUser(ctx context.Context, req *user.SignupRequest) (*user.User, error)

func (*Service) ResetPassword

func (s *Service) ResetPassword(ctx context.Context, req *user.ResetPasswordRequest) error

func (*Service) SearchExam

func (*Service) SendResetPassword

func (s *Service) SendResetPassword(ctx context.Context, req *user.SendResetPasswordRequest) error

func (*Service) SendVerification

func (s *Service) SendVerification(ctx context.Context, req *user.SendVerificationRequest) error

func (*Service) SetPassword

func (s *Service) SetPassword(ctx context.Context, req *user.SetPasswordRequest) error

func (*Service) SetPreference

func (s *Service) SetPreference(ctx context.Context, req *user.SetPreferenceRequest) error

func (*Service) SubmitAnswer

func (s *Service) SubmitAnswer(ctx context.Context, req *exam.SubmitAnswerRequest) error

func (*Service) UpdateExam

func (s *Service) UpdateExam(ctx context.Context, req *exam.UpdateExamRequest) error

func (*Service) UpdateProfile

func (s *Service) UpdateProfile(ctx context.Context, req *user.UpdateProfileRequest) error

func (*Service) UpdateQuestion

func (s *Service) UpdateQuestion(ctx context.Context, req *question.CreateQuestionRequest) error

func (*Service) Verify

func (s *Service) Verify(ctx context.Context, req *user.VerificationRequest) error

Jump to

Keyboard shortcuts

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