api

package
v0.0.0-...-b583e5f Latest Latest
Warning

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

Go to latest
Published: May 8, 2022 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_protos_api_student_api_proto protoreflect.FileDescriptor

Functions

func RegisterStudentSrvServer

func RegisterStudentSrvServer(s *grpc.Server, srv StudentSrvServer)

Types

type QueryStudent

type QueryStudent struct {
	Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*QueryStudent) Descriptor deprecated

func (*QueryStudent) Descriptor() ([]byte, []int)

Deprecated: Use QueryStudent.ProtoReflect.Descriptor instead.

func (*QueryStudent) GetId

func (x *QueryStudent) GetId() int64

func (*QueryStudent) ProtoMessage

func (*QueryStudent) ProtoMessage()

func (*QueryStudent) ProtoReflect

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

func (*QueryStudent) Reset

func (x *QueryStudent) Reset()

func (*QueryStudent) String

func (x *QueryStudent) String() string

type QueryStudentResponse

type QueryStudentResponse struct {
	StudentList []*model.Student `protobuf:"bytes,1,rep,name=studentList,proto3" json:"studentList,omitempty"`
	// contains filtered or unexported fields
}

func (*QueryStudentResponse) Descriptor deprecated

func (*QueryStudentResponse) Descriptor() ([]byte, []int)

Deprecated: Use QueryStudentResponse.ProtoReflect.Descriptor instead.

func (*QueryStudentResponse) GetStudentList

func (x *QueryStudentResponse) GetStudentList() []*model.Student

func (*QueryStudentResponse) ProtoMessage

func (*QueryStudentResponse) ProtoMessage()

func (*QueryStudentResponse) ProtoReflect

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

func (*QueryStudentResponse) Reset

func (x *QueryStudentResponse) Reset()

func (*QueryStudentResponse) String

func (x *QueryStudentResponse) String() string

type StudentSrvClient

type StudentSrvClient interface {
	NewStudent(ctx context.Context, in *model.Student, opts ...grpc.CallOption) (*protos.Result, error)
	StudentByID(ctx context.Context, in *QueryStudent, opts ...grpc.CallOption) (*QueryStudentResponse, error)
	AllStudent(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (StudentSrv_AllStudentClient, error)
	QueryStudents(ctx context.Context, in *QueryStudent, opts ...grpc.CallOption) (StudentSrv_QueryStudentsClient, error)
	StudentInfo(ctx context.Context, opts ...grpc.CallOption) (StudentSrv_StudentInfoClient, error)
}

StudentSrvClient is the client API for StudentSrv service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewStudentSrvClient

func NewStudentSrvClient(cc grpc.ClientConnInterface) StudentSrvClient

type StudentSrvServer

StudentSrvServer is the server API for StudentSrv service.

type StudentSrv_AllStudentClient

type StudentSrv_AllStudentClient interface {
	Recv() (*QueryStudentResponse, error)
	grpc.ClientStream
}

type StudentSrv_AllStudentServer

type StudentSrv_AllStudentServer interface {
	Send(*QueryStudentResponse) error
	grpc.ServerStream
}

type StudentSrv_QueryStudentsClient

type StudentSrv_QueryStudentsClient interface {
	Recv() (*QueryStudentResponse, error)
	grpc.ClientStream
}

type StudentSrv_QueryStudentsServer

type StudentSrv_QueryStudentsServer interface {
	Send(*QueryStudentResponse) error
	grpc.ServerStream
}

type StudentSrv_StudentInfoClient

type StudentSrv_StudentInfoClient interface {
	Send(*QueryStudent) error
	Recv() (*QueryStudentResponse, error)
	grpc.ClientStream
}

type StudentSrv_StudentInfoServer

type StudentSrv_StudentInfoServer interface {
	Send(*QueryStudentResponse) error
	Recv() (*QueryStudent, error)
	grpc.ServerStream
}

type UnimplementedStudentSrvServer

type UnimplementedStudentSrvServer struct {
}

UnimplementedStudentSrvServer can be embedded to have forward compatible implementations.

func (*UnimplementedStudentSrvServer) AllStudent

func (*UnimplementedStudentSrvServer) NewStudent

func (*UnimplementedStudentSrvServer) QueryStudents

func (*UnimplementedStudentSrvServer) StudentByID

func (*UnimplementedStudentSrvServer) StudentInfo

Jump to

Keyboard shortcuts

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