resources

package
v1.30.2 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2023 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_resources_proto protoreflect.FileDescriptor
View Source
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) Descriptor() ([]byte, []int)

Deprecated: Use Resource.ProtoReflect.Descriptor instead.

func (*Resource) GetDescription

func (x *Resource) GetDescription() string

func (*Resource) GetName

func (x *Resource) GetName() string

func (*Resource) GetResourceId

func (x *Resource) GetResourceId() int64

func (*Resource) ProtoMessage

func (*Resource) ProtoMessage()

func (*Resource) ProtoReflect

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

func (*Resource) Reset

func (x *Resource) Reset()

func (*Resource) String

func (x *Resource) String() string

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

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.

type ResourceServiceServer

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) CreateScope

func (UnimplementedResourceServiceServer) Delete

func (UnimplementedResourceServiceServer) List

func (UnimplementedResourceServiceServer) ListScope

func (UnimplementedResourceServiceServer) Update

func (UnimplementedResourceServiceServer) UpdateScope

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.

Jump to

Keyboard shortcuts

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