categories

package
v3.18.3 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CategoriesService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "strmprivacy.api.categories.v1alpha.CategoriesService",
	HandlerType: (*CategoriesServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "ListCategories",
			Handler:    _CategoriesService_ListCategories_Handler,
		},
		{
			MethodName: "GetCategory",
			Handler:    _CategoriesService_GetCategory_Handler,
		},
		{
			MethodName: "UpsertCategory",
			Handler:    _CategoriesService_UpsertCategory_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "strmprivacy/api/categories/v1alpha/categories_v1alpha.proto",
}

CategoriesService_ServiceDesc is the grpc.ServiceDesc for CategoriesService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var File_strmprivacy_api_categories_v1alpha_categories_v1alpha_proto protoreflect.FileDescriptor

Functions

func RegisterCategoriesServiceServer

func RegisterCategoriesServiceServer(s grpc.ServiceRegistrar, srv CategoriesServiceServer)

Types

type CategoriesServiceClient

type CategoriesServiceClient interface {
	// List all categories, optionally filtered for a given type. The organization is derived from the calling user.
	ListCategories(ctx context.Context, in *ListCategoriesRequest, opts ...grpc.CallOption) (*ListCategoriesResponse, error)
	// Get a category by id.
	GetCategory(ctx context.Context, in *GetCategoryRequest, opts ...grpc.CallOption) (*GetCategoryResponse, error)
	// Create or update a category. To create a category, leave its id empty. To update a category, set its id.
	UpsertCategory(ctx context.Context, in *UpsertCategoryRequest, opts ...grpc.CallOption) (*UpsertCategoryResponse, error)
}

CategoriesServiceClient is the client API for CategoriesService 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 CategoriesServiceServer

type CategoriesServiceServer interface {
	// List all categories, optionally filtered for a given type. The organization is derived from the calling user.
	ListCategories(context.Context, *ListCategoriesRequest) (*ListCategoriesResponse, error)
	// Get a category by id.
	GetCategory(context.Context, *GetCategoryRequest) (*GetCategoryResponse, error)
	// Create or update a category. To create a category, leave its id empty. To update a category, set its id.
	UpsertCategory(context.Context, *UpsertCategoryRequest) (*UpsertCategoryResponse, error)
}

CategoriesServiceServer is the server API for CategoriesService service. All implementations should embed UnimplementedCategoriesServiceServer for forward compatibility

type GetCategoryRequest

type GetCategoryRequest struct {
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*GetCategoryRequest) Descriptor deprecated

func (*GetCategoryRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetCategoryRequest.ProtoReflect.Descriptor instead.

func (*GetCategoryRequest) GetId

func (x *GetCategoryRequest) GetId() string

func (*GetCategoryRequest) ProtoMessage

func (*GetCategoryRequest) ProtoMessage()

func (*GetCategoryRequest) ProtoReflect

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

func (*GetCategoryRequest) Reset

func (x *GetCategoryRequest) Reset()

func (*GetCategoryRequest) String

func (x *GetCategoryRequest) String() string

type GetCategoryResponse

type GetCategoryResponse struct {
	Category *v1alpha.Category `protobuf:"bytes,1,opt,name=category,proto3" json:"category,omitempty"`
	// contains filtered or unexported fields
}

func (*GetCategoryResponse) Descriptor deprecated

func (*GetCategoryResponse) Descriptor() ([]byte, []int)

Deprecated: Use GetCategoryResponse.ProtoReflect.Descriptor instead.

func (*GetCategoryResponse) GetCategory

func (x *GetCategoryResponse) GetCategory() *v1alpha.Category

func (*GetCategoryResponse) ProtoMessage

func (*GetCategoryResponse) ProtoMessage()

func (*GetCategoryResponse) ProtoReflect

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

func (*GetCategoryResponse) Reset

func (x *GetCategoryResponse) Reset()

func (*GetCategoryResponse) String

func (x *GetCategoryResponse) String() string

type ListCategoriesRequest

type ListCategoriesRequest struct {

	// The type of the categories to list.
	Type     v1alpha.Category_Type `protobuf:"varint,1,opt,name=type,proto3,enum=strmprivacy.api.entities.v1alpha.Category_Type" json:"type,omitempty"`
	PageInfo *v1alpha1.PageInfo    `protobuf:"bytes,2,opt,name=page_info,json=pageInfo,proto3" json:"page_info,omitempty"`
	// contains filtered or unexported fields
}

func (*ListCategoriesRequest) Descriptor deprecated

func (*ListCategoriesRequest) Descriptor() ([]byte, []int)

Deprecated: Use ListCategoriesRequest.ProtoReflect.Descriptor instead.

func (*ListCategoriesRequest) GetPageInfo

func (x *ListCategoriesRequest) GetPageInfo() *v1alpha1.PageInfo

func (*ListCategoriesRequest) GetType

func (*ListCategoriesRequest) ProtoMessage

func (*ListCategoriesRequest) ProtoMessage()

func (*ListCategoriesRequest) ProtoReflect

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

func (*ListCategoriesRequest) Reset

func (x *ListCategoriesRequest) Reset()

func (*ListCategoriesRequest) String

func (x *ListCategoriesRequest) String() string

type ListCategoriesResponse

type ListCategoriesResponse struct {

	// Categories returned.
	Categories []*v1alpha.Category `protobuf:"bytes,1,rep,name=categories,proto3" json:"categories,omitempty"`
	PageInfo   *v1alpha1.PageInfo  `protobuf:"bytes,2,opt,name=page_info,json=pageInfo,proto3" json:"page_info,omitempty"`
	// contains filtered or unexported fields
}

func (*ListCategoriesResponse) Descriptor deprecated

func (*ListCategoriesResponse) Descriptor() ([]byte, []int)

Deprecated: Use ListCategoriesResponse.ProtoReflect.Descriptor instead.

func (*ListCategoriesResponse) GetCategories

func (x *ListCategoriesResponse) GetCategories() []*v1alpha.Category

func (*ListCategoriesResponse) GetPageInfo

func (x *ListCategoriesResponse) GetPageInfo() *v1alpha1.PageInfo

func (*ListCategoriesResponse) ProtoMessage

func (*ListCategoriesResponse) ProtoMessage()

func (*ListCategoriesResponse) ProtoReflect

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

func (*ListCategoriesResponse) Reset

func (x *ListCategoriesResponse) Reset()

func (*ListCategoriesResponse) String

func (x *ListCategoriesResponse) String() string

type UnimplementedCategoriesServiceServer

type UnimplementedCategoriesServiceServer struct {
}

UnimplementedCategoriesServiceServer should be embedded to have forward compatible implementations.

func (UnimplementedCategoriesServiceServer) GetCategory

func (UnimplementedCategoriesServiceServer) ListCategories

func (UnimplementedCategoriesServiceServer) UpsertCategory

type UnsafeCategoriesServiceServer

type UnsafeCategoriesServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeCategoriesServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to CategoriesServiceServer will result in compilation errors.

type UpsertCategoryRequest

type UpsertCategoryRequest struct {
	Category *v1alpha.Category `protobuf:"bytes,1,opt,name=category,proto3" json:"category,omitempty"`
	// contains filtered or unexported fields
}

To create a category, leave its id empty. To update a category, set its id.

func (*UpsertCategoryRequest) Descriptor deprecated

func (*UpsertCategoryRequest) Descriptor() ([]byte, []int)

Deprecated: Use UpsertCategoryRequest.ProtoReflect.Descriptor instead.

func (*UpsertCategoryRequest) GetCategory

func (x *UpsertCategoryRequest) GetCategory() *v1alpha.Category

func (*UpsertCategoryRequest) ProtoMessage

func (*UpsertCategoryRequest) ProtoMessage()

func (*UpsertCategoryRequest) ProtoReflect

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

func (*UpsertCategoryRequest) Reset

func (x *UpsertCategoryRequest) Reset()

func (*UpsertCategoryRequest) String

func (x *UpsertCategoryRequest) String() string

type UpsertCategoryResponse

type UpsertCategoryResponse struct {
	Category *v1alpha.Category `protobuf:"bytes,1,opt,name=category,proto3" json:"category,omitempty"`
	// contains filtered or unexported fields
}

func (*UpsertCategoryResponse) Descriptor deprecated

func (*UpsertCategoryResponse) Descriptor() ([]byte, []int)

Deprecated: Use UpsertCategoryResponse.ProtoReflect.Descriptor instead.

func (*UpsertCategoryResponse) GetCategory

func (x *UpsertCategoryResponse) GetCategory() *v1alpha.Category

func (*UpsertCategoryResponse) ProtoMessage

func (*UpsertCategoryResponse) ProtoMessage()

func (*UpsertCategoryResponse) ProtoReflect

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

func (*UpsertCategoryResponse) Reset

func (x *UpsertCategoryResponse) Reset()

func (*UpsertCategoryResponse) String

func (x *UpsertCategoryResponse) String() string

Jump to

Keyboard shortcuts

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