Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var File_course_proto protoreflect.FileDescriptor
Functions ¶
func RegisterCourseServiceHandler ¶
func RegisterCourseServiceHandler(s server.Server, hdlr CourseServiceHandler, opts ...server.HandlerOption) error
Types ¶
type Course ¶
type Course struct { CourseId int64 `protobuf:"varint,1,opt,name=course_id,json=courseId,proto3" json:"course_id,omitempty"` CourseName string `protobuf:"bytes,2,opt,name=course_name,json=courseName,proto3" json:"course_name,omitempty"` // contains filtered or unexported fields }
func (*Course) Descriptor
deprecated
func (*Course) GetCourseId ¶
func (*Course) GetCourseName ¶
func (*Course) ProtoMessage ¶
func (*Course) ProtoMessage()
func (*Course) ProtoReflect ¶
func (x *Course) ProtoReflect() protoreflect.Message
type CourseRequest ¶
type CourseRequest struct { Size int32 `protobuf:"varint,1,opt,name=size,proto3" json:"size,omitempty"` // contains filtered or unexported fields }
func (*CourseRequest) Descriptor
deprecated
func (*CourseRequest) Descriptor() ([]byte, []int)
Deprecated: Use CourseRequest.ProtoReflect.Descriptor instead.
func (*CourseRequest) GetSize ¶
func (x *CourseRequest) GetSize() int32
func (*CourseRequest) ProtoMessage ¶
func (*CourseRequest) ProtoMessage()
func (*CourseRequest) ProtoReflect ¶
func (x *CourseRequest) ProtoReflect() protoreflect.Message
func (*CourseRequest) Reset ¶
func (x *CourseRequest) Reset()
func (*CourseRequest) String ¶
func (x *CourseRequest) String() string
type CourseResponse ¶
type CourseResponse struct { Result []*Course `protobuf:"bytes,1,rep,name=result,proto3" json:"result,omitempty"` // contains filtered or unexported fields }
func (*CourseResponse) Descriptor
deprecated
func (*CourseResponse) Descriptor() ([]byte, []int)
Deprecated: Use CourseResponse.ProtoReflect.Descriptor instead.
func (*CourseResponse) GetResult ¶
func (x *CourseResponse) GetResult() []*Course
func (*CourseResponse) ProtoMessage ¶
func (*CourseResponse) ProtoMessage()
func (*CourseResponse) ProtoReflect ¶
func (x *CourseResponse) ProtoReflect() protoreflect.Message
func (*CourseResponse) Reset ¶
func (x *CourseResponse) Reset()
func (*CourseResponse) String ¶
func (x *CourseResponse) String() string
type CourseService ¶
type CourseService interface {
GetTop(ctx context.Context, in *CourseRequest, opts ...client.CallOption) (*CourseResponse, error)
}
func NewCourseService ¶
func NewCourseService(name string, c client.Client) CourseService
type CourseServiceHandler ¶
type CourseServiceHandler interface {
GetTop(context.Context, *CourseRequest, *CourseResponse) error
}
Click to show internal directories.
Click to hide internal directories.