Documentation ¶
Index ¶
- Variables
- func RegisterResourceServiceServer(s grpc.ServiceRegistrar, srv ResourceServiceServer)
- type CreateResourceRequest
- func (*CreateResourceRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateResourceRequest) GetDescription() string
- func (x *CreateResourceRequest) GetName() string
- func (*CreateResourceRequest) ProtoMessage()
- func (x *CreateResourceRequest) ProtoReflect() protoreflect.Message
- func (x *CreateResourceRequest) Reset()
- func (x *CreateResourceRequest) String() string
- type ListResource
- type ListResourceScope
- func (*ListResourceScope) Descriptor() ([]byte, []int)deprecated
- func (x *ListResourceScope) GetData() []*ResourceScope
- func (*ListResourceScope) ProtoMessage()
- func (x *ListResourceScope) ProtoReflect() protoreflect.Message
- func (x *ListResourceScope) Reset()
- func (x *ListResourceScope) String() string
- type QueryResourceRequest
- func (*QueryResourceRequest) Descriptor() ([]byte, []int)deprecated
- func (x *QueryResourceRequest) GetResourceId() string
- func (*QueryResourceRequest) ProtoMessage()
- func (x *QueryResourceRequest) ProtoReflect() protoreflect.Message
- func (x *QueryResourceRequest) Reset()
- func (x *QueryResourceRequest) String() string
- type Resource
- func (*Resource) Descriptor() ([]byte, []int)deprecated
- func (x *Resource) GetDescription() string
- func (x *Resource) GetName() string
- func (x *Resource) GetResourceId() int64
- func (*Resource) ProtoMessage()
- func (x *Resource) ProtoReflect() protoreflect.Message
- func (x *Resource) Reset()
- func (x *Resource) String() string
- type ResourceScope
- func (*ResourceScope) Descriptor() ([]byte, []int)deprecated
- func (x *ResourceScope) GetDescription() string
- func (x *ResourceScope) GetLabel() string
- func (x *ResourceScope) GetName() string
- func (x *ResourceScope) GetResourceId() int64
- func (x *ResourceScope) GetResourceScopesId() int64
- func (*ResourceScope) ProtoMessage()
- func (x *ResourceScope) ProtoReflect() protoreflect.Message
- func (x *ResourceScope) Reset()
- func (x *ResourceScope) String() string
- type ResourceServiceClient
- type ResourceServiceServer
- type ResourceService_CreateScopeClient
- type ResourceService_CreateScopeServer
- type ResourceService_DeleteClient
- type ResourceService_DeleteServer
- type ResourceService_ListClient
- type ResourceService_ListScopeClient
- type ResourceService_ListScopeServer
- type ResourceService_ListServer
- type ResourceService_UpdateScopeClient
- type ResourceService_UpdateScopeServer
- type UnimplementedResourceServiceServer
- func (UnimplementedResourceServiceServer) Create(context.Context, *CreateResourceRequest) (*Resource, error)
- func (UnimplementedResourceServiceServer) CreateScope(ResourceService_CreateScopeServer) error
- func (UnimplementedResourceServiceServer) Delete(ResourceService_DeleteServer) error
- func (UnimplementedResourceServiceServer) List(*empty.Empty, ResourceService_ListServer) error
- func (UnimplementedResourceServiceServer) ListScope(*QueryResourceRequest, ResourceService_ListScopeServer) error
- func (UnimplementedResourceServiceServer) Update(context.Context, *Resource) (*Resource, error)
- func (UnimplementedResourceServiceServer) UpdateScope(ResourceService_UpdateScopeServer) error
- type UnsafeResourceServiceServer
Constants ¶
This section is empty.
Variables ¶
var File_resources_proto protoreflect.FileDescriptor
var ResourceService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "ResourceService", HandlerType: (*ResourceServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Create", Handler: _ResourceService_Create_Handler, }, { MethodName: "Update", Handler: _ResourceService_Update_Handler, }, }, Streams: []grpc.StreamDesc{ { StreamName: "CreateScope", Handler: _ResourceService_CreateScope_Handler, ServerStreams: true, ClientStreams: true, }, { StreamName: "List", Handler: _ResourceService_List_Handler, ServerStreams: true, }, { StreamName: "ListScope", Handler: _ResourceService_ListScope_Handler, ServerStreams: true, }, { StreamName: "UpdateScope", Handler: _ResourceService_UpdateScope_Handler, ServerStreams: true, ClientStreams: true, }, { StreamName: "Delete", Handler: _ResourceService_Delete_Handler, ServerStreams: true, ClientStreams: true, }, }, Metadata: "resources.proto", }
ResourceService_ServiceDesc is the grpc.ServiceDesc for ResourceService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterResourceServiceServer ¶
func RegisterResourceServiceServer(s grpc.ServiceRegistrar, srv ResourceServiceServer)
Types ¶
type CreateResourceRequest ¶
type CreateResourceRequest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` // contains filtered or unexported fields }
func (*CreateResourceRequest) Descriptor
deprecated
func (*CreateResourceRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateResourceRequest.ProtoReflect.Descriptor instead.
func (*CreateResourceRequest) GetDescription ¶
func (x *CreateResourceRequest) GetDescription() string
func (*CreateResourceRequest) GetName ¶
func (x *CreateResourceRequest) GetName() string
func (*CreateResourceRequest) ProtoMessage ¶
func (*CreateResourceRequest) ProtoMessage()
func (*CreateResourceRequest) ProtoReflect ¶
func (x *CreateResourceRequest) ProtoReflect() protoreflect.Message
func (*CreateResourceRequest) Reset ¶
func (x *CreateResourceRequest) Reset()
func (*CreateResourceRequest) String ¶
func (x *CreateResourceRequest) String() string
type ListResource ¶
type ListResource struct { Data []*Resource `protobuf:"bytes,1,rep,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*ListResource) Descriptor
deprecated
func (*ListResource) Descriptor() ([]byte, []int)
Deprecated: Use ListResource.ProtoReflect.Descriptor instead.
func (*ListResource) GetData ¶
func (x *ListResource) GetData() []*Resource
func (*ListResource) ProtoMessage ¶
func (*ListResource) ProtoMessage()
func (*ListResource) ProtoReflect ¶
func (x *ListResource) ProtoReflect() protoreflect.Message
func (*ListResource) Reset ¶
func (x *ListResource) Reset()
func (*ListResource) String ¶
func (x *ListResource) String() string
type ListResourceScope ¶
type ListResourceScope struct { Data []*ResourceScope `protobuf:"bytes,1,rep,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*ListResourceScope) Descriptor
deprecated
func (*ListResourceScope) Descriptor() ([]byte, []int)
Deprecated: Use ListResourceScope.ProtoReflect.Descriptor instead.
func (*ListResourceScope) GetData ¶
func (x *ListResourceScope) GetData() []*ResourceScope
func (*ListResourceScope) ProtoMessage ¶
func (*ListResourceScope) ProtoMessage()
func (*ListResourceScope) ProtoReflect ¶
func (x *ListResourceScope) ProtoReflect() protoreflect.Message
func (*ListResourceScope) Reset ¶
func (x *ListResourceScope) Reset()
func (*ListResourceScope) String ¶
func (x *ListResourceScope) String() string
type QueryResourceRequest ¶
type QueryResourceRequest struct { ResourceId string `protobuf:"bytes,1,opt,name=resource_id,json=resourceId,proto3" json:"resource_id,omitempty"` // contains filtered or unexported fields }
func (*QueryResourceRequest) Descriptor
deprecated
func (*QueryResourceRequest) Descriptor() ([]byte, []int)
Deprecated: Use QueryResourceRequest.ProtoReflect.Descriptor instead.
func (*QueryResourceRequest) GetResourceId ¶
func (x *QueryResourceRequest) GetResourceId() string
func (*QueryResourceRequest) ProtoMessage ¶
func (*QueryResourceRequest) ProtoMessage()
func (*QueryResourceRequest) ProtoReflect ¶
func (x *QueryResourceRequest) ProtoReflect() protoreflect.Message
func (*QueryResourceRequest) Reset ¶
func (x *QueryResourceRequest) Reset()
func (*QueryResourceRequest) String ¶
func (x *QueryResourceRequest) String() string
type Resource ¶
type Resource struct { ResourceId int64 `protobuf:"varint,1,opt,name=resource_id,json=resourceId,proto3" json:"resource_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"` // contains filtered or unexported fields }
func (*Resource) Descriptor
deprecated
func (*Resource) GetDescription ¶
func (*Resource) GetResourceId ¶
func (*Resource) ProtoMessage ¶
func (*Resource) ProtoMessage()
func (*Resource) ProtoReflect ¶
func (x *Resource) ProtoReflect() protoreflect.Message
type ResourceScope ¶
type ResourceScope struct { ResourceScopesId int64 `protobuf:"varint,1,opt,name=resource_scopes_id,json=resourceScopesId,proto3" json:"resource_scopes_id,omitempty"` Label string `protobuf:"bytes,2,opt,name=label,proto3" json:"label,omitempty"` Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"` ResourceId int64 `protobuf:"varint,5,opt,name=resource_id,json=resourceId,proto3" json:"resource_id,omitempty"` // contains filtered or unexported fields }
func (*ResourceScope) Descriptor
deprecated
func (*ResourceScope) Descriptor() ([]byte, []int)
Deprecated: Use ResourceScope.ProtoReflect.Descriptor instead.
func (*ResourceScope) GetDescription ¶
func (x *ResourceScope) GetDescription() string
func (*ResourceScope) GetLabel ¶
func (x *ResourceScope) GetLabel() string
func (*ResourceScope) GetName ¶
func (x *ResourceScope) GetName() string
func (*ResourceScope) GetResourceId ¶
func (x *ResourceScope) GetResourceId() int64
func (*ResourceScope) GetResourceScopesId ¶
func (x *ResourceScope) GetResourceScopesId() int64
func (*ResourceScope) ProtoMessage ¶
func (*ResourceScope) ProtoMessage()
func (*ResourceScope) ProtoReflect ¶
func (x *ResourceScope) ProtoReflect() protoreflect.Message
func (*ResourceScope) Reset ¶
func (x *ResourceScope) Reset()
func (*ResourceScope) String ¶
func (x *ResourceScope) String() string
type ResourceServiceClient ¶
type ResourceServiceClient interface { Create(ctx context.Context, in *CreateResourceRequest, opts ...grpc.CallOption) (*Resource, error) CreateScope(ctx context.Context, opts ...grpc.CallOption) (ResourceService_CreateScopeClient, error) List(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (ResourceService_ListClient, error) ListScope(ctx context.Context, in *QueryResourceRequest, opts ...grpc.CallOption) (ResourceService_ListScopeClient, error) Update(ctx context.Context, in *Resource, opts ...grpc.CallOption) (*Resource, error) UpdateScope(ctx context.Context, opts ...grpc.CallOption) (ResourceService_UpdateScopeClient, error) Delete(ctx context.Context, opts ...grpc.CallOption) (ResourceService_DeleteClient, error) }
ResourceServiceClient is the client API for ResourceService 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 NewResourceServiceClient ¶
func NewResourceServiceClient(cc grpc.ClientConnInterface) ResourceServiceClient
type ResourceServiceServer ¶
type ResourceServiceServer interface { Create(context.Context, *CreateResourceRequest) (*Resource, error) CreateScope(ResourceService_CreateScopeServer) error List(*empty.Empty, ResourceService_ListServer) error ListScope(*QueryResourceRequest, ResourceService_ListScopeServer) error Update(context.Context, *Resource) (*Resource, error) UpdateScope(ResourceService_UpdateScopeServer) error Delete(ResourceService_DeleteServer) error // contains filtered or unexported methods }
ResourceServiceServer is the server API for ResourceService service. All implementations must embed UnimplementedResourceServiceServer for forward compatibility
type ResourceService_CreateScopeClient ¶
type ResourceService_CreateScopeClient interface { Send(*ResourceScope) error Recv() (*ResourceScope, error) grpc.ClientStream }
type ResourceService_CreateScopeServer ¶
type ResourceService_CreateScopeServer interface { Send(*ResourceScope) error Recv() (*ResourceScope, error) grpc.ServerStream }
type ResourceService_DeleteClient ¶
type ResourceService_DeleteClient interface { Send(*QueryResourceRequest) error Recv() (*Resource, error) grpc.ClientStream }
type ResourceService_DeleteServer ¶
type ResourceService_DeleteServer interface { Send(*Resource) error Recv() (*QueryResourceRequest, error) grpc.ServerStream }
type ResourceService_ListClient ¶
type ResourceService_ListClient interface { Recv() (*Resource, error) grpc.ClientStream }
type ResourceService_ListScopeClient ¶
type ResourceService_ListScopeClient interface { Recv() (*ResourceScope, error) grpc.ClientStream }
type ResourceService_ListScopeServer ¶
type ResourceService_ListScopeServer interface { Send(*ResourceScope) error grpc.ServerStream }
type ResourceService_ListServer ¶
type ResourceService_ListServer interface { Send(*Resource) error grpc.ServerStream }
type ResourceService_UpdateScopeClient ¶
type ResourceService_UpdateScopeClient interface { Send(*ResourceScope) error Recv() (*ResourceScope, error) grpc.ClientStream }
type ResourceService_UpdateScopeServer ¶
type ResourceService_UpdateScopeServer interface { Send(*ResourceScope) error Recv() (*ResourceScope, error) grpc.ServerStream }
type UnimplementedResourceServiceServer ¶
type UnimplementedResourceServiceServer struct { }
UnimplementedResourceServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedResourceServiceServer) Create ¶
func (UnimplementedResourceServiceServer) Create(context.Context, *CreateResourceRequest) (*Resource, error)
func (UnimplementedResourceServiceServer) CreateScope ¶
func (UnimplementedResourceServiceServer) CreateScope(ResourceService_CreateScopeServer) error
func (UnimplementedResourceServiceServer) Delete ¶
func (UnimplementedResourceServiceServer) Delete(ResourceService_DeleteServer) error
func (UnimplementedResourceServiceServer) List ¶
func (UnimplementedResourceServiceServer) List(*empty.Empty, ResourceService_ListServer) error
func (UnimplementedResourceServiceServer) ListScope ¶
func (UnimplementedResourceServiceServer) ListScope(*QueryResourceRequest, ResourceService_ListScopeServer) error
func (UnimplementedResourceServiceServer) UpdateScope ¶
func (UnimplementedResourceServiceServer) UpdateScope(ResourceService_UpdateScopeServer) error
type UnsafeResourceServiceServer ¶
type UnsafeResourceServiceServer interface {
// contains filtered or unexported methods
}
UnsafeResourceServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ResourceServiceServer will result in compilation errors.