ms-tester/internal/contests/delivery.go

14 lines
519 B
Go
Raw Permalink Normal View History

2024-10-09 18:55:16 +00:00
package contests
2024-10-13 14:01:36 +00:00
import (
"context"
contestv1 "git.sch9.ru/new_gate/ms-tester/pkg/go/gen/proto/contest/v1"
"google.golang.org/protobuf/types/known/emptypb"
)
2024-10-09 18:55:16 +00:00
type ContestHandlers interface {
2024-10-13 14:01:36 +00:00
CreateContest(ctx context.Context, req *contestv1.CreateContestRequest) (*contestv1.CreateContestResponse, error)
ReadContest(ctx context.Context, req *contestv1.ReadContestRequest) (*contestv1.ReadContestResponse, error)
DeleteContest(ctx context.Context, req *contestv1.DeleteContestRequest) (*emptypb.Empty, error)
2024-10-09 18:55:16 +00:00
}