teacher17

package
v1.1.3 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TeacherService_CreateTeacher_FullMethodName  = "/TeacherService/CreateTeacher"
	TeacherService_GetAllTeacher_FullMethodName  = "/TeacherService/GetAllTeacher"
	TeacherService_GetTeacherById_FullMethodName = "/TeacherService/GetTeacherById"
	TeacherService_UpdateTeacher_FullMethodName  = "/TeacherService/UpdateTeacher"
)

Variables

View Source
var File_teacher_teacher_proto protoreflect.FileDescriptor
View Source
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) Descriptor() ([]byte, []int)

Deprecated: Use Teacher.ProtoReflect.Descriptor instead.

func (*Teacher) GetCreatedAt

func (x *Teacher) GetCreatedAt() string

func (*Teacher) GetDeletedAt

func (x *Teacher) GetDeletedAt() string

func (*Teacher) GetPhones

func (x *Teacher) GetPhones() []*TeacherPhoneNumber

func (*Teacher) GetRating

func (x *Teacher) GetRating() int32

func (*Teacher) GetSalary

func (x *Teacher) GetSalary() float32

func (*Teacher) GetTeacherBirthday

func (x *Teacher) GetTeacherBirthday() string

func (*Teacher) GetTeacherFname

func (x *Teacher) GetTeacherFname() string

func (*Teacher) GetTeacherId added in v0.0.15

func (x *Teacher) GetTeacherId() string

func (*Teacher) GetTeacherLname

func (x *Teacher) GetTeacherLname() string

func (*Teacher) GetTeacherPoint

func (x *Teacher) GetTeacherPoint() int64

func (*Teacher) GetUpdatedAt

func (x *Teacher) GetUpdatedAt() string

func (*Teacher) ProtoMessage

func (*Teacher) ProtoMessage()

func (*Teacher) ProtoReflect

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

func (*Teacher) Reset

func (x *Teacher) Reset()

func (*Teacher) String

func (x *Teacher) String() string

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.

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) GetAllTeacher

func (UnimplementedTeacherServiceServer) GetTeacherById

func (UnimplementedTeacherServiceServer) UpdateTeacher

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

Jump to

Keyboard shortcuts

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