Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterProjectServiceHTTPServer(s *http.Server, srv ProjectServiceHTTPServer)
- func RegisterProjectServiceServer(s grpc.ServiceRegistrar, srv ProjectServiceServer)
- type Business
- type Project
- func (*Project) Descriptor() ([]byte, []int)deprecated
- func (x *Project) GetBusiness() []*Business
- func (x *Project) GetBusinessTechnology() string
- func (x *Project) GetClusterId() int64
- func (x *Project) GetDescription() string
- func (x *Project) GetId() int64
- func (x *Project) GetName() string
- func (x *Project) GetNamespace() string
- func (x *Project) GetState() string
- func (*Project) ProtoMessage()
- func (x *Project) ProtoReflect() protoreflect.Message
- func (x *Project) Reset()
- func (x *Project) String() string
- type ProjectList
- type ProjectReq
- func (*ProjectReq) Descriptor() ([]byte, []int)deprecated
- func (x *ProjectReq) GetClusterId() int64
- func (x *ProjectReq) GetId() int64
- func (x *ProjectReq) GetName() string
- func (*ProjectReq) ProtoMessage()
- func (x *ProjectReq) ProtoReflect() protoreflect.Message
- func (x *ProjectReq) Reset()
- func (x *ProjectReq) String() string
- type ProjectServiceClient
- type ProjectServiceHTTPClient
- type ProjectServiceHTTPClientImpl
- func (c *ProjectServiceHTTPClientImpl) Delete(ctx context.Context, in *ProjectReq, opts ...http.CallOption) (*common.Msg, error)
- func (c *ProjectServiceHTTPClientImpl) Get(ctx context.Context, in *ProjectReq, opts ...http.CallOption) (*Project, error)
- func (c *ProjectServiceHTTPClientImpl) List(ctx context.Context, in *ProjectReq, opts ...http.CallOption) (*ProjectList, error)
- func (c *ProjectServiceHTTPClientImpl) Ping(ctx context.Context, in *emptypb.Empty, opts ...http.CallOption) (*common.Msg, error)
- func (c *ProjectServiceHTTPClientImpl) Save(ctx context.Context, in *Project, opts ...http.CallOption) (*common.Msg, error)
- type ProjectServiceHTTPServer
- type ProjectServiceServer
- type Technology
- type UnimplementedProjectServiceServer
- func (UnimplementedProjectServiceServer) Delete(context.Context, *ProjectReq) (*common.Msg, error)
- func (UnimplementedProjectServiceServer) Get(context.Context, *ProjectReq) (*Project, error)
- func (UnimplementedProjectServiceServer) List(context.Context, *ProjectReq) (*ProjectList, error)
- func (UnimplementedProjectServiceServer) Ping(context.Context, *emptypb.Empty) (*common.Msg, error)
- func (UnimplementedProjectServiceServer) Save(context.Context, *Project) (*common.Msg, error)
- type UnsafeProjectServiceServer
Constants ¶
const ( ProjectService_Ping_FullMethodName = "/project.v1alpha1.ProjectService/Ping" ProjectService_Save_FullMethodName = "/project.v1alpha1.ProjectService/Save" ProjectService_Get_FullMethodName = "/project.v1alpha1.ProjectService/Get" ProjectService_List_FullMethodName = "/project.v1alpha1.ProjectService/List" ProjectService_Delete_FullMethodName = "/project.v1alpha1.ProjectService/Delete" )
const OperationProjectServiceDelete = "/project.v1alpha1.ProjectService/Delete"
const OperationProjectServiceGet = "/project.v1alpha1.ProjectService/Get"
const OperationProjectServiceList = "/project.v1alpha1.ProjectService/List"
const OperationProjectServicePing = "/project.v1alpha1.ProjectService/Ping"
const OperationProjectServiceSave = "/project.v1alpha1.ProjectService/Save"
Variables ¶
var File_api_project_v1alpha1_message_proto protoreflect.FileDescriptor
var File_api_project_v1alpha1_project_proto protoreflect.FileDescriptor
var ProjectService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "project.v1alpha1.ProjectService", HandlerType: (*ProjectServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Ping", Handler: _ProjectService_Ping_Handler, }, { MethodName: "Save", Handler: _ProjectService_Save_Handler, }, { MethodName: "Get", Handler: _ProjectService_Get_Handler, }, { MethodName: "List", Handler: _ProjectService_List_Handler, }, { MethodName: "Delete", Handler: _ProjectService_Delete_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "api/project/v1alpha1/project.proto", }
ProjectService_ServiceDesc is the grpc.ServiceDesc for ProjectService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterProjectServiceHTTPServer ¶
func RegisterProjectServiceHTTPServer(s *http.Server, srv ProjectServiceHTTPServer)
func RegisterProjectServiceServer ¶
func RegisterProjectServiceServer(s grpc.ServiceRegistrar, srv ProjectServiceServer)
Types ¶
type Business ¶
type Business struct { Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Technologys []*Technology `protobuf:"bytes,3,rep,name=technologys,proto3" json:"technologys,omitempty"` // contains filtered or unexported fields }
func (*Business) Descriptor
deprecated
func (*Business) GetTechnologys ¶
func (x *Business) GetTechnologys() []*Technology
func (*Business) ProtoMessage ¶
func (*Business) ProtoMessage()
func (*Business) ProtoReflect ¶
func (x *Business) ProtoReflect() protoreflect.Message
type Project ¶
type Project 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"` Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` ClusterId int64 `protobuf:"varint,4,opt,name=cluster_id,proto3" json:"cluster_id,omitempty"` Namespace string `protobuf:"bytes,5,opt,name=namespace,proto3" json:"namespace,omitempty"` State string `protobuf:"bytes,6,opt,name=state,proto3" json:"state,omitempty"` Business []*Business `protobuf:"bytes,7,rep,name=business,proto3" json:"business,omitempty"` BusinessTechnology string `protobuf:"bytes,8,opt,name=business_technology,proto3" json:"business_technology,omitempty"` // contains filtered or unexported fields }
func (*Project) Descriptor
deprecated
func (*Project) GetBusiness ¶
func (*Project) GetBusinessTechnology ¶
func (*Project) GetClusterId ¶
func (*Project) GetDescription ¶
func (*Project) GetNamespace ¶
func (*Project) ProtoMessage ¶
func (*Project) ProtoMessage()
func (*Project) ProtoReflect ¶
func (x *Project) ProtoReflect() protoreflect.Message
type ProjectList ¶
type ProjectList struct { Projects []*Project `protobuf:"bytes,1,rep,name=projects,proto3" json:"projects,omitempty"` // contains filtered or unexported fields }
func (*ProjectList) Descriptor
deprecated
func (*ProjectList) Descriptor() ([]byte, []int)
Deprecated: Use ProjectList.ProtoReflect.Descriptor instead.
func (*ProjectList) GetProjects ¶
func (x *ProjectList) GetProjects() []*Project
func (*ProjectList) ProtoMessage ¶
func (*ProjectList) ProtoMessage()
func (*ProjectList) ProtoReflect ¶
func (x *ProjectList) ProtoReflect() protoreflect.Message
func (*ProjectList) Reset ¶
func (x *ProjectList) Reset()
func (*ProjectList) String ¶
func (x *ProjectList) String() string
type ProjectReq ¶
type ProjectReq struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` ClusterId int64 `protobuf:"varint,3,opt,name=cluster_id,proto3" json:"cluster_id,omitempty"` Id int64 `protobuf:"varint,4,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*ProjectReq) Descriptor
deprecated
func (*ProjectReq) Descriptor() ([]byte, []int)
Deprecated: Use ProjectReq.ProtoReflect.Descriptor instead.
func (*ProjectReq) GetClusterId ¶
func (x *ProjectReq) GetClusterId() int64
func (*ProjectReq) GetId ¶
func (x *ProjectReq) GetId() int64
func (*ProjectReq) GetName ¶
func (x *ProjectReq) GetName() string
func (*ProjectReq) ProtoMessage ¶
func (*ProjectReq) ProtoMessage()
func (*ProjectReq) ProtoReflect ¶
func (x *ProjectReq) ProtoReflect() protoreflect.Message
func (*ProjectReq) Reset ¶
func (x *ProjectReq) Reset()
func (*ProjectReq) String ¶
func (x *ProjectReq) String() string
type ProjectServiceClient ¶
type ProjectServiceClient interface { Ping(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*common.Msg, error) Save(ctx context.Context, in *Project, opts ...grpc.CallOption) (*common.Msg, error) Get(ctx context.Context, in *ProjectReq, opts ...grpc.CallOption) (*Project, error) List(ctx context.Context, in *ProjectReq, opts ...grpc.CallOption) (*ProjectList, error) Delete(ctx context.Context, in *ProjectReq, opts ...grpc.CallOption) (*common.Msg, error) }
ProjectServiceClient is the client API for ProjectService 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 NewProjectServiceClient ¶
func NewProjectServiceClient(cc grpc.ClientConnInterface) ProjectServiceClient
type ProjectServiceHTTPClient ¶
type ProjectServiceHTTPClient interface { Delete(ctx context.Context, req *ProjectReq, opts ...http.CallOption) (rsp *common.Msg, err error) Get(ctx context.Context, req *ProjectReq, opts ...http.CallOption) (rsp *Project, err error) List(ctx context.Context, req *ProjectReq, opts ...http.CallOption) (rsp *ProjectList, err error) Ping(ctx context.Context, req *emptypb.Empty, opts ...http.CallOption) (rsp *common.Msg, err error) Save(ctx context.Context, req *Project, opts ...http.CallOption) (rsp *common.Msg, err error) }
func NewProjectServiceHTTPClient ¶
func NewProjectServiceHTTPClient(client *http.Client) ProjectServiceHTTPClient
type ProjectServiceHTTPClientImpl ¶
type ProjectServiceHTTPClientImpl struct {
// contains filtered or unexported fields
}
func (*ProjectServiceHTTPClientImpl) Delete ¶
func (c *ProjectServiceHTTPClientImpl) Delete(ctx context.Context, in *ProjectReq, opts ...http.CallOption) (*common.Msg, error)
func (*ProjectServiceHTTPClientImpl) Get ¶
func (c *ProjectServiceHTTPClientImpl) Get(ctx context.Context, in *ProjectReq, opts ...http.CallOption) (*Project, error)
func (*ProjectServiceHTTPClientImpl) List ¶
func (c *ProjectServiceHTTPClientImpl) List(ctx context.Context, in *ProjectReq, opts ...http.CallOption) (*ProjectList, error)
type ProjectServiceHTTPServer ¶
type ProjectServiceHTTPServer interface { Delete(context.Context, *ProjectReq) (*common.Msg, error) Get(context.Context, *ProjectReq) (*Project, error) List(context.Context, *ProjectReq) (*ProjectList, error) Ping(context.Context, *emptypb.Empty) (*common.Msg, error) Save(context.Context, *Project) (*common.Msg, error) }
type ProjectServiceServer ¶
type ProjectServiceServer interface { Ping(context.Context, *emptypb.Empty) (*common.Msg, error) Save(context.Context, *Project) (*common.Msg, error) Get(context.Context, *ProjectReq) (*Project, error) List(context.Context, *ProjectReq) (*ProjectList, error) Delete(context.Context, *ProjectReq) (*common.Msg, error) // contains filtered or unexported methods }
ProjectServiceServer is the server API for ProjectService service. All implementations must embed UnimplementedProjectServiceServer for forward compatibility.
type Technology ¶
type Technology struct { Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*Technology) Descriptor
deprecated
func (*Technology) Descriptor() ([]byte, []int)
Deprecated: Use Technology.ProtoReflect.Descriptor instead.
func (*Technology) GetName ¶
func (x *Technology) GetName() string
func (*Technology) ProtoMessage ¶
func (*Technology) ProtoMessage()
func (*Technology) ProtoReflect ¶
func (x *Technology) ProtoReflect() protoreflect.Message
func (*Technology) Reset ¶
func (x *Technology) Reset()
func (*Technology) String ¶
func (x *Technology) String() string
type UnimplementedProjectServiceServer ¶
type UnimplementedProjectServiceServer struct{}
UnimplementedProjectServiceServer must 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 (UnimplementedProjectServiceServer) Delete ¶
func (UnimplementedProjectServiceServer) Delete(context.Context, *ProjectReq) (*common.Msg, error)
func (UnimplementedProjectServiceServer) Get ¶
func (UnimplementedProjectServiceServer) Get(context.Context, *ProjectReq) (*Project, error)
func (UnimplementedProjectServiceServer) List ¶
func (UnimplementedProjectServiceServer) List(context.Context, *ProjectReq) (*ProjectList, error)
type UnsafeProjectServiceServer ¶
type UnsafeProjectServiceServer interface {
// contains filtered or unexported methods
}
UnsafeProjectServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ProjectServiceServer will result in compilation errors.