Proto

package
v0.0.0-...-6187ac8 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Cources_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "gRPC.Cources",
	HandlerType: (*CourcesServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetCourses",
			Handler:    _Cources_GetCourses_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "proto/ituserver.proto",
}

Cources_ServiceDesc is the grpc.ServiceDesc for Cources service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var File_proto_ituserver_proto protoreflect.FileDescriptor

Functions

func RegisterCourcesServer

func RegisterCourcesServer(s grpc.ServiceRegistrar, srv CourcesServer)

Types

type CourcesClient

type CourcesClient interface {
	GetCourses(ctx context.Context, in *CourseRequest, opts ...grpc.CallOption) (*CourseReply, error)
}

CourcesClient is the client API for Cources 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 NewCourcesClient

func NewCourcesClient(cc grpc.ClientConnInterface) CourcesClient

type CourcesServer

type CourcesServer interface {
	GetCourses(context.Context, *CourseRequest) (*CourseReply, error)
	// contains filtered or unexported methods
}

CourcesServer is the server API for Cources service. All implementations must embed UnimplementedCourcesServer for forward compatibility

type CourseReply

type CourseReply struct {
	Id              string  `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Name            string  `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Teacher         string  `protobuf:"bytes,3,opt,name=teacher,proto3" json:"teacher,omitempty"`
	CourseManager   string  `protobuf:"bytes,4,opt,name=courseManager,proto3" json:"courseManager,omitempty"`
	NumParticipants int32   `protobuf:"varint,5,opt,name=numParticipants,proto3" json:"numParticipants,omitempty"`
	Semester        string  `protobuf:"bytes,6,opt,name=semester,proto3" json:"semester,omitempty"`
	ECTS            float32 `protobuf:"fixed32,7,opt,name=ECTS,proto3" json:"ECTS,omitempty"`
	ProgrammingLang string  `protobuf:"bytes,8,opt,name=programmingLang,proto3" json:"programmingLang,omitempty"`
	// contains filtered or unexported fields
}

func (*CourseReply) Descriptor deprecated

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

Deprecated: Use CourseReply.ProtoReflect.Descriptor instead.

func (*CourseReply) GetCourseManager

func (x *CourseReply) GetCourseManager() string

func (*CourseReply) GetECTS

func (x *CourseReply) GetECTS() float32

func (*CourseReply) GetId

func (x *CourseReply) GetId() string

func (*CourseReply) GetName

func (x *CourseReply) GetName() string

func (*CourseReply) GetNumParticipants

func (x *CourseReply) GetNumParticipants() int32

func (*CourseReply) GetProgrammingLang

func (x *CourseReply) GetProgrammingLang() string

func (*CourseReply) GetSemester

func (x *CourseReply) GetSemester() string

func (*CourseReply) GetTeacher

func (x *CourseReply) GetTeacher() string

func (*CourseReply) ProtoMessage

func (*CourseReply) ProtoMessage()

func (*CourseReply) ProtoReflect

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

func (*CourseReply) Reset

func (x *CourseReply) Reset()

func (*CourseReply) String

func (x *CourseReply) String() string

type CourseRequest

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

func (*CourseRequest) Descriptor deprecated

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

Deprecated: Use CourseRequest.ProtoReflect.Descriptor instead.

func (*CourseRequest) GetId

func (x *CourseRequest) GetId() string

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 UnimplementedCourcesServer

type UnimplementedCourcesServer struct {
}

UnimplementedCourcesServer must be embedded to have forward compatible implementations.

func (UnimplementedCourcesServer) GetCourses

type UnsafeCourcesServer

type UnsafeCourcesServer interface {
	// contains filtered or unexported methods
}

UnsafeCourcesServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to CourcesServer will result in compilation errors.

Jump to

Keyboard shortcuts

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