Versions in this module Expand all Collapse all v1 v1.0.0 Nov 15, 2024 Changes in this version + const Form_FindByID_FullMethodName + const Form_FindByTeacherUsername_FullMethodName + var File_form_proto protoreflect.FileDescriptor + var Form_ServiceDesc = grpc.ServiceDesc + func RegisterFormServer(s grpc.ServiceRegistrar, srv FormServer) + type AnswerDTO struct + Id string + IsCorrect bool + Text string + func (*AnswerDTO) Descriptor() ([]byte, []int) + func (*AnswerDTO) ProtoMessage() + func (m *AnswerDTO) Validate() error + func (m *AnswerDTO) ValidateAll() error + func (x *AnswerDTO) GetId() string + func (x *AnswerDTO) GetIsCorrect() bool + func (x *AnswerDTO) GetText() string + func (x *AnswerDTO) ProtoReflect() protoreflect.Message + func (x *AnswerDTO) Reset() + func (x *AnswerDTO) String() string + type AnswerDTOMultiError []error + func (m AnswerDTOMultiError) AllErrors() []error + func (m AnswerDTOMultiError) Error() string + type AnswerDTOValidationError struct + func (e AnswerDTOValidationError) Cause() error + func (e AnswerDTOValidationError) Error() string + func (e AnswerDTOValidationError) ErrorName() string + func (e AnswerDTOValidationError) Field() string + func (e AnswerDTOValidationError) Key() bool + func (e AnswerDTOValidationError) Reason() string + type FormClient interface + FindByID func(ctx context.Context, in *FormFindByIDRequest, opts ...grpc.CallOption) (*FormFindByIDResponse, error) + FindByTeacherUsername func(ctx context.Context, in *FormFindByTeacherUsernameRequest, ...) (*FormFindByTeacherUsernameResponse, error) + func NewFormClient(cc grpc.ClientConnInterface) FormClient + type FormDTO struct + CreatedAt *timestamppb.Timestamp + Description string + Id string + Name string + Questions []*QuestionDTO + TeacherUsername string + TestingBeginDate *timestamppb.Timestamp + TestingEndDate *timestamppb.Timestamp + func (*FormDTO) Descriptor() ([]byte, []int) + func (*FormDTO) ProtoMessage() + func (m *FormDTO) Validate() error + func (m *FormDTO) ValidateAll() error + func (x *FormDTO) GetCreatedAt() *timestamppb.Timestamp + func (x *FormDTO) GetDescription() string + func (x *FormDTO) GetId() string + func (x *FormDTO) GetName() string + func (x *FormDTO) GetQuestions() []*QuestionDTO + func (x *FormDTO) GetTeacherUsername() string + func (x *FormDTO) GetTestingBeginDate() *timestamppb.Timestamp + func (x *FormDTO) GetTestingEndDate() *timestamppb.Timestamp + func (x *FormDTO) ProtoReflect() protoreflect.Message + func (x *FormDTO) Reset() + func (x *FormDTO) String() string + type FormDTOMultiError []error + func (m FormDTOMultiError) AllErrors() []error + func (m FormDTOMultiError) Error() string + type FormDTOValidationError struct + func (e FormDTOValidationError) Cause() error + func (e FormDTOValidationError) Error() string + func (e FormDTOValidationError) ErrorName() string + func (e FormDTOValidationError) Field() string + func (e FormDTOValidationError) Key() bool + func (e FormDTOValidationError) Reason() string + type FormFindByIDRequest struct + FormId string + func (*FormFindByIDRequest) Descriptor() ([]byte, []int) + func (*FormFindByIDRequest) ProtoMessage() + func (m *FormFindByIDRequest) Validate() error + func (m *FormFindByIDRequest) ValidateAll() error + func (x *FormFindByIDRequest) GetFormId() string + func (x *FormFindByIDRequest) ProtoReflect() protoreflect.Message + func (x *FormFindByIDRequest) Reset() + func (x *FormFindByIDRequest) String() string + type FormFindByIDRequestMultiError []error + func (m FormFindByIDRequestMultiError) AllErrors() []error + func (m FormFindByIDRequestMultiError) Error() string + type FormFindByIDRequestValidationError struct + func (e FormFindByIDRequestValidationError) Cause() error + func (e FormFindByIDRequestValidationError) Error() string + func (e FormFindByIDRequestValidationError) ErrorName() string + func (e FormFindByIDRequestValidationError) Field() string + func (e FormFindByIDRequestValidationError) Key() bool + func (e FormFindByIDRequestValidationError) Reason() string + type FormFindByIDResponse struct + Form *FormDTO + func (*FormFindByIDResponse) Descriptor() ([]byte, []int) + func (*FormFindByIDResponse) ProtoMessage() + func (m *FormFindByIDResponse) Validate() error + func (m *FormFindByIDResponse) ValidateAll() error + func (x *FormFindByIDResponse) GetForm() *FormDTO + func (x *FormFindByIDResponse) ProtoReflect() protoreflect.Message + func (x *FormFindByIDResponse) Reset() + func (x *FormFindByIDResponse) String() string + type FormFindByIDResponseMultiError []error + func (m FormFindByIDResponseMultiError) AllErrors() []error + func (m FormFindByIDResponseMultiError) Error() string + type FormFindByIDResponseValidationError struct + func (e FormFindByIDResponseValidationError) Cause() error + func (e FormFindByIDResponseValidationError) Error() string + func (e FormFindByIDResponseValidationError) ErrorName() string + func (e FormFindByIDResponseValidationError) Field() string + func (e FormFindByIDResponseValidationError) Key() bool + func (e FormFindByIDResponseValidationError) Reason() string + type FormFindByTeacherUsernameRequest struct + func (*FormFindByTeacherUsernameRequest) Descriptor() ([]byte, []int) + func (*FormFindByTeacherUsernameRequest) ProtoMessage() + func (m *FormFindByTeacherUsernameRequest) Validate() error + func (m *FormFindByTeacherUsernameRequest) ValidateAll() error + func (x *FormFindByTeacherUsernameRequest) ProtoReflect() protoreflect.Message + func (x *FormFindByTeacherUsernameRequest) Reset() + func (x *FormFindByTeacherUsernameRequest) String() string + type FormFindByTeacherUsernameRequestMultiError []error + func (m FormFindByTeacherUsernameRequestMultiError) AllErrors() []error + func (m FormFindByTeacherUsernameRequestMultiError) Error() string + type FormFindByTeacherUsernameRequestValidationError struct + func (e FormFindByTeacherUsernameRequestValidationError) Cause() error + func (e FormFindByTeacherUsernameRequestValidationError) Error() string + func (e FormFindByTeacherUsernameRequestValidationError) ErrorName() string + func (e FormFindByTeacherUsernameRequestValidationError) Field() string + func (e FormFindByTeacherUsernameRequestValidationError) Key() bool + func (e FormFindByTeacherUsernameRequestValidationError) Reason() string + type FormFindByTeacherUsernameResponse struct + FoundForms []*FormDTO + func (*FormFindByTeacherUsernameResponse) Descriptor() ([]byte, []int) + func (*FormFindByTeacherUsernameResponse) ProtoMessage() + func (m *FormFindByTeacherUsernameResponse) Validate() error + func (m *FormFindByTeacherUsernameResponse) ValidateAll() error + func (x *FormFindByTeacherUsernameResponse) GetFoundForms() []*FormDTO + func (x *FormFindByTeacherUsernameResponse) ProtoReflect() protoreflect.Message + func (x *FormFindByTeacherUsernameResponse) Reset() + func (x *FormFindByTeacherUsernameResponse) String() string + type FormFindByTeacherUsernameResponseMultiError []error + func (m FormFindByTeacherUsernameResponseMultiError) AllErrors() []error + func (m FormFindByTeacherUsernameResponseMultiError) Error() string + type FormFindByTeacherUsernameResponseValidationError struct + func (e FormFindByTeacherUsernameResponseValidationError) Cause() error + func (e FormFindByTeacherUsernameResponseValidationError) Error() string + func (e FormFindByTeacherUsernameResponseValidationError) ErrorName() string + func (e FormFindByTeacherUsernameResponseValidationError) Field() string + func (e FormFindByTeacherUsernameResponseValidationError) Key() bool + func (e FormFindByTeacherUsernameResponseValidationError) Reason() string + type FormServer interface + FindByID func(context.Context, *FormFindByIDRequest) (*FormFindByIDResponse, error) + FindByTeacherUsername func(context.Context, *FormFindByTeacherUsernameRequest) (*FormFindByTeacherUsernameResponse, error) + type QuestionDTO struct + Answers []*AnswerDTO + Id string + Text string + func (*QuestionDTO) Descriptor() ([]byte, []int) + func (*QuestionDTO) ProtoMessage() + func (m *QuestionDTO) Validate() error + func (m *QuestionDTO) ValidateAll() error + func (x *QuestionDTO) GetAnswers() []*AnswerDTO + func (x *QuestionDTO) GetId() string + func (x *QuestionDTO) GetText() string + func (x *QuestionDTO) ProtoReflect() protoreflect.Message + func (x *QuestionDTO) Reset() + func (x *QuestionDTO) String() string + type QuestionDTOMultiError []error + func (m QuestionDTOMultiError) AllErrors() []error + func (m QuestionDTOMultiError) Error() string + type QuestionDTOValidationError struct + func (e QuestionDTOValidationError) Cause() error + func (e QuestionDTOValidationError) Error() string + func (e QuestionDTOValidationError) ErrorName() string + func (e QuestionDTOValidationError) Field() string + func (e QuestionDTOValidationError) Key() bool + func (e QuestionDTOValidationError) Reason() string + type UnimplementedFormServer struct + func (UnimplementedFormServer) FindByID(context.Context, *FormFindByIDRequest) (*FormFindByIDResponse, error) + func (UnimplementedFormServer) FindByTeacherUsername(context.Context, *FormFindByTeacherUsernameRequest) (*FormFindByTeacherUsernameResponse, error) + type UnsafeFormServer interface