Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ProviderSet = wire.NewSet(NewJudgerUsecase)
ProviderSet is biz providers.
Functions ¶
This section is empty.
Types ¶
type JudgerRepo ¶
type JudgerRepo interface { Save(context.Context, *Judger) (*Judger, error) Update(context.Context, *Judger) (*Judger, error) FindByID(context.Context, int64) (*Judger, error) ListByHello(context.Context, string) ([]*Judger, error) ProcessRequest(context.Context, *proto.JudgeRequestProto) (*v1.SubmitJudgerReply, error) }
JudgerRepo is a Judger repo.
type JudgerUsecase ¶
type JudgerUsecase struct {
// contains filtered or unexported fields
}
JudgerUsecase is a Judger usecase.
func NewJudgerUsecase ¶
func NewJudgerUsecase(repo JudgerRepo, logger log.Logger) *JudgerUsecase
NewJudgerUsecase new a Judger usecase.
func (*JudgerUsecase) CreateJudger ¶
CreateJudger creates a Judger, and returns the new Judger.
func (*JudgerUsecase) ProcessRequest ¶
func (uc *JudgerUsecase) ProcessRequest(ctx context.Context, judgeRequest *proto.JudgeRequestProto) (*v1.SubmitJudgerReply, error)
Click to show internal directories.
Click to hide internal directories.