Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterTeacherServiceServer(s grpc.ServiceRegistrar, srv TeacherServiceServer)
- type CreateTeacherRequest
- func (*CreateTeacherRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateTeacherRequest) GetPhones() []*TeacherPhoneNumber
- func (x *CreateTeacherRequest) GetTeacherBirthday() string
- func (x *CreateTeacherRequest) GetTeacherFname() string
- func (x *CreateTeacherRequest) GetTeacherLname() string
- func (*CreateTeacherRequest) ProtoMessage()
- func (x *CreateTeacherRequest) ProtoReflect() protoreflect.Message
- func (x *CreateTeacherRequest) Reset()
- func (x *CreateTeacherRequest) String() string
- type CreateTeacherResponse
- func (*CreateTeacherResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CreateTeacherResponse) GetTeacherId() string
- func (*CreateTeacherResponse) ProtoMessage()
- func (x *CreateTeacherResponse) ProtoReflect() protoreflect.Message
- func (x *CreateTeacherResponse) Reset()
- func (x *CreateTeacherResponse) String() string
- type GetAllTeachersRequest
- func (*GetAllTeachersRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetAllTeachersRequest) GetField() string
- func (x *GetAllTeachersRequest) GetLimit() int32
- func (x *GetAllTeachersRequest) GetPage() int32
- func (x *GetAllTeachersRequest) GetValues() string
- func (*GetAllTeachersRequest) ProtoMessage()
- func (x *GetAllTeachersRequest) ProtoReflect() protoreflect.Message
- func (x *GetAllTeachersRequest) Reset()
- func (x *GetAllTeachersRequest) String() string
- type GetAllTeachersResponse
- func (*GetAllTeachersResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetAllTeachersResponse) GetTeachers() []*Teacher
- func (*GetAllTeachersResponse) ProtoMessage()
- func (x *GetAllTeachersResponse) ProtoReflect() protoreflect.Message
- func (x *GetAllTeachersResponse) Reset()
- func (x *GetAllTeachersResponse) String() string
- type GetTeacherByIdRequest
- func (*GetTeacherByIdRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetTeacherByIdRequest) GetTeacherId() string
- func (*GetTeacherByIdRequest) ProtoMessage()
- func (x *GetTeacherByIdRequest) ProtoReflect() protoreflect.Message
- func (x *GetTeacherByIdRequest) Reset()
- func (x *GetTeacherByIdRequest) String() string
- type Teacher
- func (*Teacher) Descriptor() ([]byte, []int)deprecated
- func (x *Teacher) GetCreatedAt() string
- func (x *Teacher) GetDeletedAt() string
- func (x *Teacher) GetPhones() []*TeacherPhoneNumber
- func (x *Teacher) GetRating() int32
- func (x *Teacher) GetSalary() float32
- func (x *Teacher) GetTeacherBirthday() string
- func (x *Teacher) GetTeacherFname() string
- func (x *Teacher) GetTeacherId() string
- func (x *Teacher) GetTeacherLname() string
- func (x *Teacher) GetTeacherPoint() int64
- func (x *Teacher) GetUpdatedAt() string
- func (*Teacher) ProtoMessage()
- func (x *Teacher) ProtoReflect() protoreflect.Message
- func (x *Teacher) Reset()
- func (x *Teacher) String() string
- type TeacherPhoneNumber
- func (*TeacherPhoneNumber) Descriptor() ([]byte, []int)deprecated
- func (x *TeacherPhoneNumber) GetPhoneNumber() string
- func (*TeacherPhoneNumber) ProtoMessage()
- func (x *TeacherPhoneNumber) ProtoReflect() protoreflect.Message
- func (x *TeacherPhoneNumber) Reset()
- func (x *TeacherPhoneNumber) String() string
- type TeacherServiceClient
- type TeacherServiceServer
- type UnimplementedTeacherServiceServer
- func (UnimplementedTeacherServiceServer) CreateTeacher(context.Context, *CreateTeacherRequest) (*CreateTeacherResponse, error)
- func (UnimplementedTeacherServiceServer) GetAllTeacher(context.Context, *GetAllTeachersRequest) (*GetAllTeachersResponse, error)
- func (UnimplementedTeacherServiceServer) GetTeacherById(context.Context, *GetTeacherByIdRequest) (*Teacher, error)
- func (UnimplementedTeacherServiceServer) UpdateTeacher(context.Context, *UpdateTeacherRequest) (*Teacher, error)
- type UnsafeTeacherServiceServer
- type UpdateTeacherRequest
- func (*UpdateTeacherRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateTeacherRequest) GetPhones() []*TeacherPhoneNumber
- func (x *UpdateTeacherRequest) GetTeacherFname() string
- func (x *UpdateTeacherRequest) GetTeacherId() string
- func (x *UpdateTeacherRequest) GetTeacherLname() string
- func (*UpdateTeacherRequest) ProtoMessage()
- func (x *UpdateTeacherRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateTeacherRequest) Reset()
- func (x *UpdateTeacherRequest) String() string
Constants ¶
const ( TeacherService_CreateTeacher_FullMethodName = "/TeacherService/CreateTeacher" TeacherService_GetAllTeacher_FullMethodName = "/TeacherService/GetAllTeacher" TeacherService_GetTeacherById_FullMethodName = "/TeacherService/GetTeacherById" TeacherService_UpdateTeacher_FullMethodName = "/TeacherService/UpdateTeacher" )
Variables ¶
var File_teacher_teacher_proto protoreflect.FileDescriptor
var TeacherService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "TeacherService", HandlerType: (*TeacherServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "CreateTeacher", Handler: _TeacherService_CreateTeacher_Handler, }, { MethodName: "GetAllTeacher", Handler: _TeacherService_GetAllTeacher_Handler, }, { MethodName: "GetTeacherById", Handler: _TeacherService_GetTeacherById_Handler, }, { MethodName: "UpdateTeacher", Handler: _TeacherService_UpdateTeacher_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "teacher/teacher.proto", }
TeacherService_ServiceDesc is the grpc.ServiceDesc for TeacherService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterTeacherServiceServer ¶
func RegisterTeacherServiceServer(s grpc.ServiceRegistrar, srv TeacherServiceServer)
Types ¶
type CreateTeacherRequest ¶
type CreateTeacherRequest struct { TeacherFname string `protobuf:"bytes,1,opt,name=teacher_fname,json=teacherFname,proto3" json:"teacher_fname,omitempty"` TeacherLname string `protobuf:"bytes,2,opt,name=teacher_lname,json=teacherLname,proto3" json:"teacher_lname,omitempty"` TeacherBirthday string `protobuf:"bytes,3,opt,name=teacher_birthday,json=teacherBirthday,proto3" json:"teacher_birthday,omitempty"` Phones []*TeacherPhoneNumber `protobuf:"bytes,4,rep,name=phones,proto3" json:"phones,omitempty"` // contains filtered or unexported fields }
func (*CreateTeacherRequest) Descriptor
deprecated
func (*CreateTeacherRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateTeacherRequest.ProtoReflect.Descriptor instead.
func (*CreateTeacherRequest) GetPhones ¶
func (x *CreateTeacherRequest) GetPhones() []*TeacherPhoneNumber
func (*CreateTeacherRequest) GetTeacherBirthday ¶
func (x *CreateTeacherRequest) GetTeacherBirthday() string
func (*CreateTeacherRequest) GetTeacherFname ¶
func (x *CreateTeacherRequest) GetTeacherFname() string
func (*CreateTeacherRequest) GetTeacherLname ¶
func (x *CreateTeacherRequest) GetTeacherLname() string
func (*CreateTeacherRequest) ProtoMessage ¶
func (*CreateTeacherRequest) ProtoMessage()
func (*CreateTeacherRequest) ProtoReflect ¶
func (x *CreateTeacherRequest) ProtoReflect() protoreflect.Message
func (*CreateTeacherRequest) Reset ¶
func (x *CreateTeacherRequest) Reset()
func (*CreateTeacherRequest) String ¶
func (x *CreateTeacherRequest) String() string
type CreateTeacherResponse ¶
type CreateTeacherResponse struct { TeacherId string `protobuf:"bytes,1,opt,name=teacher_id,json=teacherId,proto3" json:"teacher_id,omitempty"` // contains filtered or unexported fields }
func (*CreateTeacherResponse) Descriptor
deprecated
func (*CreateTeacherResponse) Descriptor() ([]byte, []int)
Deprecated: Use CreateTeacherResponse.ProtoReflect.Descriptor instead.
func (*CreateTeacherResponse) GetTeacherId ¶
func (x *CreateTeacherResponse) GetTeacherId() string
func (*CreateTeacherResponse) ProtoMessage ¶
func (*CreateTeacherResponse) ProtoMessage()
func (*CreateTeacherResponse) ProtoReflect ¶
func (x *CreateTeacherResponse) ProtoReflect() protoreflect.Message
func (*CreateTeacherResponse) Reset ¶
func (x *CreateTeacherResponse) Reset()
func (*CreateTeacherResponse) String ¶
func (x *CreateTeacherResponse) String() string
type GetAllTeachersRequest ¶
type GetAllTeachersRequest struct { Page int32 `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty"` Limit int32 `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"` Field string `protobuf:"bytes,3,opt,name=field,proto3" json:"field,omitempty"` Values string `protobuf:"bytes,4,opt,name=values,proto3" json:"values,omitempty"` // contains filtered or unexported fields }
func (*GetAllTeachersRequest) Descriptor
deprecated
func (*GetAllTeachersRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetAllTeachersRequest.ProtoReflect.Descriptor instead.
func (*GetAllTeachersRequest) GetField ¶
func (x *GetAllTeachersRequest) GetField() string
func (*GetAllTeachersRequest) GetLimit ¶
func (x *GetAllTeachersRequest) GetLimit() int32
func (*GetAllTeachersRequest) GetPage ¶
func (x *GetAllTeachersRequest) GetPage() int32
func (*GetAllTeachersRequest) GetValues ¶
func (x *GetAllTeachersRequest) GetValues() string
func (*GetAllTeachersRequest) ProtoMessage ¶
func (*GetAllTeachersRequest) ProtoMessage()
func (*GetAllTeachersRequest) ProtoReflect ¶
func (x *GetAllTeachersRequest) ProtoReflect() protoreflect.Message
func (*GetAllTeachersRequest) Reset ¶
func (x *GetAllTeachersRequest) Reset()
func (*GetAllTeachersRequest) String ¶
func (x *GetAllTeachersRequest) String() string
type GetAllTeachersResponse ¶
type GetAllTeachersResponse struct { Teachers []*Teacher `protobuf:"bytes,1,rep,name=teachers,proto3" json:"teachers,omitempty"` // contains filtered or unexported fields }
func (*GetAllTeachersResponse) Descriptor
deprecated
func (*GetAllTeachersResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetAllTeachersResponse.ProtoReflect.Descriptor instead.
func (*GetAllTeachersResponse) GetTeachers ¶
func (x *GetAllTeachersResponse) GetTeachers() []*Teacher
func (*GetAllTeachersResponse) ProtoMessage ¶
func (*GetAllTeachersResponse) ProtoMessage()
func (*GetAllTeachersResponse) ProtoReflect ¶
func (x *GetAllTeachersResponse) ProtoReflect() protoreflect.Message
func (*GetAllTeachersResponse) Reset ¶
func (x *GetAllTeachersResponse) Reset()
func (*GetAllTeachersResponse) String ¶
func (x *GetAllTeachersResponse) String() string
type GetTeacherByIdRequest ¶
type GetTeacherByIdRequest struct { TeacherId string `protobuf:"bytes,1,opt,name=teacher_id,json=teacherId,proto3" json:"teacher_id,omitempty"` // contains filtered or unexported fields }
func (*GetTeacherByIdRequest) Descriptor
deprecated
func (*GetTeacherByIdRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetTeacherByIdRequest.ProtoReflect.Descriptor instead.
func (*GetTeacherByIdRequest) GetTeacherId ¶
func (x *GetTeacherByIdRequest) GetTeacherId() string
func (*GetTeacherByIdRequest) ProtoMessage ¶
func (*GetTeacherByIdRequest) ProtoMessage()
func (*GetTeacherByIdRequest) ProtoReflect ¶
func (x *GetTeacherByIdRequest) ProtoReflect() protoreflect.Message
func (*GetTeacherByIdRequest) Reset ¶
func (x *GetTeacherByIdRequest) Reset()
func (*GetTeacherByIdRequest) String ¶
func (x *GetTeacherByIdRequest) String() string
type Teacher ¶
type Teacher struct { TeacherFname string `protobuf:"bytes,1,opt,name=teacher_fname,json=teacherFname,proto3" json:"teacher_fname,omitempty"` TeacherLname string `protobuf:"bytes,2,opt,name=teacher_lname,json=teacherLname,proto3" json:"teacher_lname,omitempty"` TeacherBirthday string `protobuf:"bytes,3,opt,name=teacher_birthday,json=teacherBirthday,proto3" json:"teacher_birthday,omitempty"` Phones []*TeacherPhoneNumber `protobuf:"bytes,4,rep,name=phones,proto3" json:"phones,omitempty"` Salary float32 `protobuf:"fixed32,5,opt,name=salary,proto3" json:"salary,omitempty"` TeacherPoint int64 `protobuf:"varint,6,opt,name=teacher_point,json=teacherPoint,proto3" json:"teacher_point,omitempty"` Rating int32 `protobuf:"varint,7,opt,name=rating,proto3" json:"rating,omitempty"` CreatedAt string `protobuf:"bytes,8,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` UpdatedAt string `protobuf:"bytes,9,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` DeletedAt string `protobuf:"bytes,10,opt,name=deleted_at,json=deletedAt,proto3" json:"deleted_at,omitempty"` TeacherId string `protobuf:"bytes,11,opt,name=teacher_id,json=teacherId,proto3" json:"teacher_id,omitempty"` // contains filtered or unexported fields }
func (*Teacher) Descriptor
deprecated
func (*Teacher) GetCreatedAt ¶
func (*Teacher) GetDeletedAt ¶
func (*Teacher) GetPhones ¶
func (x *Teacher) GetPhones() []*TeacherPhoneNumber
func (*Teacher) GetTeacherBirthday ¶
func (*Teacher) GetTeacherFname ¶
func (*Teacher) GetTeacherId ¶ added in v0.0.15
func (*Teacher) GetTeacherLname ¶
func (*Teacher) GetTeacherPoint ¶
func (*Teacher) GetUpdatedAt ¶
func (*Teacher) ProtoMessage ¶
func (*Teacher) ProtoMessage()
func (*Teacher) ProtoReflect ¶
func (x *Teacher) ProtoReflect() protoreflect.Message
type TeacherPhoneNumber ¶
type TeacherPhoneNumber struct { PhoneNumber string `protobuf:"bytes,1,opt,name=phone_number,json=phoneNumber,proto3" json:"phone_number,omitempty"` // contains filtered or unexported fields }
func (*TeacherPhoneNumber) Descriptor
deprecated
func (*TeacherPhoneNumber) Descriptor() ([]byte, []int)
Deprecated: Use TeacherPhoneNumber.ProtoReflect.Descriptor instead.
func (*TeacherPhoneNumber) GetPhoneNumber ¶
func (x *TeacherPhoneNumber) GetPhoneNumber() string
func (*TeacherPhoneNumber) ProtoMessage ¶
func (*TeacherPhoneNumber) ProtoMessage()
func (*TeacherPhoneNumber) ProtoReflect ¶
func (x *TeacherPhoneNumber) ProtoReflect() protoreflect.Message
func (*TeacherPhoneNumber) Reset ¶
func (x *TeacherPhoneNumber) Reset()
func (*TeacherPhoneNumber) String ¶
func (x *TeacherPhoneNumber) String() string
type TeacherServiceClient ¶
type TeacherServiceClient interface { CreateTeacher(ctx context.Context, in *CreateTeacherRequest, opts ...grpc.CallOption) (*CreateTeacherResponse, error) GetAllTeacher(ctx context.Context, in *GetAllTeachersRequest, opts ...grpc.CallOption) (*GetAllTeachersResponse, error) GetTeacherById(ctx context.Context, in *GetTeacherByIdRequest, opts ...grpc.CallOption) (*Teacher, error) UpdateTeacher(ctx context.Context, in *UpdateTeacherRequest, opts ...grpc.CallOption) (*Teacher, error) }
TeacherServiceClient is the client API for TeacherService 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.
func NewTeacherServiceClient ¶
func NewTeacherServiceClient(cc grpc.ClientConnInterface) TeacherServiceClient
type TeacherServiceServer ¶
type TeacherServiceServer interface { CreateTeacher(context.Context, *CreateTeacherRequest) (*CreateTeacherResponse, error) GetAllTeacher(context.Context, *GetAllTeachersRequest) (*GetAllTeachersResponse, error) GetTeacherById(context.Context, *GetTeacherByIdRequest) (*Teacher, error) UpdateTeacher(context.Context, *UpdateTeacherRequest) (*Teacher, error) // contains filtered or unexported methods }
TeacherServiceServer is the server API for TeacherService service. All implementations must embed UnimplementedTeacherServiceServer for forward compatibility
type UnimplementedTeacherServiceServer ¶
type UnimplementedTeacherServiceServer struct { }
UnimplementedTeacherServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedTeacherServiceServer) CreateTeacher ¶
func (UnimplementedTeacherServiceServer) CreateTeacher(context.Context, *CreateTeacherRequest) (*CreateTeacherResponse, error)
func (UnimplementedTeacherServiceServer) GetAllTeacher ¶
func (UnimplementedTeacherServiceServer) GetAllTeacher(context.Context, *GetAllTeachersRequest) (*GetAllTeachersResponse, error)
func (UnimplementedTeacherServiceServer) GetTeacherById ¶
func (UnimplementedTeacherServiceServer) GetTeacherById(context.Context, *GetTeacherByIdRequest) (*Teacher, error)
func (UnimplementedTeacherServiceServer) UpdateTeacher ¶
func (UnimplementedTeacherServiceServer) UpdateTeacher(context.Context, *UpdateTeacherRequest) (*Teacher, error)
type UnsafeTeacherServiceServer ¶
type UnsafeTeacherServiceServer interface {
// contains filtered or unexported methods
}
UnsafeTeacherServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to TeacherServiceServer will result in compilation errors.
type UpdateTeacherRequest ¶
type UpdateTeacherRequest struct { TeacherFname string `protobuf:"bytes,1,opt,name=teacher_fname,json=teacherFname,proto3" json:"teacher_fname,omitempty"` TeacherLname string `protobuf:"bytes,2,opt,name=teacher_lname,json=teacherLname,proto3" json:"teacher_lname,omitempty"` Phones []*TeacherPhoneNumber `protobuf:"bytes,3,rep,name=phones,proto3" json:"phones,omitempty"` TeacherId string `protobuf:"bytes,4,opt,name=teacher_id,json=teacherId,proto3" json:"teacher_id,omitempty"` // contains filtered or unexported fields }
func (*UpdateTeacherRequest) Descriptor
deprecated
func (*UpdateTeacherRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateTeacherRequest.ProtoReflect.Descriptor instead.
func (*UpdateTeacherRequest) GetPhones ¶
func (x *UpdateTeacherRequest) GetPhones() []*TeacherPhoneNumber
func (*UpdateTeacherRequest) GetTeacherFname ¶
func (x *UpdateTeacherRequest) GetTeacherFname() string
func (*UpdateTeacherRequest) GetTeacherId ¶ added in v0.0.18
func (x *UpdateTeacherRequest) GetTeacherId() string
func (*UpdateTeacherRequest) GetTeacherLname ¶
func (x *UpdateTeacherRequest) GetTeacherLname() string
func (*UpdateTeacherRequest) ProtoMessage ¶
func (*UpdateTeacherRequest) ProtoMessage()
func (*UpdateTeacherRequest) ProtoReflect ¶
func (x *UpdateTeacherRequest) ProtoReflect() protoreflect.Message
func (*UpdateTeacherRequest) Reset ¶
func (x *UpdateTeacherRequest) Reset()
func (*UpdateTeacherRequest) String ¶
func (x *UpdateTeacherRequest) String() string