course

package
v0.0.0-...-f7771fc Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_course_proto protoreflect.FileDescriptor

Functions

func NewCourseServiceEndpoints

func NewCourseServiceEndpoints() []*api.Endpoint

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) Descriptor() ([]byte, []int)

Deprecated: Use Course.ProtoReflect.Descriptor instead.

func (*Course) GetCourseId

func (x *Course) GetCourseId() int64

func (*Course) GetCourseName

func (x *Course) GetCourseName() string

func (*Course) ProtoMessage

func (*Course) ProtoMessage()

func (*Course) ProtoReflect

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

func (*Course) Reset

func (x *Course) Reset()

func (*Course) String

func (x *Course) String() string

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
}

Jump to

Keyboard shortcuts

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