Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterAcademicServiceServer(s grpc.ServiceRegistrar, srv AcademicServiceServer)
- type Academic
- func (*Academic) Descriptor() ([]byte, []int)deprecated
- func (x *Academic) GetCreatedAt() *timestamppb.Timestamp
- func (x *Academic) GetEnd() string
- func (x *Academic) GetId() string
- func (x *Academic) GetName() string
- func (x *Academic) GetStart() string
- func (x *Academic) GetState() string
- func (x *Academic) GetUpdatedAt() *timestamppb.Timestamp
- func (*Academic) ProtoMessage()
- func (x *Academic) ProtoReflect() protoreflect.Message
- func (x *Academic) Reset()
- func (x *Academic) String() string
- type AcademicServiceClient
- type AcademicServiceServer
- type CreateRequest
- func (*CreateRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateRequest) GetEnd() int64
- func (x *CreateRequest) GetStart() int64
- func (*CreateRequest) ProtoMessage()
- func (x *CreateRequest) ProtoReflect() protoreflect.Message
- func (x *CreateRequest) Reset()
- func (x *CreateRequest) String() string
- type CreateResponse
- func (*CreateResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CreateResponse) GetMessage() string
- func (x *CreateResponse) GetRecord() *Academic
- func (*CreateResponse) ProtoMessage()
- func (x *CreateResponse) ProtoReflect() protoreflect.Message
- func (x *CreateResponse) Reset()
- func (x *CreateResponse) String() string
- type DeleteRequest
- type DeleteResponse
- func (*DeleteResponse) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteResponse) GetMessage() string
- func (x *DeleteResponse) GetRecord() *Academic
- func (*DeleteResponse) ProtoMessage()
- func (x *DeleteResponse) ProtoReflect() protoreflect.Message
- func (x *DeleteResponse) Reset()
- func (x *DeleteResponse) String() string
- type ReadAllRequest
- type ReadAllResponse
- func (*ReadAllResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ReadAllResponse) GetMessage() string
- func (x *ReadAllResponse) GetOption() *v1.Options
- func (x *ReadAllResponse) GetRecords() []*Academic
- func (*ReadAllResponse) ProtoMessage()
- func (x *ReadAllResponse) ProtoReflect() protoreflect.Message
- func (x *ReadAllResponse) Reset()
- func (x *ReadAllResponse) String() string
- type ReadRequest
- type ReadResponse
- func (*ReadResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ReadResponse) GetMessage() string
- func (x *ReadResponse) GetRecord() *Academic
- func (*ReadResponse) ProtoMessage()
- func (x *ReadResponse) ProtoReflect() protoreflect.Message
- func (x *ReadResponse) Reset()
- func (x *ReadResponse) String() string
- type UnimplementedAcademicServiceServer
- func (UnimplementedAcademicServiceServer) Create(context.Context, *CreateRequest) (*CreateResponse, error)
- func (UnimplementedAcademicServiceServer) Delete(context.Context, *DeleteRequest) (*DeleteResponse, error)
- func (UnimplementedAcademicServiceServer) Read(context.Context, *ReadRequest) (*ReadResponse, error)
- func (UnimplementedAcademicServiceServer) ReadAll(context.Context, *ReadAllRequest) (*ReadAllResponse, error)
- func (UnimplementedAcademicServiceServer) Update(context.Context, *UpdateRequest) (*UpdateResponse, error)
- type UnsafeAcademicServiceServer
- type UpdateRequest
- func (*UpdateRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateRequest) GetDescription() string
- func (x *UpdateRequest) GetId() string
- func (x *UpdateRequest) GetName() string
- func (x *UpdateRequest) GetState() v1.State
- func (*UpdateRequest) ProtoMessage()
- func (x *UpdateRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateRequest) Reset()
- func (x *UpdateRequest) String() string
- type UpdateResponse
- func (*UpdateResponse) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateResponse) GetMessage() string
- func (x *UpdateResponse) GetRecord() *Academic
- func (*UpdateResponse) ProtoMessage()
- func (x *UpdateResponse) ProtoReflect() protoreflect.Message
- func (x *UpdateResponse) Reset()
- func (x *UpdateResponse) String() string
Constants ¶
const ( AcademicService_Create_FullMethodName = "/academic.v1.AcademicService/Create" AcademicService_Read_FullMethodName = "/academic.v1.AcademicService/Read" AcademicService_ReadAll_FullMethodName = "/academic.v1.AcademicService/ReadAll" AcademicService_Update_FullMethodName = "/academic.v1.AcademicService/Update" AcademicService_Delete_FullMethodName = "/academic.v1.AcademicService/Delete" )
Variables ¶
var AcademicService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "academic.v1.AcademicService", HandlerType: (*AcademicServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Create", Handler: _AcademicService_Create_Handler, }, { MethodName: "Read", Handler: _AcademicService_Read_Handler, }, { MethodName: "ReadAll", Handler: _AcademicService_ReadAll_Handler, }, { MethodName: "Update", Handler: _AcademicService_Update_Handler, }, { MethodName: "Delete", Handler: _AcademicService_Delete_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "academic/v1/service.proto", }
AcademicService_ServiceDesc is the grpc.ServiceDesc for AcademicService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_academic_v1_data_proto protoreflect.FileDescriptor
var File_academic_v1_service_proto protoreflect.FileDescriptor
Functions ¶
func RegisterAcademicServiceServer ¶
func RegisterAcademicServiceServer(s grpc.ServiceRegistrar, srv AcademicServiceServer)
Types ¶
type Academic ¶
type Academic 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"` Start string `protobuf:"bytes,3,opt,name=start,proto3" json:"start,omitempty"` End string `protobuf:"bytes,4,opt,name=end,proto3" json:"end,omitempty"` State string `protobuf:"bytes,5,opt,name=state,proto3" json:"state,omitempty"` CreatedAt *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` // contains filtered or unexported fields }
func (*Academic) Descriptor
deprecated
func (*Academic) GetCreatedAt ¶
func (x *Academic) GetCreatedAt() *timestamppb.Timestamp
func (*Academic) GetUpdatedAt ¶
func (x *Academic) GetUpdatedAt() *timestamppb.Timestamp
func (*Academic) ProtoMessage ¶
func (*Academic) ProtoMessage()
func (*Academic) ProtoReflect ¶
func (x *Academic) ProtoReflect() protoreflect.Message
type AcademicServiceClient ¶
type AcademicServiceClient interface { Create(ctx context.Context, in *CreateRequest, opts ...grpc.CallOption) (*CreateResponse, error) Read(ctx context.Context, in *ReadRequest, opts ...grpc.CallOption) (*ReadResponse, error) ReadAll(ctx context.Context, in *ReadAllRequest, opts ...grpc.CallOption) (*ReadAllResponse, error) Update(ctx context.Context, in *UpdateRequest, opts ...grpc.CallOption) (*UpdateResponse, error) Delete(ctx context.Context, in *DeleteRequest, opts ...grpc.CallOption) (*DeleteResponse, error) }
AcademicServiceClient is the client API for AcademicService 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 NewAcademicServiceClient ¶
func NewAcademicServiceClient(cc grpc.ClientConnInterface) AcademicServiceClient
type AcademicServiceServer ¶
type AcademicServiceServer interface { Create(context.Context, *CreateRequest) (*CreateResponse, error) Read(context.Context, *ReadRequest) (*ReadResponse, error) ReadAll(context.Context, *ReadAllRequest) (*ReadAllResponse, error) Update(context.Context, *UpdateRequest) (*UpdateResponse, error) Delete(context.Context, *DeleteRequest) (*DeleteResponse, error) }
AcademicServiceServer is the server API for AcademicService service. All implementations should embed UnimplementedAcademicServiceServer for forward compatibility.
type CreateRequest ¶
type CreateRequest struct { Start int64 `protobuf:"varint,1,opt,name=start,proto3" json:"start,omitempty"` End int64 `protobuf:"varint,2,opt,name=end,proto3" json:"end,omitempty"` // contains filtered or unexported fields }
func (*CreateRequest) Descriptor
deprecated
func (*CreateRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateRequest.ProtoReflect.Descriptor instead.
func (*CreateRequest) GetEnd ¶
func (x *CreateRequest) GetEnd() int64
func (*CreateRequest) GetStart ¶
func (x *CreateRequest) GetStart() int64
func (*CreateRequest) ProtoMessage ¶
func (*CreateRequest) ProtoMessage()
func (*CreateRequest) ProtoReflect ¶
func (x *CreateRequest) ProtoReflect() protoreflect.Message
func (*CreateRequest) Reset ¶
func (x *CreateRequest) Reset()
func (*CreateRequest) String ¶
func (x *CreateRequest) String() string
type CreateResponse ¶
type CreateResponse struct { Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` Record *Academic `protobuf:"bytes,2,opt,name=record,proto3" json:"record,omitempty"` // contains filtered or unexported fields }
func (*CreateResponse) Descriptor
deprecated
func (*CreateResponse) Descriptor() ([]byte, []int)
Deprecated: Use CreateResponse.ProtoReflect.Descriptor instead.
func (*CreateResponse) GetMessage ¶
func (x *CreateResponse) GetMessage() string
func (*CreateResponse) GetRecord ¶
func (x *CreateResponse) GetRecord() *Academic
func (*CreateResponse) ProtoMessage ¶
func (*CreateResponse) ProtoMessage()
func (*CreateResponse) ProtoReflect ¶
func (x *CreateResponse) ProtoReflect() protoreflect.Message
func (*CreateResponse) Reset ¶
func (x *CreateResponse) Reset()
func (*CreateResponse) String ¶
func (x *CreateResponse) String() string
type DeleteRequest ¶
type DeleteRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*DeleteRequest) Descriptor
deprecated
func (*DeleteRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteRequest.ProtoReflect.Descriptor instead.
func (*DeleteRequest) GetId ¶
func (x *DeleteRequest) GetId() string
func (*DeleteRequest) ProtoMessage ¶
func (*DeleteRequest) ProtoMessage()
func (*DeleteRequest) ProtoReflect ¶
func (x *DeleteRequest) ProtoReflect() protoreflect.Message
func (*DeleteRequest) Reset ¶
func (x *DeleteRequest) Reset()
func (*DeleteRequest) String ¶
func (x *DeleteRequest) String() string
type DeleteResponse ¶
type DeleteResponse struct { Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` Record *Academic `protobuf:"bytes,2,opt,name=record,proto3" json:"record,omitempty"` // contains filtered or unexported fields }
func (*DeleteResponse) Descriptor
deprecated
func (*DeleteResponse) Descriptor() ([]byte, []int)
Deprecated: Use DeleteResponse.ProtoReflect.Descriptor instead.
func (*DeleteResponse) GetMessage ¶
func (x *DeleteResponse) GetMessage() string
func (*DeleteResponse) GetRecord ¶
func (x *DeleteResponse) GetRecord() *Academic
func (*DeleteResponse) ProtoMessage ¶
func (*DeleteResponse) ProtoMessage()
func (*DeleteResponse) ProtoReflect ¶
func (x *DeleteResponse) ProtoReflect() protoreflect.Message
func (*DeleteResponse) Reset ¶
func (x *DeleteResponse) Reset()
func (*DeleteResponse) String ¶
func (x *DeleteResponse) String() string
type ReadAllRequest ¶
type ReadAllRequest struct { Query *v1.Query `protobuf:"bytes,1,opt,name=query,proto3" json:"query,omitempty"` // contains filtered or unexported fields }
func (*ReadAllRequest) Descriptor
deprecated
func (*ReadAllRequest) Descriptor() ([]byte, []int)
Deprecated: Use ReadAllRequest.ProtoReflect.Descriptor instead.
func (*ReadAllRequest) GetQuery ¶
func (x *ReadAllRequest) GetQuery() *v1.Query
func (*ReadAllRequest) ProtoMessage ¶
func (*ReadAllRequest) ProtoMessage()
func (*ReadAllRequest) ProtoReflect ¶
func (x *ReadAllRequest) ProtoReflect() protoreflect.Message
func (*ReadAllRequest) Reset ¶
func (x *ReadAllRequest) Reset()
func (*ReadAllRequest) String ¶
func (x *ReadAllRequest) String() string
type ReadAllResponse ¶
type ReadAllResponse struct { Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` Option *v1.Options `protobuf:"bytes,2,opt,name=option,proto3" json:"option,omitempty"` Records []*Academic `protobuf:"bytes,3,rep,name=records,proto3" json:"records,omitempty"` // contains filtered or unexported fields }
func (*ReadAllResponse) Descriptor
deprecated
func (*ReadAllResponse) Descriptor() ([]byte, []int)
Deprecated: Use ReadAllResponse.ProtoReflect.Descriptor instead.
func (*ReadAllResponse) GetMessage ¶
func (x *ReadAllResponse) GetMessage() string
func (*ReadAllResponse) GetOption ¶
func (x *ReadAllResponse) GetOption() *v1.Options
func (*ReadAllResponse) GetRecords ¶
func (x *ReadAllResponse) GetRecords() []*Academic
func (*ReadAllResponse) ProtoMessage ¶
func (*ReadAllResponse) ProtoMessage()
func (*ReadAllResponse) ProtoReflect ¶
func (x *ReadAllResponse) ProtoReflect() protoreflect.Message
func (*ReadAllResponse) Reset ¶
func (x *ReadAllResponse) Reset()
func (*ReadAllResponse) String ¶
func (x *ReadAllResponse) String() string
type ReadRequest ¶
type ReadRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*ReadRequest) Descriptor
deprecated
func (*ReadRequest) Descriptor() ([]byte, []int)
Deprecated: Use ReadRequest.ProtoReflect.Descriptor instead.
func (*ReadRequest) GetId ¶
func (x *ReadRequest) GetId() string
func (*ReadRequest) ProtoMessage ¶
func (*ReadRequest) ProtoMessage()
func (*ReadRequest) ProtoReflect ¶
func (x *ReadRequest) ProtoReflect() protoreflect.Message
func (*ReadRequest) Reset ¶
func (x *ReadRequest) Reset()
func (*ReadRequest) String ¶
func (x *ReadRequest) String() string
type ReadResponse ¶
type ReadResponse struct { Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` Record *Academic `protobuf:"bytes,2,opt,name=record,proto3" json:"record,omitempty"` // contains filtered or unexported fields }
func (*ReadResponse) Descriptor
deprecated
func (*ReadResponse) Descriptor() ([]byte, []int)
Deprecated: Use ReadResponse.ProtoReflect.Descriptor instead.
func (*ReadResponse) GetMessage ¶
func (x *ReadResponse) GetMessage() string
func (*ReadResponse) GetRecord ¶
func (x *ReadResponse) GetRecord() *Academic
func (*ReadResponse) ProtoMessage ¶
func (*ReadResponse) ProtoMessage()
func (*ReadResponse) ProtoReflect ¶
func (x *ReadResponse) ProtoReflect() protoreflect.Message
func (*ReadResponse) Reset ¶
func (x *ReadResponse) Reset()
func (*ReadResponse) String ¶
func (x *ReadResponse) String() string
type UnimplementedAcademicServiceServer ¶
type UnimplementedAcademicServiceServer struct{}
UnimplementedAcademicServiceServer should be embedded to have forward compatible implementations.
NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.
func (UnimplementedAcademicServiceServer) Create ¶
func (UnimplementedAcademicServiceServer) Create(context.Context, *CreateRequest) (*CreateResponse, error)
func (UnimplementedAcademicServiceServer) Delete ¶
func (UnimplementedAcademicServiceServer) Delete(context.Context, *DeleteRequest) (*DeleteResponse, error)
func (UnimplementedAcademicServiceServer) Read ¶
func (UnimplementedAcademicServiceServer) Read(context.Context, *ReadRequest) (*ReadResponse, error)
func (UnimplementedAcademicServiceServer) ReadAll ¶
func (UnimplementedAcademicServiceServer) ReadAll(context.Context, *ReadAllRequest) (*ReadAllResponse, error)
func (UnimplementedAcademicServiceServer) Update ¶
func (UnimplementedAcademicServiceServer) Update(context.Context, *UpdateRequest) (*UpdateResponse, error)
type UnsafeAcademicServiceServer ¶
type UnsafeAcademicServiceServer interface {
// contains filtered or unexported methods
}
UnsafeAcademicServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to AcademicServiceServer will result in compilation errors.
type UpdateRequest ¶
type UpdateRequest 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"` Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` State v1.State `protobuf:"varint,4,opt,name=state,proto3,enum=common.v1.State" json:"state,omitempty"` // contains filtered or unexported fields }
func (*UpdateRequest) Descriptor
deprecated
func (*UpdateRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateRequest.ProtoReflect.Descriptor instead.
func (*UpdateRequest) GetDescription ¶
func (x *UpdateRequest) GetDescription() string
func (*UpdateRequest) GetId ¶
func (x *UpdateRequest) GetId() string
func (*UpdateRequest) GetName ¶
func (x *UpdateRequest) GetName() string
func (*UpdateRequest) GetState ¶
func (x *UpdateRequest) GetState() v1.State
func (*UpdateRequest) ProtoMessage ¶
func (*UpdateRequest) ProtoMessage()
func (*UpdateRequest) ProtoReflect ¶
func (x *UpdateRequest) ProtoReflect() protoreflect.Message
func (*UpdateRequest) Reset ¶
func (x *UpdateRequest) Reset()
func (*UpdateRequest) String ¶
func (x *UpdateRequest) String() string
type UpdateResponse ¶
type UpdateResponse struct { Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` Record *Academic `protobuf:"bytes,2,opt,name=record,proto3" json:"record,omitempty"` // contains filtered or unexported fields }
func (*UpdateResponse) Descriptor
deprecated
func (*UpdateResponse) Descriptor() ([]byte, []int)
Deprecated: Use UpdateResponse.ProtoReflect.Descriptor instead.
func (*UpdateResponse) GetMessage ¶
func (x *UpdateResponse) GetMessage() string
func (*UpdateResponse) GetRecord ¶
func (x *UpdateResponse) GetRecord() *Academic
func (*UpdateResponse) ProtoMessage ¶
func (*UpdateResponse) ProtoMessage()
func (*UpdateResponse) ProtoReflect ¶
func (x *UpdateResponse) ProtoReflect() protoreflect.Message
func (*UpdateResponse) Reset ¶
func (x *UpdateResponse) Reset()
func (*UpdateResponse) String ¶
func (x *UpdateResponse) String() string