Documentation ¶
Index ¶
- Variables
- func RegisterCategoriesServiceServer(s grpc.ServiceRegistrar, srv CategoriesServiceServer)
- type CategoriesServiceClient
- type CategoriesServiceServer
- type GetCategoryRequest
- type GetCategoryResponse
- func (*GetCategoryResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetCategoryResponse) GetCategory() *v1alpha.Category
- func (*GetCategoryResponse) ProtoMessage()
- func (x *GetCategoryResponse) ProtoReflect() protoreflect.Message
- func (x *GetCategoryResponse) Reset()
- func (x *GetCategoryResponse) String() string
- type ListCategoriesRequest
- func (*ListCategoriesRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListCategoriesRequest) GetPageInfo() *v1alpha1.PageInfo
- func (x *ListCategoriesRequest) GetType() v1alpha.Category_Type
- func (*ListCategoriesRequest) ProtoMessage()
- func (x *ListCategoriesRequest) ProtoReflect() protoreflect.Message
- func (x *ListCategoriesRequest) Reset()
- func (x *ListCategoriesRequest) String() string
- type ListCategoriesResponse
- func (*ListCategoriesResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListCategoriesResponse) GetCategories() []*v1alpha.Category
- func (x *ListCategoriesResponse) GetPageInfo() *v1alpha1.PageInfo
- func (*ListCategoriesResponse) ProtoMessage()
- func (x *ListCategoriesResponse) ProtoReflect() protoreflect.Message
- func (x *ListCategoriesResponse) Reset()
- func (x *ListCategoriesResponse) String() string
- type UnimplementedCategoriesServiceServer
- func (UnimplementedCategoriesServiceServer) GetCategory(context.Context, *GetCategoryRequest) (*GetCategoryResponse, error)
- func (UnimplementedCategoriesServiceServer) ListCategories(context.Context, *ListCategoriesRequest) (*ListCategoriesResponse, error)
- func (UnimplementedCategoriesServiceServer) UpsertCategory(context.Context, *UpsertCategoryRequest) (*UpsertCategoryResponse, error)
- type UnsafeCategoriesServiceServer
- type UpsertCategoryRequest
- func (*UpsertCategoryRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpsertCategoryRequest) GetCategory() *v1alpha.Category
- func (*UpsertCategoryRequest) ProtoMessage()
- func (x *UpsertCategoryRequest) ProtoReflect() protoreflect.Message
- func (x *UpsertCategoryRequest) Reset()
- func (x *UpsertCategoryRequest) String() string
- type UpsertCategoryResponse
- func (*UpsertCategoryResponse) Descriptor() ([]byte, []int)deprecated
- func (x *UpsertCategoryResponse) GetCategory() *v1alpha.Category
- func (*UpsertCategoryResponse) ProtoMessage()
- func (x *UpsertCategoryResponse) ProtoReflect() protoreflect.Message
- func (x *UpsertCategoryResponse) Reset()
- func (x *UpsertCategoryResponse) String() string
Constants ¶
This section is empty.
Variables ¶
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)
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.
func NewCategoriesServiceClient ¶
func NewCategoriesServiceClient(cc grpc.ClientConnInterface) CategoriesServiceClient
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 (x *ListCategoriesRequest) GetType() v1alpha.Category_Type
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) GetCategory(context.Context, *GetCategoryRequest) (*GetCategoryResponse, error)
func (UnimplementedCategoriesServiceServer) ListCategories ¶
func (UnimplementedCategoriesServiceServer) ListCategories(context.Context, *ListCategoriesRequest) (*ListCategoriesResponse, error)
func (UnimplementedCategoriesServiceServer) UpsertCategory ¶
func (UnimplementedCategoriesServiceServer) UpsertCategory(context.Context, *UpsertCategoryRequest) (*UpsertCategoryResponse, error)
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