Documentation ¶
Overview ¶
Package department is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Variables
- func RegisterDepartmentRegistryHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterDepartmentRegistryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client DepartmentRegistryClient) error
- func RegisterDepartmentRegistryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterDepartmentRegistryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server DepartmentRegistryServer) error
- func RegisterDepartmentRegistryServer(s grpc.ServiceRegistrar, srv DepartmentRegistryServer)
- type Department
- func (*Department) Descriptor() ([]byte, []int)deprecated
- func (x *Department) GetId() int64
- func (x *Department) GetMembers() []string
- func (x *Department) GetName() string
- func (x *Department) GetProjects() []int64
- func (m *Department) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *Department) MarshalToVT(dAtA []byte) (int, error)
- func (m *Department) MarshalVT() (dAtA []byte, err error)
- func (*Department) ProtoMessage()
- func (x *Department) ProtoReflect() protoreflect.Message
- func (x *Department) Reset()
- func (m *Department) SizeVT() (n int)
- func (x *Department) String() string
- func (m *Department) UnmarshalVT(dAtA []byte) error
- type DepartmentAddProjectRequest
- func (*DepartmentAddProjectRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DepartmentAddProjectRequest) GetId() int64
- func (x *DepartmentAddProjectRequest) GetProjectId() int64
- func (m *DepartmentAddProjectRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *DepartmentAddProjectRequest) MarshalToVT(dAtA []byte) (int, error)
- func (m *DepartmentAddProjectRequest) MarshalVT() (dAtA []byte, err error)
- func (*DepartmentAddProjectRequest) ProtoMessage()
- func (x *DepartmentAddProjectRequest) ProtoReflect() protoreflect.Message
- func (x *DepartmentAddProjectRequest) Reset()
- func (m *DepartmentAddProjectRequest) SizeVT() (n int)
- func (x *DepartmentAddProjectRequest) String() string
- func (m *DepartmentAddProjectRequest) UnmarshalVT(dAtA []byte) error
- type DepartmentAddProjectResponse
- func (*DepartmentAddProjectResponse) Descriptor() ([]byte, []int)deprecated
- func (x *DepartmentAddProjectResponse) GetId() int64
- func (m *DepartmentAddProjectResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *DepartmentAddProjectResponse) MarshalToVT(dAtA []byte) (int, error)
- func (m *DepartmentAddProjectResponse) MarshalVT() (dAtA []byte, err error)
- func (*DepartmentAddProjectResponse) ProtoMessage()
- func (x *DepartmentAddProjectResponse) ProtoReflect() protoreflect.Message
- func (x *DepartmentAddProjectResponse) Reset()
- func (m *DepartmentAddProjectResponse) SizeVT() (n int)
- func (x *DepartmentAddProjectResponse) String() string
- func (m *DepartmentAddProjectResponse) UnmarshalVT(dAtA []byte) error
- type DepartmentCreateRequest
- func (*DepartmentCreateRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DepartmentCreateRequest) GetDepartment() *Department
- func (m *DepartmentCreateRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *DepartmentCreateRequest) MarshalToVT(dAtA []byte) (int, error)
- func (m *DepartmentCreateRequest) MarshalVT() (dAtA []byte, err error)
- func (*DepartmentCreateRequest) ProtoMessage()
- func (x *DepartmentCreateRequest) ProtoReflect() protoreflect.Message
- func (x *DepartmentCreateRequest) Reset()
- func (m *DepartmentCreateRequest) SizeVT() (n int)
- func (x *DepartmentCreateRequest) String() string
- func (m *DepartmentCreateRequest) UnmarshalVT(dAtA []byte) error
- type DepartmentCreateResponse
- func (*DepartmentCreateResponse) Descriptor() ([]byte, []int)deprecated
- func (x *DepartmentCreateResponse) GetId() int64
- func (m *DepartmentCreateResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *DepartmentCreateResponse) MarshalToVT(dAtA []byte) (int, error)
- func (m *DepartmentCreateResponse) MarshalVT() (dAtA []byte, err error)
- func (*DepartmentCreateResponse) ProtoMessage()
- func (x *DepartmentCreateResponse) ProtoReflect() protoreflect.Message
- func (x *DepartmentCreateResponse) Reset()
- func (m *DepartmentCreateResponse) SizeVT() (n int)
- func (x *DepartmentCreateResponse) String() string
- func (m *DepartmentCreateResponse) UnmarshalVT(dAtA []byte) error
- type DepartmentGetByIDRequest
- func (*DepartmentGetByIDRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DepartmentGetByIDRequest) GetId() int64
- func (m *DepartmentGetByIDRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *DepartmentGetByIDRequest) MarshalToVT(dAtA []byte) (int, error)
- func (m *DepartmentGetByIDRequest) MarshalVT() (dAtA []byte, err error)
- func (*DepartmentGetByIDRequest) ProtoMessage()
- func (x *DepartmentGetByIDRequest) ProtoReflect() protoreflect.Message
- func (x *DepartmentGetByIDRequest) Reset()
- func (m *DepartmentGetByIDRequest) SizeVT() (n int)
- func (x *DepartmentGetByIDRequest) String() string
- func (m *DepartmentGetByIDRequest) UnmarshalVT(dAtA []byte) error
- type DepartmentGetByIDResponse
- func (*DepartmentGetByIDResponse) Descriptor() ([]byte, []int)deprecated
- func (x *DepartmentGetByIDResponse) GetDepartment() *Department
- func (m *DepartmentGetByIDResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *DepartmentGetByIDResponse) MarshalToVT(dAtA []byte) (int, error)
- func (m *DepartmentGetByIDResponse) MarshalVT() (dAtA []byte, err error)
- func (*DepartmentGetByIDResponse) ProtoMessage()
- func (x *DepartmentGetByIDResponse) ProtoReflect() protoreflect.Message
- func (x *DepartmentGetByIDResponse) Reset()
- func (m *DepartmentGetByIDResponse) SizeVT() (n int)
- func (x *DepartmentGetByIDResponse) String() string
- func (m *DepartmentGetByIDResponse) UnmarshalVT(dAtA []byte) error
- type DepartmentGetRequest
- func (*DepartmentGetRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DepartmentGetRequest) GetIds() []int64
- func (x *DepartmentGetRequest) GetNames() []string
- func (m *DepartmentGetRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *DepartmentGetRequest) MarshalToVT(dAtA []byte) (int, error)
- func (m *DepartmentGetRequest) MarshalVT() (dAtA []byte, err error)
- func (*DepartmentGetRequest) ProtoMessage()
- func (x *DepartmentGetRequest) ProtoReflect() protoreflect.Message
- func (x *DepartmentGetRequest) Reset()
- func (m *DepartmentGetRequest) SizeVT() (n int)
- func (x *DepartmentGetRequest) String() string
- func (m *DepartmentGetRequest) UnmarshalVT(dAtA []byte) error
- type DepartmentGetResponse
- func (*DepartmentGetResponse) Descriptor() ([]byte, []int)deprecated
- func (x *DepartmentGetResponse) GetDepartments() []*Department
- func (m *DepartmentGetResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *DepartmentGetResponse) MarshalToVT(dAtA []byte) (int, error)
- func (m *DepartmentGetResponse) MarshalVT() (dAtA []byte, err error)
- func (*DepartmentGetResponse) ProtoMessage()
- func (x *DepartmentGetResponse) ProtoReflect() protoreflect.Message
- func (x *DepartmentGetResponse) Reset()
- func (m *DepartmentGetResponse) SizeVT() (n int)
- func (x *DepartmentGetResponse) String() string
- func (m *DepartmentGetResponse) UnmarshalVT(dAtA []byte) error
- type DepartmentRegistryClient
- type DepartmentRegistryServer
- type DepartmentRemoveProjectRequest
- func (*DepartmentRemoveProjectRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DepartmentRemoveProjectRequest) GetId() int64
- func (x *DepartmentRemoveProjectRequest) GetProjectId() int64
- func (m *DepartmentRemoveProjectRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *DepartmentRemoveProjectRequest) MarshalToVT(dAtA []byte) (int, error)
- func (m *DepartmentRemoveProjectRequest) MarshalVT() (dAtA []byte, err error)
- func (*DepartmentRemoveProjectRequest) ProtoMessage()
- func (x *DepartmentRemoveProjectRequest) ProtoReflect() protoreflect.Message
- func (x *DepartmentRemoveProjectRequest) Reset()
- func (m *DepartmentRemoveProjectRequest) SizeVT() (n int)
- func (x *DepartmentRemoveProjectRequest) String() string
- func (m *DepartmentRemoveProjectRequest) UnmarshalVT(dAtA []byte) error
- type DepartmentRemoveProjectResponse
- func (*DepartmentRemoveProjectResponse) Descriptor() ([]byte, []int)deprecated
- func (x *DepartmentRemoveProjectResponse) GetId() int64
- func (m *DepartmentRemoveProjectResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *DepartmentRemoveProjectResponse) MarshalToVT(dAtA []byte) (int, error)
- func (m *DepartmentRemoveProjectResponse) MarshalVT() (dAtA []byte, err error)
- func (*DepartmentRemoveProjectResponse) ProtoMessage()
- func (x *DepartmentRemoveProjectResponse) ProtoReflect() protoreflect.Message
- func (x *DepartmentRemoveProjectResponse) Reset()
- func (m *DepartmentRemoveProjectResponse) SizeVT() (n int)
- func (x *DepartmentRemoveProjectResponse) String() string
- func (m *DepartmentRemoveProjectResponse) UnmarshalVT(dAtA []byte) error
- type DepartmentUpdateRequest
- func (*DepartmentUpdateRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DepartmentUpdateRequest) GetDepartment() *Department
- func (x *DepartmentUpdateRequest) GetId() int64
- func (m *DepartmentUpdateRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *DepartmentUpdateRequest) MarshalToVT(dAtA []byte) (int, error)
- func (m *DepartmentUpdateRequest) MarshalVT() (dAtA []byte, err error)
- func (*DepartmentUpdateRequest) ProtoMessage()
- func (x *DepartmentUpdateRequest) ProtoReflect() protoreflect.Message
- func (x *DepartmentUpdateRequest) Reset()
- func (m *DepartmentUpdateRequest) SizeVT() (n int)
- func (x *DepartmentUpdateRequest) String() string
- func (m *DepartmentUpdateRequest) UnmarshalVT(dAtA []byte) error
- type DepartmentUpdateResponse
- func (*DepartmentUpdateResponse) Descriptor() ([]byte, []int)deprecated
- func (x *DepartmentUpdateResponse) GetId() int64
- func (m *DepartmentUpdateResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *DepartmentUpdateResponse) MarshalToVT(dAtA []byte) (int, error)
- func (m *DepartmentUpdateResponse) MarshalVT() (dAtA []byte, err error)
- func (*DepartmentUpdateResponse) ProtoMessage()
- func (x *DepartmentUpdateResponse) ProtoReflect() protoreflect.Message
- func (x *DepartmentUpdateResponse) Reset()
- func (m *DepartmentUpdateResponse) SizeVT() (n int)
- func (x *DepartmentUpdateResponse) String() string
- func (m *DepartmentUpdateResponse) UnmarshalVT(dAtA []byte) error
- type UnimplementedDepartmentRegistryServer
- func (UnimplementedDepartmentRegistryServer) CreateDepartment(context.Context, *DepartmentCreateRequest) (*DepartmentCreateResponse, error)
- func (UnimplementedDepartmentRegistryServer) DepartmentAddProject(context.Context, *DepartmentAddProjectRequest) (*DepartmentAddProjectResponse, error)
- func (UnimplementedDepartmentRegistryServer) DepartmentRemoveProject(context.Context, *DepartmentRemoveProjectRequest) (*DepartmentRemoveProjectResponse, error)
- func (UnimplementedDepartmentRegistryServer) GetDepartmentByID(context.Context, *DepartmentGetByIDRequest) (*DepartmentGetByIDResponse, error)
- func (UnimplementedDepartmentRegistryServer) GetDepartments(context.Context, *DepartmentGetRequest) (*DepartmentGetResponse, error)
- func (UnimplementedDepartmentRegistryServer) UpdateDepartment(context.Context, *DepartmentUpdateRequest) (*DepartmentUpdateResponse, error)
- type UnsafeDepartmentRegistryServer
Constants ¶
This section is empty.
Variables ¶
var ( ErrInvalidLength = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflow = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroup = fmt.Errorf("proto: unexpected end of group") )
var DepartmentRegistry_ServiceDesc = grpc.ServiceDesc{ ServiceName: "github.constantine27k.crnt_data_manager.api.department.DepartmentRegistry", HandlerType: (*DepartmentRegistryServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "CreateDepartment", Handler: _DepartmentRegistry_CreateDepartment_Handler, }, { MethodName: "DepartmentAddProject", Handler: _DepartmentRegistry_DepartmentAddProject_Handler, }, { MethodName: "DepartmentRemoveProject", Handler: _DepartmentRegistry_DepartmentRemoveProject_Handler, }, { MethodName: "GetDepartments", Handler: _DepartmentRegistry_GetDepartments_Handler, }, { MethodName: "GetDepartmentByID", Handler: _DepartmentRegistry_GetDepartmentByID_Handler, }, { MethodName: "UpdateDepartment", Handler: _DepartmentRegistry_UpdateDepartment_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "api/department/department.proto", }
DepartmentRegistry_ServiceDesc is the grpc.ServiceDesc for DepartmentRegistry service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_api_department_department_proto protoreflect.FileDescriptor
Functions ¶
func RegisterDepartmentRegistryHandler ¶
func RegisterDepartmentRegistryHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterDepartmentRegistryHandler registers the http handlers for service DepartmentRegistry to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterDepartmentRegistryHandlerClient ¶
func RegisterDepartmentRegistryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client DepartmentRegistryClient) error
RegisterDepartmentRegistryHandlerClient registers the http handlers for service DepartmentRegistry to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "DepartmentRegistryClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "DepartmentRegistryClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "DepartmentRegistryClient" to call the correct interceptors.
func RegisterDepartmentRegistryHandlerFromEndpoint ¶
func RegisterDepartmentRegistryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterDepartmentRegistryHandlerFromEndpoint is same as RegisterDepartmentRegistryHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterDepartmentRegistryHandlerServer ¶
func RegisterDepartmentRegistryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server DepartmentRegistryServer) error
RegisterDepartmentRegistryHandlerServer registers the http handlers for service DepartmentRegistry to "mux". UnaryRPC :call DepartmentRegistryServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterDepartmentRegistryHandlerFromEndpoint instead.
func RegisterDepartmentRegistryServer ¶
func RegisterDepartmentRegistryServer(s grpc.ServiceRegistrar, srv DepartmentRegistryServer)
Types ¶
type Department ¶
type Department struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Projects []int64 `protobuf:"varint,3,rep,packed,name=projects,proto3" json:"projects,omitempty"` Members []string `protobuf:"bytes,4,rep,name=members,proto3" json:"members,omitempty"` // contains filtered or unexported fields }
func (*Department) Descriptor
deprecated
func (*Department) Descriptor() ([]byte, []int)
Deprecated: Use Department.ProtoReflect.Descriptor instead.
func (*Department) GetId ¶
func (x *Department) GetId() int64
func (*Department) GetMembers ¶
func (x *Department) GetMembers() []string
func (*Department) GetName ¶
func (x *Department) GetName() string
func (*Department) GetProjects ¶
func (x *Department) GetProjects() []int64
func (*Department) MarshalToSizedBufferVT ¶
func (m *Department) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*Department) MarshalToVT ¶
func (m *Department) MarshalToVT(dAtA []byte) (int, error)
func (*Department) MarshalVT ¶
func (m *Department) MarshalVT() (dAtA []byte, err error)
func (*Department) ProtoMessage ¶
func (*Department) ProtoMessage()
func (*Department) ProtoReflect ¶
func (x *Department) ProtoReflect() protoreflect.Message
func (*Department) Reset ¶
func (x *Department) Reset()
func (*Department) SizeVT ¶
func (m *Department) SizeVT() (n int)
func (*Department) String ¶
func (x *Department) String() string
func (*Department) UnmarshalVT ¶
func (m *Department) UnmarshalVT(dAtA []byte) error
type DepartmentAddProjectRequest ¶
type DepartmentAddProjectRequest struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` ProjectId int64 `protobuf:"varint,2,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"` // contains filtered or unexported fields }
func (*DepartmentAddProjectRequest) Descriptor
deprecated
func (*DepartmentAddProjectRequest) Descriptor() ([]byte, []int)
Deprecated: Use DepartmentAddProjectRequest.ProtoReflect.Descriptor instead.
func (*DepartmentAddProjectRequest) GetId ¶
func (x *DepartmentAddProjectRequest) GetId() int64
func (*DepartmentAddProjectRequest) GetProjectId ¶
func (x *DepartmentAddProjectRequest) GetProjectId() int64
func (*DepartmentAddProjectRequest) MarshalToSizedBufferVT ¶
func (m *DepartmentAddProjectRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*DepartmentAddProjectRequest) MarshalToVT ¶
func (m *DepartmentAddProjectRequest) MarshalToVT(dAtA []byte) (int, error)
func (*DepartmentAddProjectRequest) MarshalVT ¶
func (m *DepartmentAddProjectRequest) MarshalVT() (dAtA []byte, err error)
func (*DepartmentAddProjectRequest) ProtoMessage ¶
func (*DepartmentAddProjectRequest) ProtoMessage()
func (*DepartmentAddProjectRequest) ProtoReflect ¶
func (x *DepartmentAddProjectRequest) ProtoReflect() protoreflect.Message
func (*DepartmentAddProjectRequest) Reset ¶
func (x *DepartmentAddProjectRequest) Reset()
func (*DepartmentAddProjectRequest) SizeVT ¶
func (m *DepartmentAddProjectRequest) SizeVT() (n int)
func (*DepartmentAddProjectRequest) String ¶
func (x *DepartmentAddProjectRequest) String() string
func (*DepartmentAddProjectRequest) UnmarshalVT ¶
func (m *DepartmentAddProjectRequest) UnmarshalVT(dAtA []byte) error
type DepartmentAddProjectResponse ¶
type DepartmentAddProjectResponse struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*DepartmentAddProjectResponse) Descriptor
deprecated
func (*DepartmentAddProjectResponse) Descriptor() ([]byte, []int)
Deprecated: Use DepartmentAddProjectResponse.ProtoReflect.Descriptor instead.
func (*DepartmentAddProjectResponse) GetId ¶
func (x *DepartmentAddProjectResponse) GetId() int64
func (*DepartmentAddProjectResponse) MarshalToSizedBufferVT ¶
func (m *DepartmentAddProjectResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*DepartmentAddProjectResponse) MarshalToVT ¶
func (m *DepartmentAddProjectResponse) MarshalToVT(dAtA []byte) (int, error)
func (*DepartmentAddProjectResponse) MarshalVT ¶
func (m *DepartmentAddProjectResponse) MarshalVT() (dAtA []byte, err error)
func (*DepartmentAddProjectResponse) ProtoMessage ¶
func (*DepartmentAddProjectResponse) ProtoMessage()
func (*DepartmentAddProjectResponse) ProtoReflect ¶
func (x *DepartmentAddProjectResponse) ProtoReflect() protoreflect.Message
func (*DepartmentAddProjectResponse) Reset ¶
func (x *DepartmentAddProjectResponse) Reset()
func (*DepartmentAddProjectResponse) SizeVT ¶
func (m *DepartmentAddProjectResponse) SizeVT() (n int)
func (*DepartmentAddProjectResponse) String ¶
func (x *DepartmentAddProjectResponse) String() string
func (*DepartmentAddProjectResponse) UnmarshalVT ¶
func (m *DepartmentAddProjectResponse) UnmarshalVT(dAtA []byte) error
type DepartmentCreateRequest ¶
type DepartmentCreateRequest struct { Department *Department `protobuf:"bytes,1,opt,name=department,proto3" json:"department,omitempty"` // contains filtered or unexported fields }
func (*DepartmentCreateRequest) Descriptor
deprecated
func (*DepartmentCreateRequest) Descriptor() ([]byte, []int)
Deprecated: Use DepartmentCreateRequest.ProtoReflect.Descriptor instead.
func (*DepartmentCreateRequest) GetDepartment ¶
func (x *DepartmentCreateRequest) GetDepartment() *Department
func (*DepartmentCreateRequest) MarshalToSizedBufferVT ¶
func (m *DepartmentCreateRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*DepartmentCreateRequest) MarshalToVT ¶
func (m *DepartmentCreateRequest) MarshalToVT(dAtA []byte) (int, error)
func (*DepartmentCreateRequest) MarshalVT ¶
func (m *DepartmentCreateRequest) MarshalVT() (dAtA []byte, err error)
func (*DepartmentCreateRequest) ProtoMessage ¶
func (*DepartmentCreateRequest) ProtoMessage()
func (*DepartmentCreateRequest) ProtoReflect ¶
func (x *DepartmentCreateRequest) ProtoReflect() protoreflect.Message
func (*DepartmentCreateRequest) Reset ¶
func (x *DepartmentCreateRequest) Reset()
func (*DepartmentCreateRequest) SizeVT ¶
func (m *DepartmentCreateRequest) SizeVT() (n int)
func (*DepartmentCreateRequest) String ¶
func (x *DepartmentCreateRequest) String() string
func (*DepartmentCreateRequest) UnmarshalVT ¶
func (m *DepartmentCreateRequest) UnmarshalVT(dAtA []byte) error
type DepartmentCreateResponse ¶
type DepartmentCreateResponse struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*DepartmentCreateResponse) Descriptor
deprecated
func (*DepartmentCreateResponse) Descriptor() ([]byte, []int)
Deprecated: Use DepartmentCreateResponse.ProtoReflect.Descriptor instead.
func (*DepartmentCreateResponse) GetId ¶
func (x *DepartmentCreateResponse) GetId() int64
func (*DepartmentCreateResponse) MarshalToSizedBufferVT ¶
func (m *DepartmentCreateResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*DepartmentCreateResponse) MarshalToVT ¶
func (m *DepartmentCreateResponse) MarshalToVT(dAtA []byte) (int, error)
func (*DepartmentCreateResponse) MarshalVT ¶
func (m *DepartmentCreateResponse) MarshalVT() (dAtA []byte, err error)
func (*DepartmentCreateResponse) ProtoMessage ¶
func (*DepartmentCreateResponse) ProtoMessage()
func (*DepartmentCreateResponse) ProtoReflect ¶
func (x *DepartmentCreateResponse) ProtoReflect() protoreflect.Message
func (*DepartmentCreateResponse) Reset ¶
func (x *DepartmentCreateResponse) Reset()
func (*DepartmentCreateResponse) SizeVT ¶
func (m *DepartmentCreateResponse) SizeVT() (n int)
func (*DepartmentCreateResponse) String ¶
func (x *DepartmentCreateResponse) String() string
func (*DepartmentCreateResponse) UnmarshalVT ¶
func (m *DepartmentCreateResponse) UnmarshalVT(dAtA []byte) error
type DepartmentGetByIDRequest ¶
type DepartmentGetByIDRequest struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*DepartmentGetByIDRequest) Descriptor
deprecated
func (*DepartmentGetByIDRequest) Descriptor() ([]byte, []int)
Deprecated: Use DepartmentGetByIDRequest.ProtoReflect.Descriptor instead.
func (*DepartmentGetByIDRequest) GetId ¶
func (x *DepartmentGetByIDRequest) GetId() int64
func (*DepartmentGetByIDRequest) MarshalToSizedBufferVT ¶
func (m *DepartmentGetByIDRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*DepartmentGetByIDRequest) MarshalToVT ¶
func (m *DepartmentGetByIDRequest) MarshalToVT(dAtA []byte) (int, error)
func (*DepartmentGetByIDRequest) MarshalVT ¶
func (m *DepartmentGetByIDRequest) MarshalVT() (dAtA []byte, err error)
func (*DepartmentGetByIDRequest) ProtoMessage ¶
func (*DepartmentGetByIDRequest) ProtoMessage()
func (*DepartmentGetByIDRequest) ProtoReflect ¶
func (x *DepartmentGetByIDRequest) ProtoReflect() protoreflect.Message
func (*DepartmentGetByIDRequest) Reset ¶
func (x *DepartmentGetByIDRequest) Reset()
func (*DepartmentGetByIDRequest) SizeVT ¶
func (m *DepartmentGetByIDRequest) SizeVT() (n int)
func (*DepartmentGetByIDRequest) String ¶
func (x *DepartmentGetByIDRequest) String() string
func (*DepartmentGetByIDRequest) UnmarshalVT ¶
func (m *DepartmentGetByIDRequest) UnmarshalVT(dAtA []byte) error
type DepartmentGetByIDResponse ¶
type DepartmentGetByIDResponse struct { Department *Department `protobuf:"bytes,1,opt,name=department,proto3" json:"department,omitempty"` // contains filtered or unexported fields }
func (*DepartmentGetByIDResponse) Descriptor
deprecated
func (*DepartmentGetByIDResponse) Descriptor() ([]byte, []int)
Deprecated: Use DepartmentGetByIDResponse.ProtoReflect.Descriptor instead.
func (*DepartmentGetByIDResponse) GetDepartment ¶
func (x *DepartmentGetByIDResponse) GetDepartment() *Department
func (*DepartmentGetByIDResponse) MarshalToSizedBufferVT ¶
func (m *DepartmentGetByIDResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*DepartmentGetByIDResponse) MarshalToVT ¶
func (m *DepartmentGetByIDResponse) MarshalToVT(dAtA []byte) (int, error)
func (*DepartmentGetByIDResponse) MarshalVT ¶
func (m *DepartmentGetByIDResponse) MarshalVT() (dAtA []byte, err error)
func (*DepartmentGetByIDResponse) ProtoMessage ¶
func (*DepartmentGetByIDResponse) ProtoMessage()
func (*DepartmentGetByIDResponse) ProtoReflect ¶
func (x *DepartmentGetByIDResponse) ProtoReflect() protoreflect.Message
func (*DepartmentGetByIDResponse) Reset ¶
func (x *DepartmentGetByIDResponse) Reset()
func (*DepartmentGetByIDResponse) SizeVT ¶
func (m *DepartmentGetByIDResponse) SizeVT() (n int)
func (*DepartmentGetByIDResponse) String ¶
func (x *DepartmentGetByIDResponse) String() string
func (*DepartmentGetByIDResponse) UnmarshalVT ¶
func (m *DepartmentGetByIDResponse) UnmarshalVT(dAtA []byte) error
type DepartmentGetRequest ¶
type DepartmentGetRequest struct { Ids []int64 `protobuf:"varint,1,rep,packed,name=ids,proto3" json:"ids,omitempty"` Names []string `protobuf:"bytes,2,rep,name=names,proto3" json:"names,omitempty"` // contains filtered or unexported fields }
func (*DepartmentGetRequest) Descriptor
deprecated
func (*DepartmentGetRequest) Descriptor() ([]byte, []int)
Deprecated: Use DepartmentGetRequest.ProtoReflect.Descriptor instead.
func (*DepartmentGetRequest) GetIds ¶
func (x *DepartmentGetRequest) GetIds() []int64
func (*DepartmentGetRequest) GetNames ¶
func (x *DepartmentGetRequest) GetNames() []string
func (*DepartmentGetRequest) MarshalToSizedBufferVT ¶
func (m *DepartmentGetRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*DepartmentGetRequest) MarshalToVT ¶
func (m *DepartmentGetRequest) MarshalToVT(dAtA []byte) (int, error)
func (*DepartmentGetRequest) MarshalVT ¶
func (m *DepartmentGetRequest) MarshalVT() (dAtA []byte, err error)
func (*DepartmentGetRequest) ProtoMessage ¶
func (*DepartmentGetRequest) ProtoMessage()
func (*DepartmentGetRequest) ProtoReflect ¶
func (x *DepartmentGetRequest) ProtoReflect() protoreflect.Message
func (*DepartmentGetRequest) Reset ¶
func (x *DepartmentGetRequest) Reset()
func (*DepartmentGetRequest) SizeVT ¶
func (m *DepartmentGetRequest) SizeVT() (n int)
func (*DepartmentGetRequest) String ¶
func (x *DepartmentGetRequest) String() string
func (*DepartmentGetRequest) UnmarshalVT ¶
func (m *DepartmentGetRequest) UnmarshalVT(dAtA []byte) error
type DepartmentGetResponse ¶
type DepartmentGetResponse struct { Departments []*Department `protobuf:"bytes,1,rep,name=departments,proto3" json:"departments,omitempty"` // contains filtered or unexported fields }
func (*DepartmentGetResponse) Descriptor
deprecated
func (*DepartmentGetResponse) Descriptor() ([]byte, []int)
Deprecated: Use DepartmentGetResponse.ProtoReflect.Descriptor instead.
func (*DepartmentGetResponse) GetDepartments ¶
func (x *DepartmentGetResponse) GetDepartments() []*Department
func (*DepartmentGetResponse) MarshalToSizedBufferVT ¶
func (m *DepartmentGetResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*DepartmentGetResponse) MarshalToVT ¶
func (m *DepartmentGetResponse) MarshalToVT(dAtA []byte) (int, error)
func (*DepartmentGetResponse) MarshalVT ¶
func (m *DepartmentGetResponse) MarshalVT() (dAtA []byte, err error)
func (*DepartmentGetResponse) ProtoMessage ¶
func (*DepartmentGetResponse) ProtoMessage()
func (*DepartmentGetResponse) ProtoReflect ¶
func (x *DepartmentGetResponse) ProtoReflect() protoreflect.Message
func (*DepartmentGetResponse) Reset ¶
func (x *DepartmentGetResponse) Reset()
func (*DepartmentGetResponse) SizeVT ¶
func (m *DepartmentGetResponse) SizeVT() (n int)
func (*DepartmentGetResponse) String ¶
func (x *DepartmentGetResponse) String() string
func (*DepartmentGetResponse) UnmarshalVT ¶
func (m *DepartmentGetResponse) UnmarshalVT(dAtA []byte) error
type DepartmentRegistryClient ¶
type DepartmentRegistryClient interface { CreateDepartment(ctx context.Context, in *DepartmentCreateRequest, opts ...grpc.CallOption) (*DepartmentCreateResponse, error) DepartmentAddProject(ctx context.Context, in *DepartmentAddProjectRequest, opts ...grpc.CallOption) (*DepartmentAddProjectResponse, error) DepartmentRemoveProject(ctx context.Context, in *DepartmentRemoveProjectRequest, opts ...grpc.CallOption) (*DepartmentRemoveProjectResponse, error) GetDepartments(ctx context.Context, in *DepartmentGetRequest, opts ...grpc.CallOption) (*DepartmentGetResponse, error) GetDepartmentByID(ctx context.Context, in *DepartmentGetByIDRequest, opts ...grpc.CallOption) (*DepartmentGetByIDResponse, error) UpdateDepartment(ctx context.Context, in *DepartmentUpdateRequest, opts ...grpc.CallOption) (*DepartmentUpdateResponse, error) }
DepartmentRegistryClient is the client API for DepartmentRegistry 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 NewDepartmentRegistryClient ¶
func NewDepartmentRegistryClient(cc grpc.ClientConnInterface) DepartmentRegistryClient
type DepartmentRegistryServer ¶
type DepartmentRegistryServer interface { CreateDepartment(context.Context, *DepartmentCreateRequest) (*DepartmentCreateResponse, error) DepartmentAddProject(context.Context, *DepartmentAddProjectRequest) (*DepartmentAddProjectResponse, error) DepartmentRemoveProject(context.Context, *DepartmentRemoveProjectRequest) (*DepartmentRemoveProjectResponse, error) GetDepartments(context.Context, *DepartmentGetRequest) (*DepartmentGetResponse, error) GetDepartmentByID(context.Context, *DepartmentGetByIDRequest) (*DepartmentGetByIDResponse, error) UpdateDepartment(context.Context, *DepartmentUpdateRequest) (*DepartmentUpdateResponse, error) }
DepartmentRegistryServer is the server API for DepartmentRegistry service. All implementations should embed UnimplementedDepartmentRegistryServer for forward compatibility
type DepartmentRemoveProjectRequest ¶
type DepartmentRemoveProjectRequest struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` ProjectId int64 `protobuf:"varint,2,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"` // contains filtered or unexported fields }
func (*DepartmentRemoveProjectRequest) Descriptor
deprecated
func (*DepartmentRemoveProjectRequest) Descriptor() ([]byte, []int)
Deprecated: Use DepartmentRemoveProjectRequest.ProtoReflect.Descriptor instead.
func (*DepartmentRemoveProjectRequest) GetId ¶
func (x *DepartmentRemoveProjectRequest) GetId() int64
func (*DepartmentRemoveProjectRequest) GetProjectId ¶
func (x *DepartmentRemoveProjectRequest) GetProjectId() int64
func (*DepartmentRemoveProjectRequest) MarshalToSizedBufferVT ¶
func (m *DepartmentRemoveProjectRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*DepartmentRemoveProjectRequest) MarshalToVT ¶
func (m *DepartmentRemoveProjectRequest) MarshalToVT(dAtA []byte) (int, error)
func (*DepartmentRemoveProjectRequest) MarshalVT ¶
func (m *DepartmentRemoveProjectRequest) MarshalVT() (dAtA []byte, err error)
func (*DepartmentRemoveProjectRequest) ProtoMessage ¶
func (*DepartmentRemoveProjectRequest) ProtoMessage()
func (*DepartmentRemoveProjectRequest) ProtoReflect ¶
func (x *DepartmentRemoveProjectRequest) ProtoReflect() protoreflect.Message
func (*DepartmentRemoveProjectRequest) Reset ¶
func (x *DepartmentRemoveProjectRequest) Reset()
func (*DepartmentRemoveProjectRequest) SizeVT ¶
func (m *DepartmentRemoveProjectRequest) SizeVT() (n int)
func (*DepartmentRemoveProjectRequest) String ¶
func (x *DepartmentRemoveProjectRequest) String() string
func (*DepartmentRemoveProjectRequest) UnmarshalVT ¶
func (m *DepartmentRemoveProjectRequest) UnmarshalVT(dAtA []byte) error
type DepartmentRemoveProjectResponse ¶
type DepartmentRemoveProjectResponse struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*DepartmentRemoveProjectResponse) Descriptor
deprecated
func (*DepartmentRemoveProjectResponse) Descriptor() ([]byte, []int)
Deprecated: Use DepartmentRemoveProjectResponse.ProtoReflect.Descriptor instead.
func (*DepartmentRemoveProjectResponse) GetId ¶
func (x *DepartmentRemoveProjectResponse) GetId() int64
func (*DepartmentRemoveProjectResponse) MarshalToSizedBufferVT ¶
func (m *DepartmentRemoveProjectResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*DepartmentRemoveProjectResponse) MarshalToVT ¶
func (m *DepartmentRemoveProjectResponse) MarshalToVT(dAtA []byte) (int, error)
func (*DepartmentRemoveProjectResponse) MarshalVT ¶
func (m *DepartmentRemoveProjectResponse) MarshalVT() (dAtA []byte, err error)
func (*DepartmentRemoveProjectResponse) ProtoMessage ¶
func (*DepartmentRemoveProjectResponse) ProtoMessage()
func (*DepartmentRemoveProjectResponse) ProtoReflect ¶
func (x *DepartmentRemoveProjectResponse) ProtoReflect() protoreflect.Message
func (*DepartmentRemoveProjectResponse) Reset ¶
func (x *DepartmentRemoveProjectResponse) Reset()
func (*DepartmentRemoveProjectResponse) SizeVT ¶
func (m *DepartmentRemoveProjectResponse) SizeVT() (n int)
func (*DepartmentRemoveProjectResponse) String ¶
func (x *DepartmentRemoveProjectResponse) String() string
func (*DepartmentRemoveProjectResponse) UnmarshalVT ¶
func (m *DepartmentRemoveProjectResponse) UnmarshalVT(dAtA []byte) error
type DepartmentUpdateRequest ¶
type DepartmentUpdateRequest struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Department *Department `protobuf:"bytes,2,opt,name=department,proto3" json:"department,omitempty"` // contains filtered or unexported fields }
func (*DepartmentUpdateRequest) Descriptor
deprecated
func (*DepartmentUpdateRequest) Descriptor() ([]byte, []int)
Deprecated: Use DepartmentUpdateRequest.ProtoReflect.Descriptor instead.
func (*DepartmentUpdateRequest) GetDepartment ¶
func (x *DepartmentUpdateRequest) GetDepartment() *Department
func (*DepartmentUpdateRequest) GetId ¶
func (x *DepartmentUpdateRequest) GetId() int64
func (*DepartmentUpdateRequest) MarshalToSizedBufferVT ¶
func (m *DepartmentUpdateRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*DepartmentUpdateRequest) MarshalToVT ¶
func (m *DepartmentUpdateRequest) MarshalToVT(dAtA []byte) (int, error)
func (*DepartmentUpdateRequest) MarshalVT ¶
func (m *DepartmentUpdateRequest) MarshalVT() (dAtA []byte, err error)
func (*DepartmentUpdateRequest) ProtoMessage ¶
func (*DepartmentUpdateRequest) ProtoMessage()
func (*DepartmentUpdateRequest) ProtoReflect ¶
func (x *DepartmentUpdateRequest) ProtoReflect() protoreflect.Message
func (*DepartmentUpdateRequest) Reset ¶
func (x *DepartmentUpdateRequest) Reset()
func (*DepartmentUpdateRequest) SizeVT ¶
func (m *DepartmentUpdateRequest) SizeVT() (n int)
func (*DepartmentUpdateRequest) String ¶
func (x *DepartmentUpdateRequest) String() string
func (*DepartmentUpdateRequest) UnmarshalVT ¶
func (m *DepartmentUpdateRequest) UnmarshalVT(dAtA []byte) error
type DepartmentUpdateResponse ¶
type DepartmentUpdateResponse struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*DepartmentUpdateResponse) Descriptor
deprecated
func (*DepartmentUpdateResponse) Descriptor() ([]byte, []int)
Deprecated: Use DepartmentUpdateResponse.ProtoReflect.Descriptor instead.
func (*DepartmentUpdateResponse) GetId ¶
func (x *DepartmentUpdateResponse) GetId() int64
func (*DepartmentUpdateResponse) MarshalToSizedBufferVT ¶
func (m *DepartmentUpdateResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*DepartmentUpdateResponse) MarshalToVT ¶
func (m *DepartmentUpdateResponse) MarshalToVT(dAtA []byte) (int, error)
func (*DepartmentUpdateResponse) MarshalVT ¶
func (m *DepartmentUpdateResponse) MarshalVT() (dAtA []byte, err error)
func (*DepartmentUpdateResponse) ProtoMessage ¶
func (*DepartmentUpdateResponse) ProtoMessage()
func (*DepartmentUpdateResponse) ProtoReflect ¶
func (x *DepartmentUpdateResponse) ProtoReflect() protoreflect.Message
func (*DepartmentUpdateResponse) Reset ¶
func (x *DepartmentUpdateResponse) Reset()
func (*DepartmentUpdateResponse) SizeVT ¶
func (m *DepartmentUpdateResponse) SizeVT() (n int)
func (*DepartmentUpdateResponse) String ¶
func (x *DepartmentUpdateResponse) String() string
func (*DepartmentUpdateResponse) UnmarshalVT ¶
func (m *DepartmentUpdateResponse) UnmarshalVT(dAtA []byte) error
type UnimplementedDepartmentRegistryServer ¶
type UnimplementedDepartmentRegistryServer struct { }
UnimplementedDepartmentRegistryServer should be embedded to have forward compatible implementations.
func (UnimplementedDepartmentRegistryServer) CreateDepartment ¶
func (UnimplementedDepartmentRegistryServer) CreateDepartment(context.Context, *DepartmentCreateRequest) (*DepartmentCreateResponse, error)
func (UnimplementedDepartmentRegistryServer) DepartmentAddProject ¶
func (UnimplementedDepartmentRegistryServer) DepartmentAddProject(context.Context, *DepartmentAddProjectRequest) (*DepartmentAddProjectResponse, error)
func (UnimplementedDepartmentRegistryServer) DepartmentRemoveProject ¶
func (UnimplementedDepartmentRegistryServer) DepartmentRemoveProject(context.Context, *DepartmentRemoveProjectRequest) (*DepartmentRemoveProjectResponse, error)
func (UnimplementedDepartmentRegistryServer) GetDepartmentByID ¶
func (UnimplementedDepartmentRegistryServer) GetDepartmentByID(context.Context, *DepartmentGetByIDRequest) (*DepartmentGetByIDResponse, error)
func (UnimplementedDepartmentRegistryServer) GetDepartments ¶
func (UnimplementedDepartmentRegistryServer) GetDepartments(context.Context, *DepartmentGetRequest) (*DepartmentGetResponse, error)
func (UnimplementedDepartmentRegistryServer) UpdateDepartment ¶
func (UnimplementedDepartmentRegistryServer) UpdateDepartment(context.Context, *DepartmentUpdateRequest) (*DepartmentUpdateResponse, error)
type UnsafeDepartmentRegistryServer ¶
type UnsafeDepartmentRegistryServer interface {
// contains filtered or unexported methods
}
UnsafeDepartmentRegistryServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to DepartmentRegistryServer will result in compilation errors.