testycool

package
v0.0.0-...-b8330c8 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2022 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Overview

Package testycool is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Package testycool is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Package testycool is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Package testycool is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Package testycool is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Package testycool is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Package testycool is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Package testycool is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

This section is empty.

Variables

View Source
var (
	Exam_Status_name = map[int32]string{
		0: "UNKNOWN",
		1: "WAITING",
		2: "STARTED",
		3: "DONE",
	}
	Exam_Status_value = map[string]int32{
		"UNKNOWN": 0,
		"WAITING": 1,
		"STARTED": 2,
		"DONE":    3,
	}
)

Enum value maps for Exam_Status.

View Source
var (
	Question_Type_name = map[int32]string{
		0: "UNKNOWN",
		1: "MULTIPLE_CHOICE",
		2: "ESSAY",
	}
	Question_Type_value = map[string]int32{
		"UNKNOWN":         0,
		"MULTIPLE_CHOICE": 1,
		"ESSAY":           2,
	}
)

Enum value maps for Question_Type.

View Source
var (
	TextFormat_name = map[int32]string{
		0: "TEXT_FORMAT_UNKNOWN",
		1: "TEXT_FORMAT_PLAIN",
		2: "TEXT_FORMAT_HTML",
		3: "TEXT_FORMAT_MARKDOWN",
	}
	TextFormat_value = map[string]int32{
		"TEXT_FORMAT_UNKNOWN":  0,
		"TEXT_FORMAT_PLAIN":    1,
		"TEXT_FORMAT_HTML":     2,
		"TEXT_FORMAT_MARKDOWN": 3,
	}
)

Enum value maps for TextFormat.

View Source
var AnalyticsService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "testycool.v1.AnalyticsService",
	HandlerType: (*AnalyticsServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetAnalytics",
			Handler:    _AnalyticsService_GetAnalytics_Handler,
		},
		{
			MethodName: "ListAnalytics",
			Handler:    _AnalyticsService_ListAnalytics_Handler,
		},
		{
			MethodName: "CreateAnalytics",
			Handler:    _AnalyticsService_CreateAnalytics_Handler,
		},
		{
			MethodName: "UpdateAnalytics",
			Handler:    _AnalyticsService_UpdateAnalytics_Handler,
		},
		{
			MethodName: "DeleteAnalytics",
			Handler:    _AnalyticsService_DeleteAnalytics_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "testycool/analytics.proto",
}

AnalyticsService_ServiceDesc is the grpc.ServiceDesc for AnalyticsService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var AnswerService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "testycool.v1.AnswerService",
	HandlerType: (*AnswerServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetAnswer",
			Handler:    _AnswerService_GetAnswer_Handler,
		},
		{
			MethodName: "ListAnswers",
			Handler:    _AnswerService_ListAnswers_Handler,
		},
		{
			MethodName: "CreateAnswer",
			Handler:    _AnswerService_CreateAnswer_Handler,
		},
		{
			MethodName: "UpdateAnswer",
			Handler:    _AnswerService_UpdateAnswer_Handler,
		},
		{
			MethodName: "DeleteAnswer",
			Handler:    _AnswerService_DeleteAnswer_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "testycool/answer.proto",
}

AnswerService_ServiceDesc is the grpc.ServiceDesc for AnswerService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var AttemptService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "testycool.v1.AttemptService",
	HandlerType: (*AttemptServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetAttempt",
			Handler:    _AttemptService_GetAttempt_Handler,
		},
		{
			MethodName: "ListAttempts",
			Handler:    _AttemptService_ListAttempts_Handler,
		},
		{
			MethodName: "CreateAttempt",
			Handler:    _AttemptService_CreateAttempt_Handler,
		},
		{
			MethodName: "UpdateAttempt",
			Handler:    _AttemptService_UpdateAttempt_Handler,
		},
		{
			MethodName: "DeleteAttempt",
			Handler:    _AttemptService_DeleteAttempt_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "testycool/attempt.proto",
}

AttemptService_ServiceDesc is the grpc.ServiceDesc for AttemptService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var AuthService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "testycool.v1.AuthService",
	HandlerType: (*AuthServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetAdminToken",
			Handler:    _AuthService_GetAdminToken_Handler,
		},
		{
			MethodName: "GetParticipantToken",
			Handler:    _AuthService_GetParticipantToken_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "testycool/auth.proto",
}

AuthService_ServiceDesc is the grpc.ServiceDesc for AuthService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var ChoiceService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "testycool.v1.ChoiceService",
	HandlerType: (*ChoiceServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetChoice",
			Handler:    _ChoiceService_GetChoice_Handler,
		},
		{
			MethodName: "ListChoices",
			Handler:    _ChoiceService_ListChoices_Handler,
		},
		{
			MethodName: "CreateChoice",
			Handler:    _ChoiceService_CreateChoice_Handler,
		},
		{
			MethodName: "UpdateChoice",
			Handler:    _ChoiceService_UpdateChoice_Handler,
		},
		{
			MethodName: "DeleteChoice",
			Handler:    _ChoiceService_DeleteChoice_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "testycool/choice.proto",
}

ChoiceService_ServiceDesc is the grpc.ServiceDesc for ChoiceService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var ExamService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "testycool.v1.ExamService",
	HandlerType: (*ExamServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetExam",
			Handler:    _ExamService_GetExam_Handler,
		},
		{
			MethodName: "ListExams",
			Handler:    _ExamService_ListExams_Handler,
		},
		{
			MethodName: "CreateExam",
			Handler:    _ExamService_CreateExam_Handler,
		},
		{
			MethodName: "UpdateExam",
			Handler:    _ExamService_UpdateExam_Handler,
		},
		{
			MethodName: "DeleteExam",
			Handler:    _ExamService_DeleteExam_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "testycool/exam.proto",
}

ExamService_ServiceDesc is the grpc.ServiceDesc for ExamService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var File_testycool_analytics_proto protoreflect.FileDescriptor
View Source
var File_testycool_answer_proto protoreflect.FileDescriptor
View Source
var File_testycool_attempt_proto protoreflect.FileDescriptor
View Source
var File_testycool_auth_proto protoreflect.FileDescriptor
View Source
var File_testycool_choice_proto protoreflect.FileDescriptor
View Source
var File_testycool_exam_proto protoreflect.FileDescriptor
View Source
var File_testycool_participant_proto protoreflect.FileDescriptor
View Source
var File_testycool_question_proto protoreflect.FileDescriptor
View Source
var File_testycool_text_format_proto protoreflect.FileDescriptor
View Source
var ParticipantService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "testycool.v1.ParticipantService",
	HandlerType: (*ParticipantServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetParticipant",
			Handler:    _ParticipantService_GetParticipant_Handler,
		},
		{
			MethodName: "ListParticipants",
			Handler:    _ParticipantService_ListParticipants_Handler,
		},
		{
			MethodName: "CreateParticipant",
			Handler:    _ParticipantService_CreateParticipant_Handler,
		},
		{
			MethodName: "UpdateParticipant",
			Handler:    _ParticipantService_UpdateParticipant_Handler,
		},
		{
			MethodName: "DeleteParticipant",
			Handler:    _ParticipantService_DeleteParticipant_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "testycool/participant.proto",
}

ParticipantService_ServiceDesc is the grpc.ServiceDesc for ParticipantService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var QuestionService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "testycool.v1.QuestionService",
	HandlerType: (*QuestionServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetQuestion",
			Handler:    _QuestionService_GetQuestion_Handler,
		},
		{
			MethodName: "ListQuestions",
			Handler:    _QuestionService_ListQuestions_Handler,
		},
		{
			MethodName: "CreateQuestion",
			Handler:    _QuestionService_CreateQuestion_Handler,
		},
		{
			MethodName: "UpdateQuestion",
			Handler:    _QuestionService_UpdateQuestion_Handler,
		},
		{
			MethodName: "DeleteQuestion",
			Handler:    _QuestionService_DeleteQuestion_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "testycool/question.proto",
}

QuestionService_ServiceDesc is the grpc.ServiceDesc for QuestionService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterAnalyticsServiceHandler

func RegisterAnalyticsServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterAnalyticsServiceHandler registers the http handlers for service AnalyticsService to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterAnalyticsServiceHandlerClient

func RegisterAnalyticsServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client AnalyticsServiceClient) error

RegisterAnalyticsServiceHandlerClient registers the http handlers for service AnalyticsService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "AnalyticsServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "AnalyticsServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "AnalyticsServiceClient" to call the correct interceptors.

func RegisterAnalyticsServiceHandlerFromEndpoint

func RegisterAnalyticsServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterAnalyticsServiceHandlerFromEndpoint is same as RegisterAnalyticsServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterAnalyticsServiceHandlerServer

func RegisterAnalyticsServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server AnalyticsServiceServer) error

RegisterAnalyticsServiceHandlerServer registers the http handlers for service AnalyticsService to "mux". UnaryRPC :call AnalyticsServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterAnalyticsServiceHandlerFromEndpoint instead.

func RegisterAnalyticsServiceServer

func RegisterAnalyticsServiceServer(s grpc.ServiceRegistrar, srv AnalyticsServiceServer)

func RegisterAnswerServiceHandler

func RegisterAnswerServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterAnswerServiceHandler registers the http handlers for service AnswerService to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterAnswerServiceHandlerClient

func RegisterAnswerServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client AnswerServiceClient) error

RegisterAnswerServiceHandlerClient registers the http handlers for service AnswerService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "AnswerServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "AnswerServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "AnswerServiceClient" to call the correct interceptors.

func RegisterAnswerServiceHandlerFromEndpoint

func RegisterAnswerServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterAnswerServiceHandlerFromEndpoint is same as RegisterAnswerServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterAnswerServiceHandlerServer

func RegisterAnswerServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server AnswerServiceServer) error

RegisterAnswerServiceHandlerServer registers the http handlers for service AnswerService to "mux". UnaryRPC :call AnswerServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterAnswerServiceHandlerFromEndpoint instead.

func RegisterAnswerServiceServer

func RegisterAnswerServiceServer(s grpc.ServiceRegistrar, srv AnswerServiceServer)

func RegisterAttemptServiceHandler

func RegisterAttemptServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterAttemptServiceHandler registers the http handlers for service AttemptService to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterAttemptServiceHandlerClient

func RegisterAttemptServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client AttemptServiceClient) error

RegisterAttemptServiceHandlerClient registers the http handlers for service AttemptService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "AttemptServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "AttemptServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "AttemptServiceClient" to call the correct interceptors.

func RegisterAttemptServiceHandlerFromEndpoint

func RegisterAttemptServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterAttemptServiceHandlerFromEndpoint is same as RegisterAttemptServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterAttemptServiceHandlerServer

func RegisterAttemptServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server AttemptServiceServer) error

RegisterAttemptServiceHandlerServer registers the http handlers for service AttemptService to "mux". UnaryRPC :call AttemptServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterAttemptServiceHandlerFromEndpoint instead.

func RegisterAttemptServiceServer

func RegisterAttemptServiceServer(s grpc.ServiceRegistrar, srv AttemptServiceServer)

func RegisterAuthServiceHandler

func RegisterAuthServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterAuthServiceHandler registers the http handlers for service AuthService to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterAuthServiceHandlerClient

func RegisterAuthServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client AuthServiceClient) error

RegisterAuthServiceHandlerClient registers the http handlers for service AuthService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "AuthServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "AuthServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "AuthServiceClient" to call the correct interceptors.

func RegisterAuthServiceHandlerFromEndpoint

func RegisterAuthServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterAuthServiceHandlerFromEndpoint is same as RegisterAuthServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterAuthServiceHandlerServer

func RegisterAuthServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server AuthServiceServer) error

RegisterAuthServiceHandlerServer registers the http handlers for service AuthService to "mux". UnaryRPC :call AuthServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterAuthServiceHandlerFromEndpoint instead.

func RegisterAuthServiceServer

func RegisterAuthServiceServer(s grpc.ServiceRegistrar, srv AuthServiceServer)

func RegisterChoiceServiceHandler

func RegisterChoiceServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterChoiceServiceHandler registers the http handlers for service ChoiceService to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterChoiceServiceHandlerClient

func RegisterChoiceServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client ChoiceServiceClient) error

RegisterChoiceServiceHandlerClient registers the http handlers for service ChoiceService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "ChoiceServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "ChoiceServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "ChoiceServiceClient" to call the correct interceptors.

func RegisterChoiceServiceHandlerFromEndpoint

func RegisterChoiceServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterChoiceServiceHandlerFromEndpoint is same as RegisterChoiceServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterChoiceServiceHandlerServer

func RegisterChoiceServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server ChoiceServiceServer) error

RegisterChoiceServiceHandlerServer registers the http handlers for service ChoiceService to "mux". UnaryRPC :call ChoiceServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterChoiceServiceHandlerFromEndpoint instead.

func RegisterChoiceServiceServer

func RegisterChoiceServiceServer(s grpc.ServiceRegistrar, srv ChoiceServiceServer)

func RegisterExamServiceHandler

func RegisterExamServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterExamServiceHandler registers the http handlers for service ExamService to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterExamServiceHandlerClient

func RegisterExamServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client ExamServiceClient) error

RegisterExamServiceHandlerClient registers the http handlers for service ExamService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "ExamServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "ExamServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "ExamServiceClient" to call the correct interceptors.

func RegisterExamServiceHandlerFromEndpoint

func RegisterExamServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterExamServiceHandlerFromEndpoint is same as RegisterExamServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterExamServiceHandlerServer

func RegisterExamServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server ExamServiceServer) error

RegisterExamServiceHandlerServer registers the http handlers for service ExamService to "mux". UnaryRPC :call ExamServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterExamServiceHandlerFromEndpoint instead.

func RegisterExamServiceServer

func RegisterExamServiceServer(s grpc.ServiceRegistrar, srv ExamServiceServer)

func RegisterParticipantServiceHandler

func RegisterParticipantServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterParticipantServiceHandler registers the http handlers for service ParticipantService to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterParticipantServiceHandlerClient

func RegisterParticipantServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client ParticipantServiceClient) error

RegisterParticipantServiceHandlerClient registers the http handlers for service ParticipantService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "ParticipantServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "ParticipantServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "ParticipantServiceClient" to call the correct interceptors.

func RegisterParticipantServiceHandlerFromEndpoint

func RegisterParticipantServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterParticipantServiceHandlerFromEndpoint is same as RegisterParticipantServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterParticipantServiceHandlerServer

func RegisterParticipantServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server ParticipantServiceServer) error

RegisterParticipantServiceHandlerServer registers the http handlers for service ParticipantService to "mux". UnaryRPC :call ParticipantServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterParticipantServiceHandlerFromEndpoint instead.

func RegisterParticipantServiceServer

func RegisterParticipantServiceServer(s grpc.ServiceRegistrar, srv ParticipantServiceServer)

func RegisterQuestionServiceHandler

func RegisterQuestionServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterQuestionServiceHandler registers the http handlers for service QuestionService to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterQuestionServiceHandlerClient

func RegisterQuestionServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QuestionServiceClient) error

RegisterQuestionServiceHandlerClient registers the http handlers for service QuestionService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "QuestionServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "QuestionServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "QuestionServiceClient" to call the correct interceptors.

func RegisterQuestionServiceHandlerFromEndpoint

func RegisterQuestionServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterQuestionServiceHandlerFromEndpoint is same as RegisterQuestionServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterQuestionServiceHandlerServer

func RegisterQuestionServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QuestionServiceServer) error

RegisterQuestionServiceHandlerServer registers the http handlers for service QuestionService to "mux". UnaryRPC :call QuestionServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterQuestionServiceHandlerFromEndpoint instead.

func RegisterQuestionServiceServer

func RegisterQuestionServiceServer(s grpc.ServiceRegistrar, srv QuestionServiceServer)

Types

type Analytics

type Analytics struct {
	Id            int32                  `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	ParticipantId int32                  `protobuf:"varint,2,opt,name=participant_id,json=participantId,proto3" json:"participant_id,omitempty"`
	ExamId        int32                  `protobuf:"varint,3,opt,name=exam_id,json=examId,proto3" json:"exam_id,omitempty"`
	Message       string                 `protobuf:"bytes,4,opt,name=message,proto3" json:"message,omitempty"`
	CreatedAt     *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	// contains filtered or unexported fields
}

func (*Analytics) Descriptor deprecated

func (*Analytics) Descriptor() ([]byte, []int)

Deprecated: Use Analytics.ProtoReflect.Descriptor instead.

func (*Analytics) GetCreatedAt

func (x *Analytics) GetCreatedAt() *timestamppb.Timestamp

func (*Analytics) GetExamId

func (x *Analytics) GetExamId() int32

func (*Analytics) GetId

func (x *Analytics) GetId() int32

func (*Analytics) GetMessage

func (x *Analytics) GetMessage() string

func (*Analytics) GetParticipantId

func (x *Analytics) GetParticipantId() int32

func (*Analytics) ProtoMessage

func (*Analytics) ProtoMessage()

func (*Analytics) ProtoReflect

func (x *Analytics) ProtoReflect() protoreflect.Message

func (*Analytics) Reset

func (x *Analytics) Reset()

func (*Analytics) String

func (x *Analytics) String() string

type AnalyticsServiceClient

type AnalyticsServiceClient interface {
	GetAnalytics(ctx context.Context, in *GetAnalyticsRequest, opts ...grpc.CallOption) (*GetAnalyticsResponse, error)
	ListAnalytics(ctx context.Context, in *ListAnalyticsRequest, opts ...grpc.CallOption) (*ListAnalyticsResponse, error)
	CreateAnalytics(ctx context.Context, in *CreateAnalyticsRequest, opts ...grpc.CallOption) (*CreateAnalyticsResponse, error)
	UpdateAnalytics(ctx context.Context, in *UpdateAnalyticsRequest, opts ...grpc.CallOption) (*UpdateAnalyticsResponse, error)
	DeleteAnalytics(ctx context.Context, in *DeleteAnalyticsRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
}

AnalyticsServiceClient is the client API for AnalyticsService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

type AnalyticsServiceServer

type AnalyticsServiceServer interface {
	GetAnalytics(context.Context, *GetAnalyticsRequest) (*GetAnalyticsResponse, error)
	ListAnalytics(context.Context, *ListAnalyticsRequest) (*ListAnalyticsResponse, error)
	CreateAnalytics(context.Context, *CreateAnalyticsRequest) (*CreateAnalyticsResponse, error)
	UpdateAnalytics(context.Context, *UpdateAnalyticsRequest) (*UpdateAnalyticsResponse, error)
	DeleteAnalytics(context.Context, *DeleteAnalyticsRequest) (*emptypb.Empty, error)
	// contains filtered or unexported methods
}

AnalyticsServiceServer is the server API for AnalyticsService service. All implementations must embed UnimplementedAnalyticsServiceServer for forward compatibility

type Answer

type Answer struct {
	Id            int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	ParticipantId int32 `protobuf:"varint,2,opt,name=participant_id,json=participantId,proto3" json:"participant_id,omitempty"`
	QuestionId    int32 `protobuf:"varint,3,opt,name=question_id,json=questionId,proto3" json:"question_id,omitempty"`
	// Types that are assignable to Content:
	//	*Answer_ChoiceId
	//	*Answer_Essay
	Content   isAnswer_Content `protobuf_oneof:"content"`
	IsCorrect bool             `protobuf:"varint,6,opt,name=is_correct,json=isCorrect,proto3" json:"is_correct,omitempty"`
	// contains filtered or unexported fields
}

func (*Answer) Descriptor deprecated

func (*Answer) Descriptor() ([]byte, []int)

Deprecated: Use Answer.ProtoReflect.Descriptor instead.

func (*Answer) GetChoiceId

func (x *Answer) GetChoiceId() int32

func (*Answer) GetContent

func (m *Answer) GetContent() isAnswer_Content

func (*Answer) GetEssay

func (x *Answer) GetEssay() *EssayAnswer

func (*Answer) GetId

func (x *Answer) GetId() int32

func (*Answer) GetIsCorrect

func (x *Answer) GetIsCorrect() bool

func (*Answer) GetParticipantId

func (x *Answer) GetParticipantId() int32

func (*Answer) GetQuestionId

func (x *Answer) GetQuestionId() int32

func (*Answer) ProtoMessage

func (*Answer) ProtoMessage()

func (*Answer) ProtoReflect

func (x *Answer) ProtoReflect() protoreflect.Message

func (*Answer) Reset

func (x *Answer) Reset()

func (*Answer) String

func (x *Answer) String() string

type AnswerServiceClient

type AnswerServiceClient interface {
	GetAnswer(ctx context.Context, in *GetAnswerRequest, opts ...grpc.CallOption) (*GetAnswerResponse, error)
	ListAnswers(ctx context.Context, in *ListAnswersRequest, opts ...grpc.CallOption) (*ListAnswersResponse, error)
	CreateAnswer(ctx context.Context, in *CreateAnswerRequest, opts ...grpc.CallOption) (*CreateAnswerResponse, error)
	UpdateAnswer(ctx context.Context, in *UpdateAnswerRequest, opts ...grpc.CallOption) (*UpdateAnswerResponse, error)
	DeleteAnswer(ctx context.Context, in *DeleteAnswerRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
}

AnswerServiceClient is the client API for AnswerService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

type AnswerServiceServer

type AnswerServiceServer interface {
	GetAnswer(context.Context, *GetAnswerRequest) (*GetAnswerResponse, error)
	ListAnswers(context.Context, *ListAnswersRequest) (*ListAnswersResponse, error)
	CreateAnswer(context.Context, *CreateAnswerRequest) (*CreateAnswerResponse, error)
	UpdateAnswer(context.Context, *UpdateAnswerRequest) (*UpdateAnswerResponse, error)
	DeleteAnswer(context.Context, *DeleteAnswerRequest) (*emptypb.Empty, error)
	// contains filtered or unexported methods
}

AnswerServiceServer is the server API for AnswerService service. All implementations must embed UnimplementedAnswerServiceServer for forward compatibility

type Answer_ChoiceId

type Answer_ChoiceId struct {
	ChoiceId int32 `protobuf:"varint,4,opt,name=choice_id,json=choiceId,proto3,oneof"`
}

type Answer_Essay

type Answer_Essay struct {
	Essay *EssayAnswer `protobuf:"bytes,5,opt,name=essay,proto3,oneof"`
}

type Attempt

type Attempt struct {
	Id            int32                  `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	ParticipantId int32                  `protobuf:"varint,2,opt,name=participant_id,json=participantId,proto3" json:"participant_id,omitempty"`
	ExamId        int32                  `protobuf:"varint,3,opt,name=exam_id,json=examId,proto3" json:"exam_id,omitempty"`
	Finished      bool                   `protobuf:"varint,4,opt,name=finished,proto3" json:"finished,omitempty"`
	Corrects      int32                  `protobuf:"varint,5,opt,name=corrects,proto3" json:"corrects,omitempty"`
	Wrongs        int32                  `protobuf:"varint,6,opt,name=wrongs,proto3" json:"wrongs,omitempty"`
	Unanswered    int32                  `protobuf:"varint,7,opt,name=unanswered,proto3" json:"unanswered,omitempty"`
	CreatedAt     *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	UpdatedAt     *timestamppb.Timestamp `protobuf:"bytes,9,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
	// contains filtered or unexported fields
}

func (*Attempt) Descriptor deprecated

func (*Attempt) Descriptor() ([]byte, []int)

Deprecated: Use Attempt.ProtoReflect.Descriptor instead.

func (*Attempt) GetCorrects

func (x *Attempt) GetCorrects() int32

func (*Attempt) GetCreatedAt

func (x *Attempt) GetCreatedAt() *timestamppb.Timestamp

func (*Attempt) GetExamId

func (x *Attempt) GetExamId() int32

func (*Attempt) GetFinished

func (x *Attempt) GetFinished() bool

func (*Attempt) GetId

func (x *Attempt) GetId() int32

func (*Attempt) GetParticipantId

func (x *Attempt) GetParticipantId() int32

func (*Attempt) GetUnanswered

func (x *Attempt) GetUnanswered() int32

func (*Attempt) GetUpdatedAt

func (x *Attempt) GetUpdatedAt() *timestamppb.Timestamp

func (*Attempt) GetWrongs

func (x *Attempt) GetWrongs() int32

func (*Attempt) ProtoMessage

func (*Attempt) ProtoMessage()

func (*Attempt) ProtoReflect

func (x *Attempt) ProtoReflect() protoreflect.Message

func (*Attempt) Reset

func (x *Attempt) Reset()

func (*Attempt) String

func (x *Attempt) String() string

type AttemptServiceClient

type AttemptServiceClient interface {
	GetAttempt(ctx context.Context, in *GetAttemptRequest, opts ...grpc.CallOption) (*GetAttemptResponse, error)
	ListAttempts(ctx context.Context, in *ListAttemptsRequest, opts ...grpc.CallOption) (*ListAttemptsResponse, error)
	CreateAttempt(ctx context.Context, in *CreateAttemptRequest, opts ...grpc.CallOption) (*CreateAttemptResponse, error)
	UpdateAttempt(ctx context.Context, in *UpdateAttemptRequest, opts ...grpc.CallOption) (*UpdateAttemptResponse, error)
	DeleteAttempt(ctx context.Context, in *DeleteAttemptRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
}

AttemptServiceClient is the client API for AttemptService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

type AttemptServiceServer

type AttemptServiceServer interface {
	GetAttempt(context.Context, *GetAttemptRequest) (*GetAttemptResponse, error)
	ListAttempts(context.Context, *ListAttemptsRequest) (*ListAttemptsResponse, error)
	CreateAttempt(context.Context, *CreateAttemptRequest) (*CreateAttemptResponse, error)
	UpdateAttempt(context.Context, *UpdateAttemptRequest) (*UpdateAttemptResponse, error)
	DeleteAttempt(context.Context, *DeleteAttemptRequest) (*emptypb.Empty, error)
	// contains filtered or unexported methods
}

AttemptServiceServer is the server API for AttemptService service. All implementations must embed UnimplementedAttemptServiceServer for forward compatibility

type AuthServiceClient

type AuthServiceClient interface {
	GetAdminToken(ctx context.Context, in *GetAdminTokenRequest, opts ...grpc.CallOption) (*GetAdminTokenResponse, error)
	GetParticipantToken(ctx context.Context, in *GetParticipantTokenRequest, opts ...grpc.CallOption) (*GetParticipantTokenResponse, error)
}

AuthServiceClient is the client API for AuthService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

type AuthServiceServer

type AuthServiceServer interface {
	GetAdminToken(context.Context, *GetAdminTokenRequest) (*GetAdminTokenResponse, error)
	GetParticipantToken(context.Context, *GetParticipantTokenRequest) (*GetParticipantTokenResponse, error)
	// contains filtered or unexported methods
}

AuthServiceServer is the server API for AuthService service. All implementations must embed UnimplementedAuthServiceServer for forward compatibility

type Choice

type Choice struct {
	Id         int32      `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	QuestionId int32      `protobuf:"varint,2,opt,name=question_id,json=questionId,proto3" json:"question_id,omitempty"`
	IsCorrect  bool       `protobuf:"varint,3,opt,name=is_correct,json=isCorrect,proto3" json:"is_correct,omitempty"`
	Format     TextFormat `protobuf:"varint,4,opt,name=format,proto3,enum=testycool.v1.TextFormat" json:"format,omitempty"`
	Content    string     `protobuf:"bytes,5,opt,name=content,proto3" json:"content,omitempty"`
	// contains filtered or unexported fields
}

func (*Choice) Descriptor deprecated

func (*Choice) Descriptor() ([]byte, []int)

Deprecated: Use Choice.ProtoReflect.Descriptor instead.

func (*Choice) GetContent

func (x *Choice) GetContent() string

func (*Choice) GetFormat

func (x *Choice) GetFormat() TextFormat

func (*Choice) GetId

func (x *Choice) GetId() int32

func (*Choice) GetIsCorrect

func (x *Choice) GetIsCorrect() bool

func (*Choice) GetQuestionId

func (x *Choice) GetQuestionId() int32

func (*Choice) ProtoMessage

func (*Choice) ProtoMessage()

func (*Choice) ProtoReflect

func (x *Choice) ProtoReflect() protoreflect.Message

func (*Choice) Reset

func (x *Choice) Reset()

func (*Choice) String

func (x *Choice) String() string

type ChoiceServiceClient

type ChoiceServiceClient interface {
	GetChoice(ctx context.Context, in *GetChoiceRequest, opts ...grpc.CallOption) (*GetChoiceResponse, error)
	ListChoices(ctx context.Context, in *ListChoicesRequest, opts ...grpc.CallOption) (*ListChoicesResponse, error)
	CreateChoice(ctx context.Context, in *CreateChoiceRequest, opts ...grpc.CallOption) (*CreateChoiceResponse, error)
	UpdateChoice(ctx context.Context, in *UpdateChoiceRequest, opts ...grpc.CallOption) (*UpdateChoiceResponse, error)
	DeleteChoice(ctx context.Context, in *DeleteChoiceRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
}

ChoiceServiceClient is the client API for ChoiceService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

type ChoiceServiceServer

type ChoiceServiceServer interface {
	GetChoice(context.Context, *GetChoiceRequest) (*GetChoiceResponse, error)
	ListChoices(context.Context, *ListChoicesRequest) (*ListChoicesResponse, error)
	CreateChoice(context.Context, *CreateChoiceRequest) (*CreateChoiceResponse, error)
	UpdateChoice(context.Context, *UpdateChoiceRequest) (*UpdateChoiceResponse, error)
	DeleteChoice(context.Context, *DeleteChoiceRequest) (*emptypb.Empty, error)
	// contains filtered or unexported methods
}

ChoiceServiceServer is the server API for ChoiceService service. All implementations must embed UnimplementedChoiceServiceServer for forward compatibility

type CreateAnalyticsRequest

type CreateAnalyticsRequest struct {
	ParticipantId int32                  `protobuf:"varint,1,opt,name=participant_id,json=participantId,proto3" json:"participant_id,omitempty"`
	ExamId        int32                  `protobuf:"varint,2,opt,name=exam_id,json=examId,proto3" json:"exam_id,omitempty"`
	Message       string                 `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"`
	CreatedAt     *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateAnalyticsRequest) Descriptor deprecated

func (*CreateAnalyticsRequest) Descriptor() ([]byte, []int)

Deprecated: Use CreateAnalyticsRequest.ProtoReflect.Descriptor instead.

func (*CreateAnalyticsRequest) GetCreatedAt

func (x *CreateAnalyticsRequest) GetCreatedAt() *timestamppb.Timestamp

func (*CreateAnalyticsRequest) GetExamId

func (x *CreateAnalyticsRequest) GetExamId() int32

func (*CreateAnalyticsRequest) GetMessage

func (x *CreateAnalyticsRequest) GetMessage() string

func (*CreateAnalyticsRequest) GetParticipantId

func (x *CreateAnalyticsRequest) GetParticipantId() int32

func (*CreateAnalyticsRequest) ProtoMessage

func (*CreateAnalyticsRequest) ProtoMessage()

func (*CreateAnalyticsRequest) ProtoReflect

func (x *CreateAnalyticsRequest) ProtoReflect() protoreflect.Message

func (*CreateAnalyticsRequest) Reset

func (x *CreateAnalyticsRequest) Reset()

func (*CreateAnalyticsRequest) String

func (x *CreateAnalyticsRequest) String() string

type CreateAnalyticsResponse

type CreateAnalyticsResponse struct {
	Analytics *Analytics `protobuf:"bytes,1,opt,name=analytics,proto3" json:"analytics,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateAnalyticsResponse) Descriptor deprecated

func (*CreateAnalyticsResponse) Descriptor() ([]byte, []int)

Deprecated: Use CreateAnalyticsResponse.ProtoReflect.Descriptor instead.

func (*CreateAnalyticsResponse) GetAnalytics

func (x *CreateAnalyticsResponse) GetAnalytics() *Analytics

func (*CreateAnalyticsResponse) ProtoMessage

func (*CreateAnalyticsResponse) ProtoMessage()

func (*CreateAnalyticsResponse) ProtoReflect

func (x *CreateAnalyticsResponse) ProtoReflect() protoreflect.Message

func (*CreateAnalyticsResponse) Reset

func (x *CreateAnalyticsResponse) Reset()

func (*CreateAnalyticsResponse) String

func (x *CreateAnalyticsResponse) String() string

type CreateAnswerRequest

type CreateAnswerRequest struct {
	ParticipantId int32 `protobuf:"varint,1,opt,name=participant_id,json=participantId,proto3" json:"participant_id,omitempty"`
	QuestionId    int32 `protobuf:"varint,2,opt,name=question_id,json=questionId,proto3" json:"question_id,omitempty"`
	// Types that are assignable to Content:
	//	*CreateAnswerRequest_ChoiceId
	//	*CreateAnswerRequest_Essay
	Content isCreateAnswerRequest_Content `protobuf_oneof:"content"`
	// contains filtered or unexported fields
}

func (*CreateAnswerRequest) Descriptor deprecated

func (*CreateAnswerRequest) Descriptor() ([]byte, []int)

Deprecated: Use CreateAnswerRequest.ProtoReflect.Descriptor instead.

func (*CreateAnswerRequest) GetChoiceId

func (x *CreateAnswerRequest) GetChoiceId() int32

func (*CreateAnswerRequest) GetContent

func (m *CreateAnswerRequest) GetContent() isCreateAnswerRequest_Content

func (*CreateAnswerRequest) GetEssay

func (x *CreateAnswerRequest) GetEssay() *EssayAnswer

func (*CreateAnswerRequest) GetParticipantId

func (x *CreateAnswerRequest) GetParticipantId() int32

func (*CreateAnswerRequest) GetQuestionId

func (x *CreateAnswerRequest) GetQuestionId() int32

func (*CreateAnswerRequest) ProtoMessage

func (*CreateAnswerRequest) ProtoMessage()

func (*CreateAnswerRequest) ProtoReflect

func (x *CreateAnswerRequest) ProtoReflect() protoreflect.Message

func (*CreateAnswerRequest) Reset

func (x *CreateAnswerRequest) Reset()

func (*CreateAnswerRequest) String

func (x *CreateAnswerRequest) String() string

type CreateAnswerRequest_ChoiceId

type CreateAnswerRequest_ChoiceId struct {
	ChoiceId int32 `protobuf:"varint,3,opt,name=choice_id,json=choiceId,proto3,oneof"`
}

type CreateAnswerRequest_Essay

type CreateAnswerRequest_Essay struct {
	Essay *EssayAnswer `protobuf:"bytes,4,opt,name=essay,proto3,oneof"`
}

type CreateAnswerResponse

type CreateAnswerResponse struct {
	Answer *Answer `protobuf:"bytes,1,opt,name=answer,proto3" json:"answer,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateAnswerResponse) Descriptor deprecated

func (*CreateAnswerResponse) Descriptor() ([]byte, []int)

Deprecated: Use CreateAnswerResponse.ProtoReflect.Descriptor instead.

func (*CreateAnswerResponse) GetAnswer

func (x *CreateAnswerResponse) GetAnswer() *Answer

func (*CreateAnswerResponse) ProtoMessage

func (*CreateAnswerResponse) ProtoMessage()

func (*CreateAnswerResponse) ProtoReflect

func (x *CreateAnswerResponse) ProtoReflect() protoreflect.Message

func (*CreateAnswerResponse) Reset

func (x *CreateAnswerResponse) Reset()

func (*CreateAnswerResponse) String

func (x *CreateAnswerResponse) String() string

type CreateAttemptRequest

type CreateAttemptRequest struct {
	ParticipantId int32                  `protobuf:"varint,1,opt,name=participant_id,json=participantId,proto3" json:"participant_id,omitempty"`
	ExamId        int32                  `protobuf:"varint,2,opt,name=exam_id,json=examId,proto3" json:"exam_id,omitempty"`
	CreatedAt     *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateAttemptRequest) Descriptor deprecated

func (*CreateAttemptRequest) Descriptor() ([]byte, []int)

Deprecated: Use CreateAttemptRequest.ProtoReflect.Descriptor instead.

func (*CreateAttemptRequest) GetCreatedAt

func (x *CreateAttemptRequest) GetCreatedAt() *timestamppb.Timestamp

func (*CreateAttemptRequest) GetExamId

func (x *CreateAttemptRequest) GetExamId() int32

func (*CreateAttemptRequest) GetParticipantId

func (x *CreateAttemptRequest) GetParticipantId() int32

func (*CreateAttemptRequest) ProtoMessage

func (*CreateAttemptRequest) ProtoMessage()

func (*CreateAttemptRequest) ProtoReflect

func (x *CreateAttemptRequest) ProtoReflect() protoreflect.Message

func (*CreateAttemptRequest) Reset

func (x *CreateAttemptRequest) Reset()

func (*CreateAttemptRequest) String

func (x *CreateAttemptRequest) String() string

type CreateAttemptResponse

type CreateAttemptResponse struct {
	Attempt *Attempt `protobuf:"bytes,1,opt,name=attempt,proto3" json:"attempt,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateAttemptResponse) Descriptor deprecated

func (*CreateAttemptResponse) Descriptor() ([]byte, []int)

Deprecated: Use CreateAttemptResponse.ProtoReflect.Descriptor instead.

func (*CreateAttemptResponse) GetAttempt

func (x *CreateAttemptResponse) GetAttempt() *Attempt

func (*CreateAttemptResponse) ProtoMessage

func (*CreateAttemptResponse) ProtoMessage()

func (*CreateAttemptResponse) ProtoReflect

func (x *CreateAttemptResponse) ProtoReflect() protoreflect.Message

func (*CreateAttemptResponse) Reset

func (x *CreateAttemptResponse) Reset()

func (*CreateAttemptResponse) String

func (x *CreateAttemptResponse) String() string

type CreateChoiceRequest

type CreateChoiceRequest struct {
	QuestionId int32      `protobuf:"varint,1,opt,name=question_id,json=questionId,proto3" json:"question_id,omitempty"`
	IsCorrect  bool       `protobuf:"varint,2,opt,name=is_correct,json=isCorrect,proto3" json:"is_correct,omitempty"`
	Format     TextFormat `protobuf:"varint,3,opt,name=format,proto3,enum=testycool.v1.TextFormat" json:"format,omitempty"`
	Content    string     `protobuf:"bytes,4,opt,name=content,proto3" json:"content,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateChoiceRequest) Descriptor deprecated

func (*CreateChoiceRequest) Descriptor() ([]byte, []int)

Deprecated: Use CreateChoiceRequest.ProtoReflect.Descriptor instead.

func (*CreateChoiceRequest) GetContent

func (x *CreateChoiceRequest) GetContent() string

func (*CreateChoiceRequest) GetFormat

func (x *CreateChoiceRequest) GetFormat() TextFormat

func (*CreateChoiceRequest) GetIsCorrect

func (x *CreateChoiceRequest) GetIsCorrect() bool

func (*CreateChoiceRequest) GetQuestionId

func (x *CreateChoiceRequest) GetQuestionId() int32

func (*CreateChoiceRequest) ProtoMessage

func (*CreateChoiceRequest) ProtoMessage()

func (*CreateChoiceRequest) ProtoReflect

func (x *CreateChoiceRequest) ProtoReflect() protoreflect.Message

func (*CreateChoiceRequest) Reset

func (x *CreateChoiceRequest) Reset()

func (*CreateChoiceRequest) String

func (x *CreateChoiceRequest) String() string

type CreateChoiceResponse

type CreateChoiceResponse struct {
	Choice *Choice `protobuf:"bytes,1,opt,name=choice,proto3" json:"choice,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateChoiceResponse) Descriptor deprecated

func (*CreateChoiceResponse) Descriptor() ([]byte, []int)

Deprecated: Use CreateChoiceResponse.ProtoReflect.Descriptor instead.

func (*CreateChoiceResponse) GetChoice

func (x *CreateChoiceResponse) GetChoice() *Choice

func (*CreateChoiceResponse) ProtoMessage

func (*CreateChoiceResponse) ProtoMessage()

func (*CreateChoiceResponse) ProtoReflect

func (x *CreateChoiceResponse) ProtoReflect() protoreflect.Message

func (*CreateChoiceResponse) Reset

func (x *CreateChoiceResponse) Reset()

func (*CreateChoiceResponse) String

func (x *CreateChoiceResponse) String() string

type CreateExamRequest

type CreateExamRequest struct {
	Password  string                 `protobuf:"bytes,1,opt,name=password,proto3" json:"password,omitempty"`
	Title     string                 `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"`
	TimeLimit int32                  `protobuf:"varint,3,opt,name=time_limit,json=timeLimit,proto3" json:"time_limit,omitempty"`
	StartAt   *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=start_at,json=startAt,proto3" json:"start_at,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateExamRequest) Descriptor deprecated

func (*CreateExamRequest) Descriptor() ([]byte, []int)

Deprecated: Use CreateExamRequest.ProtoReflect.Descriptor instead.

func (*CreateExamRequest) GetPassword

func (x *CreateExamRequest) GetPassword() string

func (*CreateExamRequest) GetStartAt

func (x *CreateExamRequest) GetStartAt() *timestamppb.Timestamp

func (*CreateExamRequest) GetTimeLimit

func (x *CreateExamRequest) GetTimeLimit() int32

func (*CreateExamRequest) GetTitle

func (x *CreateExamRequest) GetTitle() string

func (*CreateExamRequest) ProtoMessage

func (*CreateExamRequest) ProtoMessage()

func (*CreateExamRequest) ProtoReflect

func (x *CreateExamRequest) ProtoReflect() protoreflect.Message

func (*CreateExamRequest) Reset

func (x *CreateExamRequest) Reset()

func (*CreateExamRequest) String

func (x *CreateExamRequest) String() string

type CreateExamResponse

type CreateExamResponse struct {
	Exam *Exam `protobuf:"bytes,1,opt,name=exam,proto3" json:"exam,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateExamResponse) Descriptor deprecated

func (*CreateExamResponse) Descriptor() ([]byte, []int)

Deprecated: Use CreateExamResponse.ProtoReflect.Descriptor instead.

func (*CreateExamResponse) GetExam

func (x *CreateExamResponse) GetExam() *Exam

func (*CreateExamResponse) ProtoMessage

func (*CreateExamResponse) ProtoMessage()

func (*CreateExamResponse) ProtoReflect

func (x *CreateExamResponse) ProtoReflect() protoreflect.Message

func (*CreateExamResponse) Reset

func (x *CreateExamResponse) Reset()

func (*CreateExamResponse) String

func (x *CreateExamResponse) String() string

type CreateParticipantRequest

type CreateParticipantRequest struct {
	ExamId int32  `protobuf:"varint,1,opt,name=exam_id,json=examId,proto3" json:"exam_id,omitempty"`
	Code   string `protobuf:"bytes,2,opt,name=code,proto3" json:"code,omitempty"`
	Name   string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateParticipantRequest) Descriptor deprecated

func (*CreateParticipantRequest) Descriptor() ([]byte, []int)

Deprecated: Use CreateParticipantRequest.ProtoReflect.Descriptor instead.

func (*CreateParticipantRequest) GetCode

func (x *CreateParticipantRequest) GetCode() string

func (*CreateParticipantRequest) GetExamId

func (x *CreateParticipantRequest) GetExamId() int32

func (*CreateParticipantRequest) GetName

func (x *CreateParticipantRequest) GetName() string

func (*CreateParticipantRequest) ProtoMessage

func (*CreateParticipantRequest) ProtoMessage()

func (*CreateParticipantRequest) ProtoReflect

func (x *CreateParticipantRequest) ProtoReflect() protoreflect.Message

func (*CreateParticipantRequest) Reset

func (x *CreateParticipantRequest) Reset()

func (*CreateParticipantRequest) String

func (x *CreateParticipantRequest) String() string

type CreateParticipantResponse

type CreateParticipantResponse struct {
	Participant *Participant `protobuf:"bytes,1,opt,name=participant,proto3" json:"participant,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateParticipantResponse) Descriptor deprecated

func (*CreateParticipantResponse) Descriptor() ([]byte, []int)

Deprecated: Use CreateParticipantResponse.ProtoReflect.Descriptor instead.

func (*CreateParticipantResponse) GetParticipant

func (x *CreateParticipantResponse) GetParticipant() *Participant

func (*CreateParticipantResponse) ProtoMessage

func (*CreateParticipantResponse) ProtoMessage()

func (*CreateParticipantResponse) ProtoReflect

func (*CreateParticipantResponse) Reset

func (x *CreateParticipantResponse) Reset()

func (*CreateParticipantResponse) String

func (x *CreateParticipantResponse) String() string

type CreateQuestionRequest

type CreateQuestionRequest struct {
	ExamId  int32         `protobuf:"varint,1,opt,name=exam_id,json=examId,proto3" json:"exam_id,omitempty"`
	Type    Question_Type `protobuf:"varint,2,opt,name=type,proto3,enum=testycool.v1.Question_Type" json:"type,omitempty"`
	Format  TextFormat    `protobuf:"varint,3,opt,name=format,proto3,enum=testycool.v1.TextFormat" json:"format,omitempty"`
	Content string        `protobuf:"bytes,4,opt,name=content,proto3" json:"content,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateQuestionRequest) Descriptor deprecated

func (*CreateQuestionRequest) Descriptor() ([]byte, []int)

Deprecated: Use CreateQuestionRequest.ProtoReflect.Descriptor instead.

func (*CreateQuestionRequest) GetContent

func (x *CreateQuestionRequest) GetContent() string

func (*CreateQuestionRequest) GetExamId

func (x *CreateQuestionRequest) GetExamId() int32

func (*CreateQuestionRequest) GetFormat

func (x *CreateQuestionRequest) GetFormat() TextFormat

func (*CreateQuestionRequest) GetType

func (x *CreateQuestionRequest) GetType() Question_Type

func (*CreateQuestionRequest) ProtoMessage

func (*CreateQuestionRequest) ProtoMessage()

func (*CreateQuestionRequest) ProtoReflect

func (x *CreateQuestionRequest) ProtoReflect() protoreflect.Message

func (*CreateQuestionRequest) Reset

func (x *CreateQuestionRequest) Reset()

func (*CreateQuestionRequest) String

func (x *CreateQuestionRequest) String() string

type CreateQuestionResponse

type CreateQuestionResponse struct {
	Question *Question `protobuf:"bytes,1,opt,name=question,proto3" json:"question,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateQuestionResponse) Descriptor deprecated

func (*CreateQuestionResponse) Descriptor() ([]byte, []int)

Deprecated: Use CreateQuestionResponse.ProtoReflect.Descriptor instead.

func (*CreateQuestionResponse) GetQuestion

func (x *CreateQuestionResponse) GetQuestion() *Question

func (*CreateQuestionResponse) ProtoMessage

func (*CreateQuestionResponse) ProtoMessage()

func (*CreateQuestionResponse) ProtoReflect

func (x *CreateQuestionResponse) ProtoReflect() protoreflect.Message

func (*CreateQuestionResponse) Reset

func (x *CreateQuestionResponse) Reset()

func (*CreateQuestionResponse) String

func (x *CreateQuestionResponse) String() string

type DeleteAnalyticsRequest

type DeleteAnalyticsRequest struct {
	Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteAnalyticsRequest) Descriptor deprecated

func (*DeleteAnalyticsRequest) Descriptor() ([]byte, []int)

Deprecated: Use DeleteAnalyticsRequest.ProtoReflect.Descriptor instead.

func (*DeleteAnalyticsRequest) GetId

func (x *DeleteAnalyticsRequest) GetId() int32

func (*DeleteAnalyticsRequest) ProtoMessage

func (*DeleteAnalyticsRequest) ProtoMessage()

func (*DeleteAnalyticsRequest) ProtoReflect

func (x *DeleteAnalyticsRequest) ProtoReflect() protoreflect.Message

func (*DeleteAnalyticsRequest) Reset

func (x *DeleteAnalyticsRequest) Reset()

func (*DeleteAnalyticsRequest) String

func (x *DeleteAnalyticsRequest) String() string

type DeleteAnswerRequest

type DeleteAnswerRequest struct {
	Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteAnswerRequest) Descriptor deprecated

func (*DeleteAnswerRequest) Descriptor() ([]byte, []int)

Deprecated: Use DeleteAnswerRequest.ProtoReflect.Descriptor instead.

func (*DeleteAnswerRequest) GetId

func (x *DeleteAnswerRequest) GetId() int32

func (*DeleteAnswerRequest) ProtoMessage

func (*DeleteAnswerRequest) ProtoMessage()

func (*DeleteAnswerRequest) ProtoReflect

func (x *DeleteAnswerRequest) ProtoReflect() protoreflect.Message

func (*DeleteAnswerRequest) Reset

func (x *DeleteAnswerRequest) Reset()

func (*DeleteAnswerRequest) String

func (x *DeleteAnswerRequest) String() string

type DeleteAttemptRequest

type DeleteAttemptRequest struct {
	Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteAttemptRequest) Descriptor deprecated

func (*DeleteAttemptRequest) Descriptor() ([]byte, []int)

Deprecated: Use DeleteAttemptRequest.ProtoReflect.Descriptor instead.

func (*DeleteAttemptRequest) GetId

func (x *DeleteAttemptRequest) GetId() int32

func (*DeleteAttemptRequest) ProtoMessage

func (*DeleteAttemptRequest) ProtoMessage()

func (*DeleteAttemptRequest) ProtoReflect

func (x *DeleteAttemptRequest) ProtoReflect() protoreflect.Message

func (*DeleteAttemptRequest) Reset

func (x *DeleteAttemptRequest) Reset()

func (*DeleteAttemptRequest) String

func (x *DeleteAttemptRequest) String() string

type DeleteChoiceRequest

type DeleteChoiceRequest struct {
	Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteChoiceRequest) Descriptor deprecated

func (*DeleteChoiceRequest) Descriptor() ([]byte, []int)

Deprecated: Use DeleteChoiceRequest.ProtoReflect.Descriptor instead.

func (*DeleteChoiceRequest) GetId

func (x *DeleteChoiceRequest) GetId() int32

func (*DeleteChoiceRequest) ProtoMessage

func (*DeleteChoiceRequest) ProtoMessage()

func (*DeleteChoiceRequest) ProtoReflect

func (x *DeleteChoiceRequest) ProtoReflect() protoreflect.Message

func (*DeleteChoiceRequest) Reset

func (x *DeleteChoiceRequest) Reset()

func (*DeleteChoiceRequest) String

func (x *DeleteChoiceRequest) String() string

type DeleteExamRequest

type DeleteExamRequest struct {
	Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteExamRequest) Descriptor deprecated

func (*DeleteExamRequest) Descriptor() ([]byte, []int)

Deprecated: Use DeleteExamRequest.ProtoReflect.Descriptor instead.

func (*DeleteExamRequest) GetId

func (x *DeleteExamRequest) GetId() int32

func (*DeleteExamRequest) ProtoMessage

func (*DeleteExamRequest) ProtoMessage()

func (*DeleteExamRequest) ProtoReflect

func (x *DeleteExamRequest) ProtoReflect() protoreflect.Message

func (*DeleteExamRequest) Reset

func (x *DeleteExamRequest) Reset()

func (*DeleteExamRequest) String

func (x *DeleteExamRequest) String() string

type DeleteParticipantRequest

type DeleteParticipantRequest struct {
	Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteParticipantRequest) Descriptor deprecated

func (*DeleteParticipantRequest) Descriptor() ([]byte, []int)

Deprecated: Use DeleteParticipantRequest.ProtoReflect.Descriptor instead.

func (*DeleteParticipantRequest) GetId

func (x *DeleteParticipantRequest) GetId() int32

func (*DeleteParticipantRequest) ProtoMessage

func (*DeleteParticipantRequest) ProtoMessage()

func (*DeleteParticipantRequest) ProtoReflect

func (x *DeleteParticipantRequest) ProtoReflect() protoreflect.Message

func (*DeleteParticipantRequest) Reset

func (x *DeleteParticipantRequest) Reset()

func (*DeleteParticipantRequest) String

func (x *DeleteParticipantRequest) String() string

type DeleteQuestionRequest

type DeleteQuestionRequest struct {
	Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteQuestionRequest) Descriptor deprecated

func (*DeleteQuestionRequest) Descriptor() ([]byte, []int)

Deprecated: Use DeleteQuestionRequest.ProtoReflect.Descriptor instead.

func (*DeleteQuestionRequest) GetId

func (x *DeleteQuestionRequest) GetId() int32

func (*DeleteQuestionRequest) ProtoMessage

func (*DeleteQuestionRequest) ProtoMessage()

func (*DeleteQuestionRequest) ProtoReflect

func (x *DeleteQuestionRequest) ProtoReflect() protoreflect.Message

func (*DeleteQuestionRequest) Reset

func (x *DeleteQuestionRequest) Reset()

func (*DeleteQuestionRequest) String

func (x *DeleteQuestionRequest) String() string

type EssayAnswer

type EssayAnswer struct {
	Format  TextFormat `protobuf:"varint,4,opt,name=format,proto3,enum=testycool.v1.TextFormat" json:"format,omitempty"`
	Content string     `protobuf:"bytes,5,opt,name=content,proto3" json:"content,omitempty"`
	// contains filtered or unexported fields
}

func (*EssayAnswer) Descriptor deprecated

func (*EssayAnswer) Descriptor() ([]byte, []int)

Deprecated: Use EssayAnswer.ProtoReflect.Descriptor instead.

func (*EssayAnswer) GetContent

func (x *EssayAnswer) GetContent() string

func (*EssayAnswer) GetFormat

func (x *EssayAnswer) GetFormat() TextFormat

func (*EssayAnswer) ProtoMessage

func (*EssayAnswer) ProtoMessage()

func (*EssayAnswer) ProtoReflect

func (x *EssayAnswer) ProtoReflect() protoreflect.Message

func (*EssayAnswer) Reset

func (x *EssayAnswer) Reset()

func (*EssayAnswer) String

func (x *EssayAnswer) String() string

type Exam

type Exam struct {
	Id        int32                  `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Password  string                 `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"`
	Title     string                 `protobuf:"bytes,3,opt,name=title,proto3" json:"title,omitempty"`
	TimeLimit int32                  `protobuf:"varint,4,opt,name=time_limit,json=timeLimit,proto3" json:"time_limit,omitempty"`
	StartAt   *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=start_at,json=startAt,proto3" json:"start_at,omitempty"`
	Status    Exam_Status            `protobuf:"varint,6,opt,name=status,proto3,enum=testycool.v1.Exam_Status" json:"status,omitempty"`
	// contains filtered or unexported fields
}

func (*Exam) Descriptor deprecated

func (*Exam) Descriptor() ([]byte, []int)

Deprecated: Use Exam.ProtoReflect.Descriptor instead.

func (*Exam) GetId

func (x *Exam) GetId() int32

func (*Exam) GetPassword

func (x *Exam) GetPassword() string

func (*Exam) GetStartAt

func (x *Exam) GetStartAt() *timestamppb.Timestamp

func (*Exam) GetStatus

func (x *Exam) GetStatus() Exam_Status

func (*Exam) GetTimeLimit

func (x *Exam) GetTimeLimit() int32

func (*Exam) GetTitle

func (x *Exam) GetTitle() string

func (*Exam) ProtoMessage

func (*Exam) ProtoMessage()

func (*Exam) ProtoReflect

func (x *Exam) ProtoReflect() protoreflect.Message

func (*Exam) Reset

func (x *Exam) Reset()

func (*Exam) String

func (x *Exam) String() string

type ExamServiceClient

type ExamServiceClient interface {
	GetExam(ctx context.Context, in *GetExamRequest, opts ...grpc.CallOption) (*GetExamResponse, error)
	ListExams(ctx context.Context, in *ListExamsRequest, opts ...grpc.CallOption) (*ListExamsResponse, error)
	CreateExam(ctx context.Context, in *CreateExamRequest, opts ...grpc.CallOption) (*CreateExamResponse, error)
	UpdateExam(ctx context.Context, in *UpdateExamRequest, opts ...grpc.CallOption) (*UpdateExamResponse, error)
	DeleteExam(ctx context.Context, in *DeleteExamRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
}

ExamServiceClient is the client API for ExamService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

type ExamServiceServer

type ExamServiceServer interface {
	GetExam(context.Context, *GetExamRequest) (*GetExamResponse, error)
	ListExams(context.Context, *ListExamsRequest) (*ListExamsResponse, error)
	CreateExam(context.Context, *CreateExamRequest) (*CreateExamResponse, error)
	UpdateExam(context.Context, *UpdateExamRequest) (*UpdateExamResponse, error)
	DeleteExam(context.Context, *DeleteExamRequest) (*emptypb.Empty, error)
	// contains filtered or unexported methods
}

ExamServiceServer is the server API for ExamService service. All implementations must embed UnimplementedExamServiceServer for forward compatibility

type Exam_Status

type Exam_Status int32
const (
	Exam_UNKNOWN Exam_Status = 0
	Exam_WAITING Exam_Status = 1
	Exam_STARTED Exam_Status = 2
	Exam_DONE    Exam_Status = 3
)

func (Exam_Status) Descriptor

func (Exam_Status) Enum

func (x Exam_Status) Enum() *Exam_Status

func (Exam_Status) EnumDescriptor deprecated

func (Exam_Status) EnumDescriptor() ([]byte, []int)

Deprecated: Use Exam_Status.Descriptor instead.

func (Exam_Status) Number

func (x Exam_Status) Number() protoreflect.EnumNumber

func (Exam_Status) String

func (x Exam_Status) String() string

func (Exam_Status) Type

type GetAdminTokenRequest

type GetAdminTokenRequest struct {
	Passcode string `protobuf:"bytes,1,opt,name=passcode,proto3" json:"passcode,omitempty"`
	// contains filtered or unexported fields
}

func (*GetAdminTokenRequest) Descriptor deprecated

func (*GetAdminTokenRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetAdminTokenRequest.ProtoReflect.Descriptor instead.

func (*GetAdminTokenRequest) GetPasscode

func (x *GetAdminTokenRequest) GetPasscode() string

func (*GetAdminTokenRequest) ProtoMessage

func (*GetAdminTokenRequest) ProtoMessage()

func (*GetAdminTokenRequest) ProtoReflect

func (x *GetAdminTokenRequest) ProtoReflect() protoreflect.Message

func (*GetAdminTokenRequest) Reset

func (x *GetAdminTokenRequest) Reset()

func (*GetAdminTokenRequest) String

func (x *GetAdminTokenRequest) String() string

type GetAdminTokenResponse

type GetAdminTokenResponse struct {
	AccessToken string `protobuf:"bytes,1,opt,name=access_token,json=accessToken,proto3" json:"access_token,omitempty"`
	// contains filtered or unexported fields
}

func (*GetAdminTokenResponse) Descriptor deprecated

func (*GetAdminTokenResponse) Descriptor() ([]byte, []int)

Deprecated: Use GetAdminTokenResponse.ProtoReflect.Descriptor instead.

func (*GetAdminTokenResponse) GetAccessToken

func (x *GetAdminTokenResponse) GetAccessToken() string

func (*GetAdminTokenResponse) ProtoMessage

func (*GetAdminTokenResponse) ProtoMessage()

func (*GetAdminTokenResponse) ProtoReflect

func (x *GetAdminTokenResponse) ProtoReflect() protoreflect.Message

func (*GetAdminTokenResponse) Reset

func (x *GetAdminTokenResponse) Reset()

func (*GetAdminTokenResponse) String

func (x *GetAdminTokenResponse) String() string

type GetAnalyticsRequest

type GetAnalyticsRequest struct {
	Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*GetAnalyticsRequest) Descriptor deprecated

func (*GetAnalyticsRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetAnalyticsRequest.ProtoReflect.Descriptor instead.

func (*GetAnalyticsRequest) GetId

func (x *GetAnalyticsRequest) GetId() int32

func (*GetAnalyticsRequest) ProtoMessage

func (*GetAnalyticsRequest) ProtoMessage()

func (*GetAnalyticsRequest) ProtoReflect

func (x *GetAnalyticsRequest) ProtoReflect() protoreflect.Message

func (*GetAnalyticsRequest) Reset

func (x *GetAnalyticsRequest) Reset()

func (*GetAnalyticsRequest) String

func (x *GetAnalyticsRequest) String() string

type GetAnalyticsResponse

type GetAnalyticsResponse struct {
	Analytics *Analytics `protobuf:"bytes,1,opt,name=analytics,proto3" json:"analytics,omitempty"`
	// contains filtered or unexported fields
}

func (*GetAnalyticsResponse) Descriptor deprecated

func (*GetAnalyticsResponse) Descriptor() ([]byte, []int)

Deprecated: Use GetAnalyticsResponse.ProtoReflect.Descriptor instead.

func (*GetAnalyticsResponse) GetAnalytics

func (x *GetAnalyticsResponse) GetAnalytics() *Analytics

func (*GetAnalyticsResponse) ProtoMessage

func (*GetAnalyticsResponse) ProtoMessage()

func (*GetAnalyticsResponse) ProtoReflect

func (x *GetAnalyticsResponse) ProtoReflect() protoreflect.Message

func (*GetAnalyticsResponse) Reset

func (x *GetAnalyticsResponse) Reset()

func (*GetAnalyticsResponse) String

func (x *GetAnalyticsResponse) String() string

type GetAnswerRequest

type GetAnswerRequest struct {
	Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*GetAnswerRequest) Descriptor deprecated

func (*GetAnswerRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetAnswerRequest.ProtoReflect.Descriptor instead.

func (*GetAnswerRequest) GetId

func (x *GetAnswerRequest) GetId() int32

func (*GetAnswerRequest) ProtoMessage

func (*GetAnswerRequest) ProtoMessage()

func (*GetAnswerRequest) ProtoReflect

func (x *GetAnswerRequest) ProtoReflect() protoreflect.Message

func (*GetAnswerRequest) Reset

func (x *GetAnswerRequest) Reset()

func (*GetAnswerRequest) String

func (x *GetAnswerRequest) String() string

type GetAnswerResponse

type GetAnswerResponse struct {
	Answer *Answer `protobuf:"bytes,1,opt,name=answer,proto3" json:"answer,omitempty"`
	// contains filtered or unexported fields
}

func (*GetAnswerResponse) Descriptor deprecated

func (*GetAnswerResponse) Descriptor() ([]byte, []int)

Deprecated: Use GetAnswerResponse.ProtoReflect.Descriptor instead.

func (*GetAnswerResponse) GetAnswer

func (x *GetAnswerResponse) GetAnswer() *Answer

func (*GetAnswerResponse) ProtoMessage

func (*GetAnswerResponse) ProtoMessage()

func (*GetAnswerResponse) ProtoReflect

func (x *GetAnswerResponse) ProtoReflect() protoreflect.Message

func (*GetAnswerResponse) Reset

func (x *GetAnswerResponse) Reset()

func (*GetAnswerResponse) String

func (x *GetAnswerResponse) String() string

type GetAttemptRequest

type GetAttemptRequest struct {

	// Types that are assignable to Identifier:
	//	*GetAttemptRequest_Id
	//	*GetAttemptRequest_ParticipantId
	Identifier isGetAttemptRequest_Identifier `protobuf_oneof:"identifier"`
	// contains filtered or unexported fields
}

func (*GetAttemptRequest) Descriptor deprecated

func (*GetAttemptRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetAttemptRequest.ProtoReflect.Descriptor instead.

func (*GetAttemptRequest) GetId

func (x *GetAttemptRequest) GetId() int32

func (*GetAttemptRequest) GetIdentifier

func (m *GetAttemptRequest) GetIdentifier() isGetAttemptRequest_Identifier

func (*GetAttemptRequest) GetParticipantId

func (x *GetAttemptRequest) GetParticipantId() int32

func (*GetAttemptRequest) ProtoMessage

func (*GetAttemptRequest) ProtoMessage()

func (*GetAttemptRequest) ProtoReflect

func (x *GetAttemptRequest) ProtoReflect() protoreflect.Message

func (*GetAttemptRequest) Reset

func (x *GetAttemptRequest) Reset()

func (*GetAttemptRequest) String

func (x *GetAttemptRequest) String() string

type GetAttemptRequest_Id

type GetAttemptRequest_Id struct {
	Id int32 `protobuf:"varint,1,opt,name=id,proto3,oneof"`
}

type GetAttemptRequest_ParticipantId

type GetAttemptRequest_ParticipantId struct {
	ParticipantId int32 `protobuf:"varint,2,opt,name=participant_id,json=participantId,proto3,oneof"`
}

type GetAttemptResponse

type GetAttemptResponse struct {
	Attempt *Attempt `protobuf:"bytes,1,opt,name=attempt,proto3" json:"attempt,omitempty"`
	// contains filtered or unexported fields
}

func (*GetAttemptResponse) Descriptor deprecated

func (*GetAttemptResponse) Descriptor() ([]byte, []int)

Deprecated: Use GetAttemptResponse.ProtoReflect.Descriptor instead.

func (*GetAttemptResponse) GetAttempt

func (x *GetAttemptResponse) GetAttempt() *Attempt

func (*GetAttemptResponse) ProtoMessage

func (*GetAttemptResponse) ProtoMessage()

func (*GetAttemptResponse) ProtoReflect

func (x *GetAttemptResponse) ProtoReflect() protoreflect.Message

func (*GetAttemptResponse) Reset

func (x *GetAttemptResponse) Reset()

func (*GetAttemptResponse) String

func (x *GetAttemptResponse) String() string

type GetChoiceRequest

type GetChoiceRequest struct {
	Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*GetChoiceRequest) Descriptor deprecated

func (*GetChoiceRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetChoiceRequest.ProtoReflect.Descriptor instead.

func (*GetChoiceRequest) GetId

func (x *GetChoiceRequest) GetId() int32

func (*GetChoiceRequest) ProtoMessage

func (*GetChoiceRequest) ProtoMessage()

func (*GetChoiceRequest) ProtoReflect

func (x *GetChoiceRequest) ProtoReflect() protoreflect.Message

func (*GetChoiceRequest) Reset

func (x *GetChoiceRequest) Reset()

func (*GetChoiceRequest) String

func (x *GetChoiceRequest) String() string

type GetChoiceResponse

type GetChoiceResponse struct {
	Choice *Choice `protobuf:"bytes,1,opt,name=choice,proto3" json:"choice,omitempty"`
	// contains filtered or unexported fields
}

func (*GetChoiceResponse) Descriptor deprecated

func (*GetChoiceResponse) Descriptor() ([]byte, []int)

Deprecated: Use GetChoiceResponse.ProtoReflect.Descriptor instead.

func (*GetChoiceResponse) GetChoice

func (x *GetChoiceResponse) GetChoice() *Choice

func (*GetChoiceResponse) ProtoMessage

func (*GetChoiceResponse) ProtoMessage()

func (*GetChoiceResponse) ProtoReflect

func (x *GetChoiceResponse) ProtoReflect() protoreflect.Message

func (*GetChoiceResponse) Reset

func (x *GetChoiceResponse) Reset()

func (*GetChoiceResponse) String

func (x *GetChoiceResponse) String() string

type GetExamRequest

type GetExamRequest struct {

	// Types that are assignable to Identifier:
	//	*GetExamRequest_Id
	//	*GetExamRequest_Password
	Identifier isGetExamRequest_Identifier `protobuf_oneof:"identifier"`
	// contains filtered or unexported fields
}

func (*GetExamRequest) Descriptor deprecated

func (*GetExamRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetExamRequest.ProtoReflect.Descriptor instead.

func (*GetExamRequest) GetId

func (x *GetExamRequest) GetId() int32

func (*GetExamRequest) GetIdentifier

func (m *GetExamRequest) GetIdentifier() isGetExamRequest_Identifier

func (*GetExamRequest) GetPassword

func (x *GetExamRequest) GetPassword() string

func (*GetExamRequest) ProtoMessage

func (*GetExamRequest) ProtoMessage()

func (*GetExamRequest) ProtoReflect

func (x *GetExamRequest) ProtoReflect() protoreflect.Message

func (*GetExamRequest) Reset

func (x *GetExamRequest) Reset()

func (*GetExamRequest) String

func (x *GetExamRequest) String() string

type GetExamRequest_Id

type GetExamRequest_Id struct {
	Id int32 `protobuf:"varint,1,opt,name=id,proto3,oneof"`
}

type GetExamRequest_Password

type GetExamRequest_Password struct {
	Password string `protobuf:"bytes,2,opt,name=password,proto3,oneof"`
}

type GetExamResponse

type GetExamResponse struct {
	Exam *Exam `protobuf:"bytes,1,opt,name=exam,proto3" json:"exam,omitempty"`
	// contains filtered or unexported fields
}

func (*GetExamResponse) Descriptor deprecated

func (*GetExamResponse) Descriptor() ([]byte, []int)

Deprecated: Use GetExamResponse.ProtoReflect.Descriptor instead.

func (*GetExamResponse) GetExam

func (x *GetExamResponse) GetExam() *Exam

func (*GetExamResponse) ProtoMessage

func (*GetExamResponse) ProtoMessage()

func (*GetExamResponse) ProtoReflect

func (x *GetExamResponse) ProtoReflect() protoreflect.Message

func (*GetExamResponse) Reset

func (x *GetExamResponse) Reset()

func (*GetExamResponse) String

func (x *GetExamResponse) String() string

type GetParticipantRequest

type GetParticipantRequest struct {
	Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*GetParticipantRequest) Descriptor deprecated

func (*GetParticipantRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetParticipantRequest.ProtoReflect.Descriptor instead.

func (*GetParticipantRequest) GetId

func (x *GetParticipantRequest) GetId() int32

func (*GetParticipantRequest) ProtoMessage

func (*GetParticipantRequest) ProtoMessage()

func (*GetParticipantRequest) ProtoReflect

func (x *GetParticipantRequest) ProtoReflect() protoreflect.Message

func (*GetParticipantRequest) Reset

func (x *GetParticipantRequest) Reset()

func (*GetParticipantRequest) String

func (x *GetParticipantRequest) String() string

type GetParticipantResponse

type GetParticipantResponse struct {
	Participant *Participant `protobuf:"bytes,1,opt,name=participant,proto3" json:"participant,omitempty"`
	// contains filtered or unexported fields
}

func (*GetParticipantResponse) Descriptor deprecated

func (*GetParticipantResponse) Descriptor() ([]byte, []int)

Deprecated: Use GetParticipantResponse.ProtoReflect.Descriptor instead.

func (*GetParticipantResponse) GetParticipant

func (x *GetParticipantResponse) GetParticipant() *Participant

func (*GetParticipantResponse) ProtoMessage

func (*GetParticipantResponse) ProtoMessage()

func (*GetParticipantResponse) ProtoReflect

func (x *GetParticipantResponse) ProtoReflect() protoreflect.Message

func (*GetParticipantResponse) Reset

func (x *GetParticipantResponse) Reset()

func (*GetParticipantResponse) String

func (x *GetParticipantResponse) String() string

type GetParticipantTokenRequest

type GetParticipantTokenRequest struct {
	ExamPassword    string `protobuf:"bytes,1,opt,name=exam_password,json=examPassword,proto3" json:"exam_password,omitempty"`
	ParticipantCode string `protobuf:"bytes,2,opt,name=participant_code,json=participantCode,proto3" json:"participant_code,omitempty"`
	// contains filtered or unexported fields
}

func (*GetParticipantTokenRequest) Descriptor deprecated

func (*GetParticipantTokenRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetParticipantTokenRequest.ProtoReflect.Descriptor instead.

func (*GetParticipantTokenRequest) GetExamPassword

func (x *GetParticipantTokenRequest) GetExamPassword() string

func (*GetParticipantTokenRequest) GetParticipantCode

func (x *GetParticipantTokenRequest) GetParticipantCode() string

func (*GetParticipantTokenRequest) ProtoMessage

func (*GetParticipantTokenRequest) ProtoMessage()

func (*GetParticipantTokenRequest) ProtoReflect

func (*GetParticipantTokenRequest) Reset

func (x *GetParticipantTokenRequest) Reset()

func (*GetParticipantTokenRequest) String

func (x *GetParticipantTokenRequest) String() string

type GetParticipantTokenResponse

type GetParticipantTokenResponse struct {
	AccessToken string `protobuf:"bytes,1,opt,name=access_token,json=accessToken,proto3" json:"access_token,omitempty"`
	// contains filtered or unexported fields
}

func (*GetParticipantTokenResponse) Descriptor deprecated

func (*GetParticipantTokenResponse) Descriptor() ([]byte, []int)

Deprecated: Use GetParticipantTokenResponse.ProtoReflect.Descriptor instead.

func (*GetParticipantTokenResponse) GetAccessToken

func (x *GetParticipantTokenResponse) GetAccessToken() string

func (*GetParticipantTokenResponse) ProtoMessage

func (*GetParticipantTokenResponse) ProtoMessage()

func (*GetParticipantTokenResponse) ProtoReflect

func (*GetParticipantTokenResponse) Reset

func (x *GetParticipantTokenResponse) Reset()

func (*GetParticipantTokenResponse) String

func (x *GetParticipantTokenResponse) String() string

type GetQuestionRequest

type GetQuestionRequest struct {
	Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*GetQuestionRequest) Descriptor deprecated

func (*GetQuestionRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetQuestionRequest.ProtoReflect.Descriptor instead.

func (*GetQuestionRequest) GetId

func (x *GetQuestionRequest) GetId() int32

func (*GetQuestionRequest) ProtoMessage

func (*GetQuestionRequest) ProtoMessage()

func (*GetQuestionRequest) ProtoReflect

func (x *GetQuestionRequest) ProtoReflect() protoreflect.Message

func (*GetQuestionRequest) Reset

func (x *GetQuestionRequest) Reset()

func (*GetQuestionRequest) String

func (x *GetQuestionRequest) String() string

type GetQuestionResponse

type GetQuestionResponse struct {
	Question *Question `protobuf:"bytes,1,opt,name=question,proto3" json:"question,omitempty"`
	// contains filtered or unexported fields
}

func (*GetQuestionResponse) Descriptor deprecated

func (*GetQuestionResponse) Descriptor() ([]byte, []int)

Deprecated: Use GetQuestionResponse.ProtoReflect.Descriptor instead.

func (*GetQuestionResponse) GetQuestion

func (x *GetQuestionResponse) GetQuestion() *Question

func (*GetQuestionResponse) ProtoMessage

func (*GetQuestionResponse) ProtoMessage()

func (*GetQuestionResponse) ProtoReflect

func (x *GetQuestionResponse) ProtoReflect() protoreflect.Message

func (*GetQuestionResponse) Reset

func (x *GetQuestionResponse) Reset()

func (*GetQuestionResponse) String

func (x *GetQuestionResponse) String() string

type ListAnalyticsRequest

type ListAnalyticsRequest struct {
	Size   int32                        `protobuf:"varint,1,opt,name=size,proto3" json:"size,omitempty"`
	Page   int32                        `protobuf:"varint,2,opt,name=page,proto3" json:"page,omitempty"`
	Filter *ListAnalyticsRequest_Filter `protobuf:"bytes,3,opt,name=filter,proto3" json:"filter,omitempty"`
	// contains filtered or unexported fields
}

func (*ListAnalyticsRequest) Descriptor deprecated

func (*ListAnalyticsRequest) Descriptor() ([]byte, []int)

Deprecated: Use ListAnalyticsRequest.ProtoReflect.Descriptor instead.

func (*ListAnalyticsRequest) GetFilter

func (*ListAnalyticsRequest) GetPage

func (x *ListAnalyticsRequest) GetPage() int32

func (*ListAnalyticsRequest) GetSize

func (x *ListAnalyticsRequest) GetSize() int32

func (*ListAnalyticsRequest) ProtoMessage

func (*ListAnalyticsRequest) ProtoMessage()

func (*ListAnalyticsRequest) ProtoReflect

func (x *ListAnalyticsRequest) ProtoReflect() protoreflect.Message

func (*ListAnalyticsRequest) Reset

func (x *ListAnalyticsRequest) Reset()

func (*ListAnalyticsRequest) String

func (x *ListAnalyticsRequest) String() string

type ListAnalyticsRequest_Filter

type ListAnalyticsRequest_Filter struct {
	ExamId *int32 `protobuf:"varint,2,opt,name=exam_id,json=examId,proto3,oneof" json:"exam_id,omitempty"`
	// contains filtered or unexported fields
}

func (*ListAnalyticsRequest_Filter) Descriptor deprecated

func (*ListAnalyticsRequest_Filter) Descriptor() ([]byte, []int)

Deprecated: Use ListAnalyticsRequest_Filter.ProtoReflect.Descriptor instead.

func (*ListAnalyticsRequest_Filter) GetExamId

func (x *ListAnalyticsRequest_Filter) GetExamId() int32

func (*ListAnalyticsRequest_Filter) ProtoMessage

func (*ListAnalyticsRequest_Filter) ProtoMessage()

func (*ListAnalyticsRequest_Filter) ProtoReflect

func (*ListAnalyticsRequest_Filter) Reset

func (x *ListAnalyticsRequest_Filter) Reset()

func (*ListAnalyticsRequest_Filter) String

func (x *ListAnalyticsRequest_Filter) String() string

type ListAnalyticsResponse

type ListAnalyticsResponse struct {
	Analytics []*Analytics `protobuf:"bytes,1,rep,name=analytics,proto3" json:"analytics,omitempty"`
	Size      int32        `protobuf:"varint,2,opt,name=size,proto3" json:"size,omitempty"`
	Page      int32        `protobuf:"varint,3,opt,name=page,proto3" json:"page,omitempty"`
	TotalSize int32        `protobuf:"varint,4,opt,name=total_size,json=totalSize,proto3" json:"total_size,omitempty"`
	// contains filtered or unexported fields
}

func (*ListAnalyticsResponse) Descriptor deprecated

func (*ListAnalyticsResponse) Descriptor() ([]byte, []int)

Deprecated: Use ListAnalyticsResponse.ProtoReflect.Descriptor instead.

func (*ListAnalyticsResponse) GetAnalytics

func (x *ListAnalyticsResponse) GetAnalytics() []*Analytics

func (*ListAnalyticsResponse) GetPage

func (x *ListAnalyticsResponse) GetPage() int32

func (*ListAnalyticsResponse) GetSize

func (x *ListAnalyticsResponse) GetSize() int32

func (*ListAnalyticsResponse) GetTotalSize

func (x *ListAnalyticsResponse) GetTotalSize() int32

func (*ListAnalyticsResponse) ProtoMessage

func (*ListAnalyticsResponse) ProtoMessage()

func (*ListAnalyticsResponse) ProtoReflect

func (x *ListAnalyticsResponse) ProtoReflect() protoreflect.Message

func (*ListAnalyticsResponse) Reset

func (x *ListAnalyticsResponse) Reset()

func (*ListAnalyticsResponse) String

func (x *ListAnalyticsResponse) String() string

type ListAnswersRequest

type ListAnswersRequest struct {
	Size   int32                      `protobuf:"varint,1,opt,name=size,proto3" json:"size,omitempty"`
	Page   int32                      `protobuf:"varint,2,opt,name=page,proto3" json:"page,omitempty"`
	Filter *ListAnswersRequest_Filter `protobuf:"bytes,3,opt,name=filter,proto3" json:"filter,omitempty"`
	// contains filtered or unexported fields
}

func (*ListAnswersRequest) Descriptor deprecated

func (*ListAnswersRequest) Descriptor() ([]byte, []int)

Deprecated: Use ListAnswersRequest.ProtoReflect.Descriptor instead.

func (*ListAnswersRequest) GetFilter

func (*ListAnswersRequest) GetPage

func (x *ListAnswersRequest) GetPage() int32

func (*ListAnswersRequest) GetSize

func (x *ListAnswersRequest) GetSize() int32

func (*ListAnswersRequest) ProtoMessage

func (*ListAnswersRequest) ProtoMessage()

func (*ListAnswersRequest) ProtoReflect

func (x *ListAnswersRequest) ProtoReflect() protoreflect.Message

func (*ListAnswersRequest) Reset

func (x *ListAnswersRequest) Reset()

func (*ListAnswersRequest) String

func (x *ListAnswersRequest) String() string

type ListAnswersRequest_Filter

type ListAnswersRequest_Filter struct {
	ParticipantId *int32 `protobuf:"varint,2,opt,name=participant_id,json=participantId,proto3,oneof" json:"participant_id,omitempty"`
	ExamId        *int32 `protobuf:"varint,3,opt,name=exam_id,json=examId,proto3,oneof" json:"exam_id,omitempty"`
	// contains filtered or unexported fields
}

func (*ListAnswersRequest_Filter) Descriptor deprecated

func (*ListAnswersRequest_Filter) Descriptor() ([]byte, []int)

Deprecated: Use ListAnswersRequest_Filter.ProtoReflect.Descriptor instead.

func (*ListAnswersRequest_Filter) GetExamId

func (x *ListAnswersRequest_Filter) GetExamId() int32

func (*ListAnswersRequest_Filter) GetParticipantId

func (x *ListAnswersRequest_Filter) GetParticipantId() int32

func (*ListAnswersRequest_Filter) ProtoMessage

func (*ListAnswersRequest_Filter) ProtoMessage()

func (*ListAnswersRequest_Filter) ProtoReflect

func (*ListAnswersRequest_Filter) Reset

func (x *ListAnswersRequest_Filter) Reset()

func (*ListAnswersRequest_Filter) String

func (x *ListAnswersRequest_Filter) String() string

type ListAnswersResponse

type ListAnswersResponse struct {
	Answers   []*Answer `protobuf:"bytes,1,rep,name=answers,proto3" json:"answers,omitempty"`
	Size      int32     `protobuf:"varint,2,opt,name=size,proto3" json:"size,omitempty"`
	Page      int32     `protobuf:"varint,3,opt,name=page,proto3" json:"page,omitempty"`
	TotalSize int32     `protobuf:"varint,4,opt,name=total_size,json=totalSize,proto3" json:"total_size,omitempty"`
	// contains filtered or unexported fields
}

func (*ListAnswersResponse) Descriptor deprecated

func (*ListAnswersResponse) Descriptor() ([]byte, []int)

Deprecated: Use ListAnswersResponse.ProtoReflect.Descriptor instead.

func (*ListAnswersResponse) GetAnswers

func (x *ListAnswersResponse) GetAnswers() []*Answer

func (*ListAnswersResponse) GetPage

func (x *ListAnswersResponse) GetPage() int32

func (*ListAnswersResponse) GetSize

func (x *ListAnswersResponse) GetSize() int32

func (*ListAnswersResponse) GetTotalSize

func (x *ListAnswersResponse) GetTotalSize() int32

func (*ListAnswersResponse) ProtoMessage

func (*ListAnswersResponse) ProtoMessage()

func (*ListAnswersResponse) ProtoReflect

func (x *ListAnswersResponse) ProtoReflect() protoreflect.Message

func (*ListAnswersResponse) Reset

func (x *ListAnswersResponse) Reset()

func (*ListAnswersResponse) String

func (x *ListAnswersResponse) String() string

type ListAttemptsRequest

type ListAttemptsRequest struct {
	Size   int32                       `protobuf:"varint,1,opt,name=size,proto3" json:"size,omitempty"`
	Page   int32                       `protobuf:"varint,2,opt,name=page,proto3" json:"page,omitempty"`
	Filter *ListAttemptsRequest_Filter `protobuf:"bytes,3,opt,name=filter,proto3" json:"filter,omitempty"`
	// contains filtered or unexported fields
}

func (*ListAttemptsRequest) Descriptor deprecated

func (*ListAttemptsRequest) Descriptor() ([]byte, []int)

Deprecated: Use ListAttemptsRequest.ProtoReflect.Descriptor instead.

func (*ListAttemptsRequest) GetFilter

func (*ListAttemptsRequest) GetPage

func (x *ListAttemptsRequest) GetPage() int32

func (*ListAttemptsRequest) GetSize

func (x *ListAttemptsRequest) GetSize() int32

func (*ListAttemptsRequest) ProtoMessage

func (*ListAttemptsRequest) ProtoMessage()

func (*ListAttemptsRequest) ProtoReflect

func (x *ListAttemptsRequest) ProtoReflect() protoreflect.Message

func (*ListAttemptsRequest) Reset

func (x *ListAttemptsRequest) Reset()

func (*ListAttemptsRequest) String

func (x *ListAttemptsRequest) String() string

type ListAttemptsRequest_Filter

type ListAttemptsRequest_Filter struct {
	ExamId *int32 `protobuf:"varint,2,opt,name=exam_id,json=examId,proto3,oneof" json:"exam_id,omitempty"`
	// contains filtered or unexported fields
}

func (*ListAttemptsRequest_Filter) Descriptor deprecated

func (*ListAttemptsRequest_Filter) Descriptor() ([]byte, []int)

Deprecated: Use ListAttemptsRequest_Filter.ProtoReflect.Descriptor instead.

func (*ListAttemptsRequest_Filter) GetExamId

func (x *ListAttemptsRequest_Filter) GetExamId() int32

func (*ListAttemptsRequest_Filter) ProtoMessage

func (*ListAttemptsRequest_Filter) ProtoMessage()

func (*ListAttemptsRequest_Filter) ProtoReflect

func (*ListAttemptsRequest_Filter) Reset

func (x *ListAttemptsRequest_Filter) Reset()

func (*ListAttemptsRequest_Filter) String

func (x *ListAttemptsRequest_Filter) String() string

type ListAttemptsResponse

type ListAttemptsResponse struct {
	Attempts  []*Attempt `protobuf:"bytes,1,rep,name=attempts,proto3" json:"attempts,omitempty"`
	Size      int32      `protobuf:"varint,2,opt,name=size,proto3" json:"size,omitempty"`
	Page      int32      `protobuf:"varint,3,opt,name=page,proto3" json:"page,omitempty"`
	TotalSize int32      `protobuf:"varint,4,opt,name=total_size,json=totalSize,proto3" json:"total_size,omitempty"`
	// contains filtered or unexported fields
}

func (*ListAttemptsResponse) Descriptor deprecated

func (*ListAttemptsResponse) Descriptor() ([]byte, []int)

Deprecated: Use ListAttemptsResponse.ProtoReflect.Descriptor instead.

func (*ListAttemptsResponse) GetAttempts

func (x *ListAttemptsResponse) GetAttempts() []*Attempt

func (*ListAttemptsResponse) GetPage

func (x *ListAttemptsResponse) GetPage() int32

func (*ListAttemptsResponse) GetSize

func (x *ListAttemptsResponse) GetSize() int32

func (*ListAttemptsResponse) GetTotalSize

func (x *ListAttemptsResponse) GetTotalSize() int32

func (*ListAttemptsResponse) ProtoMessage

func (*ListAttemptsResponse) ProtoMessage()

func (*ListAttemptsResponse) ProtoReflect

func (x *ListAttemptsResponse) ProtoReflect() protoreflect.Message

func (*ListAttemptsResponse) Reset

func (x *ListAttemptsResponse) Reset()

func (*ListAttemptsResponse) String

func (x *ListAttemptsResponse) String() string

type ListChoicesRequest

type ListChoicesRequest struct {
	Size   int32                      `protobuf:"varint,1,opt,name=size,proto3" json:"size,omitempty"`
	Page   int32                      `protobuf:"varint,2,opt,name=page,proto3" json:"page,omitempty"`
	Filter *ListChoicesRequest_Filter `protobuf:"bytes,3,opt,name=filter,proto3" json:"filter,omitempty"`
	// contains filtered or unexported fields
}

func (*ListChoicesRequest) Descriptor deprecated

func (*ListChoicesRequest) Descriptor() ([]byte, []int)

Deprecated: Use ListChoicesRequest.ProtoReflect.Descriptor instead.

func (*ListChoicesRequest) GetFilter

func (*ListChoicesRequest) GetPage

func (x *ListChoicesRequest) GetPage() int32

func (*ListChoicesRequest) GetSize

func (x *ListChoicesRequest) GetSize() int32

func (*ListChoicesRequest) ProtoMessage

func (*ListChoicesRequest) ProtoMessage()

func (*ListChoicesRequest) ProtoReflect

func (x *ListChoicesRequest) ProtoReflect() protoreflect.Message

func (*ListChoicesRequest) Reset

func (x *ListChoicesRequest) Reset()

func (*ListChoicesRequest) String

func (x *ListChoicesRequest) String() string

type ListChoicesRequest_Filter

type ListChoicesRequest_Filter struct {
	QuestionId *int32 `protobuf:"varint,1,opt,name=question_id,json=questionId,proto3,oneof" json:"question_id,omitempty"`
	// contains filtered or unexported fields
}

func (*ListChoicesRequest_Filter) Descriptor deprecated

func (*ListChoicesRequest_Filter) Descriptor() ([]byte, []int)

Deprecated: Use ListChoicesRequest_Filter.ProtoReflect.Descriptor instead.

func (*ListChoicesRequest_Filter) GetQuestionId

func (x *ListChoicesRequest_Filter) GetQuestionId() int32

func (*ListChoicesRequest_Filter) ProtoMessage

func (*ListChoicesRequest_Filter) ProtoMessage()

func (*ListChoicesRequest_Filter) ProtoReflect

func (*ListChoicesRequest_Filter) Reset

func (x *ListChoicesRequest_Filter) Reset()

func (*ListChoicesRequest_Filter) String

func (x *ListChoicesRequest_Filter) String() string

type ListChoicesResponse

type ListChoicesResponse struct {
	Choices   []*Choice `protobuf:"bytes,1,rep,name=choices,proto3" json:"choices,omitempty"`
	Size      int32     `protobuf:"varint,2,opt,name=size,proto3" json:"size,omitempty"`
	Page      int32     `protobuf:"varint,3,opt,name=page,proto3" json:"page,omitempty"`
	TotalSize int32     `protobuf:"varint,4,opt,name=total_size,json=totalSize,proto3" json:"total_size,omitempty"`
	// contains filtered or unexported fields
}

func (*ListChoicesResponse) Descriptor deprecated

func (*ListChoicesResponse) Descriptor() ([]byte, []int)

Deprecated: Use ListChoicesResponse.ProtoReflect.Descriptor instead.

func (*ListChoicesResponse) GetChoices

func (x *ListChoicesResponse) GetChoices() []*Choice

func (*ListChoicesResponse) GetPage

func (x *ListChoicesResponse) GetPage() int32

func (*ListChoicesResponse) GetSize

func (x *ListChoicesResponse) GetSize() int32

func (*ListChoicesResponse) GetTotalSize

func (x *ListChoicesResponse) GetTotalSize() int32

func (*ListChoicesResponse) ProtoMessage

func (*ListChoicesResponse) ProtoMessage()

func (*ListChoicesResponse) ProtoReflect

func (x *ListChoicesResponse) ProtoReflect() protoreflect.Message

func (*ListChoicesResponse) Reset

func (x *ListChoicesResponse) Reset()

func (*ListChoicesResponse) String

func (x *ListChoicesResponse) String() string

type ListExamsRequest

type ListExamsRequest struct {
	Size   int32                    `protobuf:"varint,1,opt,name=size,proto3" json:"size,omitempty"`
	Page   int32                    `protobuf:"varint,2,opt,name=page,proto3" json:"page,omitempty"`
	Filter *ListExamsRequest_Filter `protobuf:"bytes,3,opt,name=filter,proto3" json:"filter,omitempty"`
	// contains filtered or unexported fields
}

func (*ListExamsRequest) Descriptor deprecated

func (*ListExamsRequest) Descriptor() ([]byte, []int)

Deprecated: Use ListExamsRequest.ProtoReflect.Descriptor instead.

func (*ListExamsRequest) GetFilter

func (x *ListExamsRequest) GetFilter() *ListExamsRequest_Filter

func (*ListExamsRequest) GetPage

func (x *ListExamsRequest) GetPage() int32

func (*ListExamsRequest) GetSize

func (x *ListExamsRequest) GetSize() int32

func (*ListExamsRequest) ProtoMessage

func (*ListExamsRequest) ProtoMessage()

func (*ListExamsRequest) ProtoReflect

func (x *ListExamsRequest) ProtoReflect() protoreflect.Message

func (*ListExamsRequest) Reset

func (x *ListExamsRequest) Reset()

func (*ListExamsRequest) String

func (x *ListExamsRequest) String() string

type ListExamsRequest_Filter

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

func (*ListExamsRequest_Filter) Descriptor deprecated

func (*ListExamsRequest_Filter) Descriptor() ([]byte, []int)

Deprecated: Use ListExamsRequest_Filter.ProtoReflect.Descriptor instead.

func (*ListExamsRequest_Filter) ProtoMessage

func (*ListExamsRequest_Filter) ProtoMessage()

func (*ListExamsRequest_Filter) ProtoReflect

func (x *ListExamsRequest_Filter) ProtoReflect() protoreflect.Message

func (*ListExamsRequest_Filter) Reset

func (x *ListExamsRequest_Filter) Reset()

func (*ListExamsRequest_Filter) String

func (x *ListExamsRequest_Filter) String() string

type ListExamsResponse

type ListExamsResponse struct {
	Exams     []*Exam `protobuf:"bytes,1,rep,name=exams,proto3" json:"exams,omitempty"`
	Size      int32   `protobuf:"varint,2,opt,name=size,proto3" json:"size,omitempty"`
	Page      int32   `protobuf:"varint,3,opt,name=page,proto3" json:"page,omitempty"`
	TotalSize int32   `protobuf:"varint,4,opt,name=total_size,json=totalSize,proto3" json:"total_size,omitempty"`
	// contains filtered or unexported fields
}

func (*ListExamsResponse) Descriptor deprecated

func (*ListExamsResponse) Descriptor() ([]byte, []int)

Deprecated: Use ListExamsResponse.ProtoReflect.Descriptor instead.

func (*ListExamsResponse) GetExams

func (x *ListExamsResponse) GetExams() []*Exam

func (*ListExamsResponse) GetPage

func (x *ListExamsResponse) GetPage() int32

func (*ListExamsResponse) GetSize

func (x *ListExamsResponse) GetSize() int32

func (*ListExamsResponse) GetTotalSize

func (x *ListExamsResponse) GetTotalSize() int32

func (*ListExamsResponse) ProtoMessage

func (*ListExamsResponse) ProtoMessage()

func (*ListExamsResponse) ProtoReflect

func (x *ListExamsResponse) ProtoReflect() protoreflect.Message

func (*ListExamsResponse) Reset

func (x *ListExamsResponse) Reset()

func (*ListExamsResponse) String

func (x *ListExamsResponse) String() string

type ListParticipantsRequest

type ListParticipantsRequest struct {
	Size   int32                           `protobuf:"varint,1,opt,name=size,proto3" json:"size,omitempty"`
	Page   int32                           `protobuf:"varint,2,opt,name=page,proto3" json:"page,omitempty"`
	Filter *ListParticipantsRequest_Filter `protobuf:"bytes,3,opt,name=filter,proto3" json:"filter,omitempty"`
	// contains filtered or unexported fields
}

func (*ListParticipantsRequest) Descriptor deprecated

func (*ListParticipantsRequest) Descriptor() ([]byte, []int)

Deprecated: Use ListParticipantsRequest.ProtoReflect.Descriptor instead.

func (*ListParticipantsRequest) GetFilter

func (*ListParticipantsRequest) GetPage

func (x *ListParticipantsRequest) GetPage() int32

func (*ListParticipantsRequest) GetSize

func (x *ListParticipantsRequest) GetSize() int32

func (*ListParticipantsRequest) ProtoMessage

func (*ListParticipantsRequest) ProtoMessage()

func (*ListParticipantsRequest) ProtoReflect

func (x *ListParticipantsRequest) ProtoReflect() protoreflect.Message

func (*ListParticipantsRequest) Reset

func (x *ListParticipantsRequest) Reset()

func (*ListParticipantsRequest) String

func (x *ListParticipantsRequest) String() string

type ListParticipantsRequest_Filter

type ListParticipantsRequest_Filter struct {
	ExamId *int32 `protobuf:"varint,1,opt,name=exam_id,json=examId,proto3,oneof" json:"exam_id,omitempty"`
	// contains filtered or unexported fields
}

func (*ListParticipantsRequest_Filter) Descriptor deprecated

func (*ListParticipantsRequest_Filter) Descriptor() ([]byte, []int)

Deprecated: Use ListParticipantsRequest_Filter.ProtoReflect.Descriptor instead.

func (*ListParticipantsRequest_Filter) GetExamId

func (x *ListParticipantsRequest_Filter) GetExamId() int32

func (*ListParticipantsRequest_Filter) ProtoMessage

func (*ListParticipantsRequest_Filter) ProtoMessage()

func (*ListParticipantsRequest_Filter) ProtoReflect

func (*ListParticipantsRequest_Filter) Reset

func (x *ListParticipantsRequest_Filter) Reset()

func (*ListParticipantsRequest_Filter) String

type ListParticipantsResponse

type ListParticipantsResponse struct {
	Participants []*Participant `protobuf:"bytes,1,rep,name=participants,proto3" json:"participants,omitempty"`
	Size         int32          `protobuf:"varint,2,opt,name=size,proto3" json:"size,omitempty"`
	Page         int32          `protobuf:"varint,3,opt,name=page,proto3" json:"page,omitempty"`
	TotalSize    int32          `protobuf:"varint,4,opt,name=total_size,json=totalSize,proto3" json:"total_size,omitempty"`
	// contains filtered or unexported fields
}

func (*ListParticipantsResponse) Descriptor deprecated

func (*ListParticipantsResponse) Descriptor() ([]byte, []int)

Deprecated: Use ListParticipantsResponse.ProtoReflect.Descriptor instead.

func (*ListParticipantsResponse) GetPage

func (x *ListParticipantsResponse) GetPage() int32

func (*ListParticipantsResponse) GetParticipants

func (x *ListParticipantsResponse) GetParticipants() []*Participant

func (*ListParticipantsResponse) GetSize

func (x *ListParticipantsResponse) GetSize() int32

func (*ListParticipantsResponse) GetTotalSize

func (x *ListParticipantsResponse) GetTotalSize() int32

func (*ListParticipantsResponse) ProtoMessage

func (*ListParticipantsResponse) ProtoMessage()

func (*ListParticipantsResponse) ProtoReflect

func (x *ListParticipantsResponse) ProtoReflect() protoreflect.Message

func (*ListParticipantsResponse) Reset

func (x *ListParticipantsResponse) Reset()

func (*ListParticipantsResponse) String

func (x *ListParticipantsResponse) String() string

type ListQuestionsRequest

type ListQuestionsRequest struct {
	Size   int32                        `protobuf:"varint,1,opt,name=size,proto3" json:"size,omitempty"`
	Page   int32                        `protobuf:"varint,2,opt,name=page,proto3" json:"page,omitempty"`
	Filter *ListQuestionsRequest_Filter `protobuf:"bytes,3,opt,name=filter,proto3" json:"filter,omitempty"`
	// contains filtered or unexported fields
}

func (*ListQuestionsRequest) Descriptor deprecated

func (*ListQuestionsRequest) Descriptor() ([]byte, []int)

Deprecated: Use ListQuestionsRequest.ProtoReflect.Descriptor instead.

func (*ListQuestionsRequest) GetFilter

func (*ListQuestionsRequest) GetPage

func (x *ListQuestionsRequest) GetPage() int32

func (*ListQuestionsRequest) GetSize

func (x *ListQuestionsRequest) GetSize() int32

func (*ListQuestionsRequest) ProtoMessage

func (*ListQuestionsRequest) ProtoMessage()

func (*ListQuestionsRequest) ProtoReflect

func (x *ListQuestionsRequest) ProtoReflect() protoreflect.Message

func (*ListQuestionsRequest) Reset

func (x *ListQuestionsRequest) Reset()

func (*ListQuestionsRequest) String

func (x *ListQuestionsRequest) String() string

type ListQuestionsRequest_Filter

type ListQuestionsRequest_Filter struct {
	ExamId *int32 `protobuf:"varint,1,opt,name=exam_id,json=examId,proto3,oneof" json:"exam_id,omitempty"`
	// contains filtered or unexported fields
}

func (*ListQuestionsRequest_Filter) Descriptor deprecated

func (*ListQuestionsRequest_Filter) Descriptor() ([]byte, []int)

Deprecated: Use ListQuestionsRequest_Filter.ProtoReflect.Descriptor instead.

func (*ListQuestionsRequest_Filter) GetExamId

func (x *ListQuestionsRequest_Filter) GetExamId() int32

func (*ListQuestionsRequest_Filter) ProtoMessage

func (*ListQuestionsRequest_Filter) ProtoMessage()

func (*ListQuestionsRequest_Filter) ProtoReflect

func (*ListQuestionsRequest_Filter) Reset

func (x *ListQuestionsRequest_Filter) Reset()

func (*ListQuestionsRequest_Filter) String

func (x *ListQuestionsRequest_Filter) String() string

type ListQuestionsResponse

type ListQuestionsResponse struct {
	Questions []*Question `protobuf:"bytes,1,rep,name=questions,proto3" json:"questions,omitempty"`
	Size      int32       `protobuf:"varint,2,opt,name=size,proto3" json:"size,omitempty"`
	Page      int32       `protobuf:"varint,3,opt,name=page,proto3" json:"page,omitempty"`
	TotalSize int32       `protobuf:"varint,4,opt,name=total_size,json=totalSize,proto3" json:"total_size,omitempty"`
	// contains filtered or unexported fields
}

func (*ListQuestionsResponse) Descriptor deprecated

func (*ListQuestionsResponse) Descriptor() ([]byte, []int)

Deprecated: Use ListQuestionsResponse.ProtoReflect.Descriptor instead.

func (*ListQuestionsResponse) GetPage

func (x *ListQuestionsResponse) GetPage() int32

func (*ListQuestionsResponse) GetQuestions

func (x *ListQuestionsResponse) GetQuestions() []*Question

func (*ListQuestionsResponse) GetSize

func (x *ListQuestionsResponse) GetSize() int32

func (*ListQuestionsResponse) GetTotalSize

func (x *ListQuestionsResponse) GetTotalSize() int32

func (*ListQuestionsResponse) ProtoMessage

func (*ListQuestionsResponse) ProtoMessage()

func (*ListQuestionsResponse) ProtoReflect

func (x *ListQuestionsResponse) ProtoReflect() protoreflect.Message

func (*ListQuestionsResponse) Reset

func (x *ListQuestionsResponse) Reset()

func (*ListQuestionsResponse) String

func (x *ListQuestionsResponse) String() string

type Participant

type Participant struct {
	Id     int32  `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	ExamId int32  `protobuf:"varint,2,opt,name=exam_id,json=examId,proto3" json:"exam_id,omitempty"`
	Code   string `protobuf:"bytes,3,opt,name=code,proto3" json:"code,omitempty"`
	Name   string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*Participant) Descriptor deprecated

func (*Participant) Descriptor() ([]byte, []int)

Deprecated: Use Participant.ProtoReflect.Descriptor instead.

func (*Participant) GetCode

func (x *Participant) GetCode() string

func (*Participant) GetExamId

func (x *Participant) GetExamId() int32

func (*Participant) GetId

func (x *Participant) GetId() int32

func (*Participant) GetName

func (x *Participant) GetName() string

func (*Participant) ProtoMessage

func (*Participant) ProtoMessage()

func (*Participant) ProtoReflect

func (x *Participant) ProtoReflect() protoreflect.Message

func (*Participant) Reset

func (x *Participant) Reset()

func (*Participant) String

func (x *Participant) String() string

type ParticipantServiceClient

type ParticipantServiceClient interface {
	GetParticipant(ctx context.Context, in *GetParticipantRequest, opts ...grpc.CallOption) (*GetParticipantResponse, error)
	ListParticipants(ctx context.Context, in *ListParticipantsRequest, opts ...grpc.CallOption) (*ListParticipantsResponse, error)
	CreateParticipant(ctx context.Context, in *CreateParticipantRequest, opts ...grpc.CallOption) (*CreateParticipantResponse, error)
	UpdateParticipant(ctx context.Context, in *UpdateParticipantRequest, opts ...grpc.CallOption) (*UpdateParticipantResponse, error)
	DeleteParticipant(ctx context.Context, in *DeleteParticipantRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
}

ParticipantServiceClient is the client API for ParticipantService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

type ParticipantServiceServer

type ParticipantServiceServer interface {
	GetParticipant(context.Context, *GetParticipantRequest) (*GetParticipantResponse, error)
	ListParticipants(context.Context, *ListParticipantsRequest) (*ListParticipantsResponse, error)
	CreateParticipant(context.Context, *CreateParticipantRequest) (*CreateParticipantResponse, error)
	UpdateParticipant(context.Context, *UpdateParticipantRequest) (*UpdateParticipantResponse, error)
	DeleteParticipant(context.Context, *DeleteParticipantRequest) (*emptypb.Empty, error)
	// contains filtered or unexported methods
}

ParticipantServiceServer is the server API for ParticipantService service. All implementations must embed UnimplementedParticipantServiceServer for forward compatibility

type Question

type Question struct {
	Id      int32         `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	ExamId  int32         `protobuf:"varint,2,opt,name=exam_id,json=examId,proto3" json:"exam_id,omitempty"`
	Type    Question_Type `protobuf:"varint,3,opt,name=type,proto3,enum=testycool.v1.Question_Type" json:"type,omitempty"`
	Format  TextFormat    `protobuf:"varint,4,opt,name=format,proto3,enum=testycool.v1.TextFormat" json:"format,omitempty"`
	Content string        `protobuf:"bytes,5,opt,name=content,proto3" json:"content,omitempty"`
	// contains filtered or unexported fields
}

func (*Question) Descriptor deprecated

func (*Question) Descriptor() ([]byte, []int)

Deprecated: Use Question.ProtoReflect.Descriptor instead.

func (*Question) GetContent

func (x *Question) GetContent() string

func (*Question) GetExamId

func (x *Question) GetExamId() int32

func (*Question) GetFormat

func (x *Question) GetFormat() TextFormat

func (*Question) GetId

func (x *Question) GetId() int32

func (*Question) GetType

func (x *Question) GetType() Question_Type

func (*Question) ProtoMessage

func (*Question) ProtoMessage()

func (*Question) ProtoReflect

func (x *Question) ProtoReflect() protoreflect.Message

func (*Question) Reset

func (x *Question) Reset()

func (*Question) String

func (x *Question) String() string

type QuestionServiceClient

type QuestionServiceClient interface {
	GetQuestion(ctx context.Context, in *GetQuestionRequest, opts ...grpc.CallOption) (*GetQuestionResponse, error)
	ListQuestions(ctx context.Context, in *ListQuestionsRequest, opts ...grpc.CallOption) (*ListQuestionsResponse, error)
	CreateQuestion(ctx context.Context, in *CreateQuestionRequest, opts ...grpc.CallOption) (*CreateQuestionResponse, error)
	UpdateQuestion(ctx context.Context, in *UpdateQuestionRequest, opts ...grpc.CallOption) (*UpdateQuestionResponse, error)
	DeleteQuestion(ctx context.Context, in *DeleteQuestionRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
}

QuestionServiceClient is the client API for QuestionService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

type QuestionServiceServer

type QuestionServiceServer interface {
	GetQuestion(context.Context, *GetQuestionRequest) (*GetQuestionResponse, error)
	ListQuestions(context.Context, *ListQuestionsRequest) (*ListQuestionsResponse, error)
	CreateQuestion(context.Context, *CreateQuestionRequest) (*CreateQuestionResponse, error)
	UpdateQuestion(context.Context, *UpdateQuestionRequest) (*UpdateQuestionResponse, error)
	DeleteQuestion(context.Context, *DeleteQuestionRequest) (*emptypb.Empty, error)
	// contains filtered or unexported methods
}

QuestionServiceServer is the server API for QuestionService service. All implementations must embed UnimplementedQuestionServiceServer for forward compatibility

type Question_Type

type Question_Type int32
const (
	Question_UNKNOWN         Question_Type = 0
	Question_MULTIPLE_CHOICE Question_Type = 1
	Question_ESSAY           Question_Type = 2
)

func (Question_Type) Descriptor

func (Question_Type) Enum

func (x Question_Type) Enum() *Question_Type

func (Question_Type) EnumDescriptor deprecated

func (Question_Type) EnumDescriptor() ([]byte, []int)

Deprecated: Use Question_Type.Descriptor instead.

func (Question_Type) Number

func (Question_Type) String

func (x Question_Type) String() string

func (Question_Type) Type

type TextFormat

type TextFormat int32
const (
	TextFormat_TEXT_FORMAT_UNKNOWN  TextFormat = 0
	TextFormat_TEXT_FORMAT_PLAIN    TextFormat = 1
	TextFormat_TEXT_FORMAT_HTML     TextFormat = 2
	TextFormat_TEXT_FORMAT_MARKDOWN TextFormat = 3
)

func (TextFormat) Descriptor

func (TextFormat) Descriptor() protoreflect.EnumDescriptor

func (TextFormat) Enum

func (x TextFormat) Enum() *TextFormat

func (TextFormat) EnumDescriptor deprecated

func (TextFormat) EnumDescriptor() ([]byte, []int)

Deprecated: Use TextFormat.Descriptor instead.

func (TextFormat) Number

func (x TextFormat) Number() protoreflect.EnumNumber

func (TextFormat) String

func (x TextFormat) String() string

func (TextFormat) Type

type UnimplementedAnalyticsServiceServer

type UnimplementedAnalyticsServiceServer struct {
}

UnimplementedAnalyticsServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedAnalyticsServiceServer) CreateAnalytics

func (UnimplementedAnalyticsServiceServer) DeleteAnalytics

func (UnimplementedAnalyticsServiceServer) GetAnalytics

func (UnimplementedAnalyticsServiceServer) ListAnalytics

func (UnimplementedAnalyticsServiceServer) UpdateAnalytics

type UnimplementedAnswerServiceServer

type UnimplementedAnswerServiceServer struct {
}

UnimplementedAnswerServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedAnswerServiceServer) CreateAnswer

func (UnimplementedAnswerServiceServer) DeleteAnswer

func (UnimplementedAnswerServiceServer) GetAnswer

func (UnimplementedAnswerServiceServer) ListAnswers

func (UnimplementedAnswerServiceServer) UpdateAnswer

type UnimplementedAttemptServiceServer

type UnimplementedAttemptServiceServer struct {
}

UnimplementedAttemptServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedAttemptServiceServer) CreateAttempt

func (UnimplementedAttemptServiceServer) DeleteAttempt

func (UnimplementedAttemptServiceServer) GetAttempt

func (UnimplementedAttemptServiceServer) ListAttempts

func (UnimplementedAttemptServiceServer) UpdateAttempt

type UnimplementedAuthServiceServer

type UnimplementedAuthServiceServer struct {
}

UnimplementedAuthServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedAuthServiceServer) GetAdminToken

type UnimplementedChoiceServiceServer

type UnimplementedChoiceServiceServer struct {
}

UnimplementedChoiceServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedChoiceServiceServer) CreateChoice

func (UnimplementedChoiceServiceServer) DeleteChoice

func (UnimplementedChoiceServiceServer) GetChoice

func (UnimplementedChoiceServiceServer) ListChoices

func (UnimplementedChoiceServiceServer) UpdateChoice

type UnimplementedExamServiceServer

type UnimplementedExamServiceServer struct {
}

UnimplementedExamServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedExamServiceServer) CreateExam

func (UnimplementedExamServiceServer) DeleteExam

func (UnimplementedExamServiceServer) GetExam

func (UnimplementedExamServiceServer) ListExams

func (UnimplementedExamServiceServer) UpdateExam

type UnimplementedParticipantServiceServer

type UnimplementedParticipantServiceServer struct {
}

UnimplementedParticipantServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedParticipantServiceServer) CreateParticipant

func (UnimplementedParticipantServiceServer) DeleteParticipant

func (UnimplementedParticipantServiceServer) GetParticipant

func (UnimplementedParticipantServiceServer) ListParticipants

func (UnimplementedParticipantServiceServer) UpdateParticipant

type UnimplementedQuestionServiceServer

type UnimplementedQuestionServiceServer struct {
}

UnimplementedQuestionServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedQuestionServiceServer) CreateQuestion

func (UnimplementedQuestionServiceServer) DeleteQuestion

func (UnimplementedQuestionServiceServer) GetQuestion

func (UnimplementedQuestionServiceServer) ListQuestions

func (UnimplementedQuestionServiceServer) UpdateQuestion

type UnsafeAnalyticsServiceServer

type UnsafeAnalyticsServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeAnalyticsServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to AnalyticsServiceServer will result in compilation errors.

type UnsafeAnswerServiceServer

type UnsafeAnswerServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeAnswerServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to AnswerServiceServer will result in compilation errors.

type UnsafeAttemptServiceServer

type UnsafeAttemptServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeAttemptServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to AttemptServiceServer will result in compilation errors.

type UnsafeAuthServiceServer

type UnsafeAuthServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeAuthServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to AuthServiceServer will result in compilation errors.

type UnsafeChoiceServiceServer

type UnsafeChoiceServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeChoiceServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ChoiceServiceServer will result in compilation errors.

type UnsafeExamServiceServer

type UnsafeExamServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeExamServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ExamServiceServer will result in compilation errors.

type UnsafeParticipantServiceServer

type UnsafeParticipantServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeParticipantServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ParticipantServiceServer will result in compilation errors.

type UnsafeQuestionServiceServer

type UnsafeQuestionServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeQuestionServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to QuestionServiceServer will result in compilation errors.

type UpdateAnalyticsRequest

type UpdateAnalyticsRequest struct {
	Analytics *Analytics `protobuf:"bytes,1,opt,name=analytics,proto3" json:"analytics,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateAnalyticsRequest) Descriptor deprecated

func (*UpdateAnalyticsRequest) Descriptor() ([]byte, []int)

Deprecated: Use UpdateAnalyticsRequest.ProtoReflect.Descriptor instead.

func (*UpdateAnalyticsRequest) GetAnalytics

func (x *UpdateAnalyticsRequest) GetAnalytics() *Analytics

func (*UpdateAnalyticsRequest) ProtoMessage

func (*UpdateAnalyticsRequest) ProtoMessage()

func (*UpdateAnalyticsRequest) ProtoReflect

func (x *UpdateAnalyticsRequest) ProtoReflect() protoreflect.Message

func (*UpdateAnalyticsRequest) Reset

func (x *UpdateAnalyticsRequest) Reset()

func (*UpdateAnalyticsRequest) String

func (x *UpdateAnalyticsRequest) String() string

type UpdateAnalyticsResponse

type UpdateAnalyticsResponse struct {
	Analytics *Analytics `protobuf:"bytes,1,opt,name=analytics,proto3" json:"analytics,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateAnalyticsResponse) Descriptor deprecated

func (*UpdateAnalyticsResponse) Descriptor() ([]byte, []int)

Deprecated: Use UpdateAnalyticsResponse.ProtoReflect.Descriptor instead.

func (*UpdateAnalyticsResponse) GetAnalytics

func (x *UpdateAnalyticsResponse) GetAnalytics() *Analytics

func (*UpdateAnalyticsResponse) ProtoMessage

func (*UpdateAnalyticsResponse) ProtoMessage()

func (*UpdateAnalyticsResponse) ProtoReflect

func (x *UpdateAnalyticsResponse) ProtoReflect() protoreflect.Message

func (*UpdateAnalyticsResponse) Reset

func (x *UpdateAnalyticsResponse) Reset()

func (*UpdateAnalyticsResponse) String

func (x *UpdateAnalyticsResponse) String() string

type UpdateAnswerRequest

type UpdateAnswerRequest struct {
	Answer *Answer `protobuf:"bytes,1,opt,name=answer,proto3" json:"answer,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateAnswerRequest) Descriptor deprecated

func (*UpdateAnswerRequest) Descriptor() ([]byte, []int)

Deprecated: Use UpdateAnswerRequest.ProtoReflect.Descriptor instead.

func (*UpdateAnswerRequest) GetAnswer

func (x *UpdateAnswerRequest) GetAnswer() *Answer

func (*UpdateAnswerRequest) ProtoMessage

func (*UpdateAnswerRequest) ProtoMessage()

func (*UpdateAnswerRequest) ProtoReflect

func (x *UpdateAnswerRequest) ProtoReflect() protoreflect.Message

func (*UpdateAnswerRequest) Reset

func (x *UpdateAnswerRequest) Reset()

func (*UpdateAnswerRequest) String

func (x *UpdateAnswerRequest) String() string

type UpdateAnswerResponse

type UpdateAnswerResponse struct {
	Answer *Answer `protobuf:"bytes,1,opt,name=answer,proto3" json:"answer,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateAnswerResponse) Descriptor deprecated

func (*UpdateAnswerResponse) Descriptor() ([]byte, []int)

Deprecated: Use UpdateAnswerResponse.ProtoReflect.Descriptor instead.

func (*UpdateAnswerResponse) GetAnswer

func (x *UpdateAnswerResponse) GetAnswer() *Answer

func (*UpdateAnswerResponse) ProtoMessage

func (*UpdateAnswerResponse) ProtoMessage()

func (*UpdateAnswerResponse) ProtoReflect

func (x *UpdateAnswerResponse) ProtoReflect() protoreflect.Message

func (*UpdateAnswerResponse) Reset

func (x *UpdateAnswerResponse) Reset()

func (*UpdateAnswerResponse) String

func (x *UpdateAnswerResponse) String() string

type UpdateAttemptRequest

type UpdateAttemptRequest struct {
	Attempt *Attempt `protobuf:"bytes,1,opt,name=attempt,proto3" json:"attempt,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateAttemptRequest) Descriptor deprecated

func (*UpdateAttemptRequest) Descriptor() ([]byte, []int)

Deprecated: Use UpdateAttemptRequest.ProtoReflect.Descriptor instead.

func (*UpdateAttemptRequest) GetAttempt

func (x *UpdateAttemptRequest) GetAttempt() *Attempt

func (*UpdateAttemptRequest) ProtoMessage

func (*UpdateAttemptRequest) ProtoMessage()

func (*UpdateAttemptRequest) ProtoReflect

func (x *UpdateAttemptRequest) ProtoReflect() protoreflect.Message

func (*UpdateAttemptRequest) Reset

func (x *UpdateAttemptRequest) Reset()

func (*UpdateAttemptRequest) String

func (x *UpdateAttemptRequest) String() string

type UpdateAttemptResponse

type UpdateAttemptResponse struct {
	Attempt *Attempt `protobuf:"bytes,1,opt,name=attempt,proto3" json:"attempt,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateAttemptResponse) Descriptor deprecated

func (*UpdateAttemptResponse) Descriptor() ([]byte, []int)

Deprecated: Use UpdateAttemptResponse.ProtoReflect.Descriptor instead.

func (*UpdateAttemptResponse) GetAttempt

func (x *UpdateAttemptResponse) GetAttempt() *Attempt

func (*UpdateAttemptResponse) ProtoMessage

func (*UpdateAttemptResponse) ProtoMessage()

func (*UpdateAttemptResponse) ProtoReflect

func (x *UpdateAttemptResponse) ProtoReflect() protoreflect.Message

func (*UpdateAttemptResponse) Reset

func (x *UpdateAttemptResponse) Reset()

func (*UpdateAttemptResponse) String

func (x *UpdateAttemptResponse) String() string

type UpdateChoiceRequest

type UpdateChoiceRequest struct {
	Choice *Choice `protobuf:"bytes,1,opt,name=choice,proto3" json:"choice,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateChoiceRequest) Descriptor deprecated

func (*UpdateChoiceRequest) Descriptor() ([]byte, []int)

Deprecated: Use UpdateChoiceRequest.ProtoReflect.Descriptor instead.

func (*UpdateChoiceRequest) GetChoice

func (x *UpdateChoiceRequest) GetChoice() *Choice

func (*UpdateChoiceRequest) ProtoMessage

func (*UpdateChoiceRequest) ProtoMessage()

func (*UpdateChoiceRequest) ProtoReflect

func (x *UpdateChoiceRequest) ProtoReflect() protoreflect.Message

func (*UpdateChoiceRequest) Reset

func (x *UpdateChoiceRequest) Reset()

func (*UpdateChoiceRequest) String

func (x *UpdateChoiceRequest) String() string

type UpdateChoiceResponse

type UpdateChoiceResponse struct {
	Choice *Choice `protobuf:"bytes,1,opt,name=choice,proto3" json:"choice,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateChoiceResponse) Descriptor deprecated

func (*UpdateChoiceResponse) Descriptor() ([]byte, []int)

Deprecated: Use UpdateChoiceResponse.ProtoReflect.Descriptor instead.

func (*UpdateChoiceResponse) GetChoice

func (x *UpdateChoiceResponse) GetChoice() *Choice

func (*UpdateChoiceResponse) ProtoMessage

func (*UpdateChoiceResponse) ProtoMessage()

func (*UpdateChoiceResponse) ProtoReflect

func (x *UpdateChoiceResponse) ProtoReflect() protoreflect.Message

func (*UpdateChoiceResponse) Reset

func (x *UpdateChoiceResponse) Reset()

func (*UpdateChoiceResponse) String

func (x *UpdateChoiceResponse) String() string

type UpdateExamRequest

type UpdateExamRequest struct {
	Exam *Exam `protobuf:"bytes,1,opt,name=exam,proto3" json:"exam,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateExamRequest) Descriptor deprecated

func (*UpdateExamRequest) Descriptor() ([]byte, []int)

Deprecated: Use UpdateExamRequest.ProtoReflect.Descriptor instead.

func (*UpdateExamRequest) GetExam

func (x *UpdateExamRequest) GetExam() *Exam

func (*UpdateExamRequest) ProtoMessage

func (*UpdateExamRequest) ProtoMessage()

func (*UpdateExamRequest) ProtoReflect

func (x *UpdateExamRequest) ProtoReflect() protoreflect.Message

func (*UpdateExamRequest) Reset

func (x *UpdateExamRequest) Reset()

func (*UpdateExamRequest) String

func (x *UpdateExamRequest) String() string

type UpdateExamResponse

type UpdateExamResponse struct {
	Exam *Exam `protobuf:"bytes,1,opt,name=exam,proto3" json:"exam,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateExamResponse) Descriptor deprecated

func (*UpdateExamResponse) Descriptor() ([]byte, []int)

Deprecated: Use UpdateExamResponse.ProtoReflect.Descriptor instead.

func (*UpdateExamResponse) GetExam

func (x *UpdateExamResponse) GetExam() *Exam

func (*UpdateExamResponse) ProtoMessage

func (*UpdateExamResponse) ProtoMessage()

func (*UpdateExamResponse) ProtoReflect

func (x *UpdateExamResponse) ProtoReflect() protoreflect.Message

func (*UpdateExamResponse) Reset

func (x *UpdateExamResponse) Reset()

func (*UpdateExamResponse) String

func (x *UpdateExamResponse) String() string

type UpdateParticipantRequest

type UpdateParticipantRequest struct {
	Participant *Participant `protobuf:"bytes,1,opt,name=participant,proto3" json:"participant,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateParticipantRequest) Descriptor deprecated

func (*UpdateParticipantRequest) Descriptor() ([]byte, []int)

Deprecated: Use UpdateParticipantRequest.ProtoReflect.Descriptor instead.

func (*UpdateParticipantRequest) GetParticipant

func (x *UpdateParticipantRequest) GetParticipant() *Participant

func (*UpdateParticipantRequest) ProtoMessage

func (*UpdateParticipantRequest) ProtoMessage()

func (*UpdateParticipantRequest) ProtoReflect

func (x *UpdateParticipantRequest) ProtoReflect() protoreflect.Message

func (*UpdateParticipantRequest) Reset

func (x *UpdateParticipantRequest) Reset()

func (*UpdateParticipantRequest) String

func (x *UpdateParticipantRequest) String() string

type UpdateParticipantResponse

type UpdateParticipantResponse struct {
	Participant *Participant `protobuf:"bytes,1,opt,name=participant,proto3" json:"participant,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateParticipantResponse) Descriptor deprecated

func (*UpdateParticipantResponse) Descriptor() ([]byte, []int)

Deprecated: Use UpdateParticipantResponse.ProtoReflect.Descriptor instead.

func (*UpdateParticipantResponse) GetParticipant

func (x *UpdateParticipantResponse) GetParticipant() *Participant

func (*UpdateParticipantResponse) ProtoMessage

func (*UpdateParticipantResponse) ProtoMessage()

func (*UpdateParticipantResponse) ProtoReflect

func (*UpdateParticipantResponse) Reset

func (x *UpdateParticipantResponse) Reset()

func (*UpdateParticipantResponse) String

func (x *UpdateParticipantResponse) String() string

type UpdateQuestionRequest

type UpdateQuestionRequest struct {
	Question *Question `protobuf:"bytes,1,opt,name=question,proto3" json:"question,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateQuestionRequest) Descriptor deprecated

func (*UpdateQuestionRequest) Descriptor() ([]byte, []int)

Deprecated: Use UpdateQuestionRequest.ProtoReflect.Descriptor instead.

func (*UpdateQuestionRequest) GetQuestion

func (x *UpdateQuestionRequest) GetQuestion() *Question

func (*UpdateQuestionRequest) ProtoMessage

func (*UpdateQuestionRequest) ProtoMessage()

func (*UpdateQuestionRequest) ProtoReflect

func (x *UpdateQuestionRequest) ProtoReflect() protoreflect.Message

func (*UpdateQuestionRequest) Reset

func (x *UpdateQuestionRequest) Reset()

func (*UpdateQuestionRequest) String

func (x *UpdateQuestionRequest) String() string

type UpdateQuestionResponse

type UpdateQuestionResponse struct {
	Question *Question `protobuf:"bytes,1,opt,name=question,proto3" json:"question,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateQuestionResponse) Descriptor deprecated

func (*UpdateQuestionResponse) Descriptor() ([]byte, []int)

Deprecated: Use UpdateQuestionResponse.ProtoReflect.Descriptor instead.

func (*UpdateQuestionResponse) GetQuestion

func (x *UpdateQuestionResponse) GetQuestion() *Question

func (*UpdateQuestionResponse) ProtoMessage

func (*UpdateQuestionResponse) ProtoMessage()

func (*UpdateQuestionResponse) ProtoReflect

func (x *UpdateQuestionResponse) ProtoReflect() protoreflect.Message

func (*UpdateQuestionResponse) Reset

func (x *UpdateQuestionResponse) Reset()

func (*UpdateQuestionResponse) String

func (x *UpdateQuestionResponse) String() string

Jump to

Keyboard shortcuts

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