biz

package
v0.0.0-...-52a3571 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2022 License: MIT Imports: 5 Imported by: 0

README

Biz

Documentation

Index

Constants

This section is empty.

Variables

ProviderSet is biz providers.

Functions

This section is empty.

Types

type Judger

type Judger struct {
	Hello string
}

Judger is a Judger model.

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

func (uc *JudgerUsecase) CreateJudger(ctx context.Context, j *Judger) (*Judger, error)

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)

Jump to

Keyboard shortcuts

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