Documentation ¶
Index ¶
- Variables
- func RegisterClassificationServiceServer(s grpc.ServiceRegistrar, srv ClassificationServiceServer)
- type CheckForWordsInPostRequest
- func (*CheckForWordsInPostRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CheckForWordsInPostRequest) GetPostId() string
- func (x *CheckForWordsInPostRequest) GetWords() []string
- func (*CheckForWordsInPostRequest) ProtoMessage()
- func (x *CheckForWordsInPostRequest) ProtoReflect() protoreflect.Message
- func (x *CheckForWordsInPostRequest) Reset()
- func (x *CheckForWordsInPostRequest) String() string
- type CheckForWordsInPostResponse
- func (*CheckForWordsInPostResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CheckForWordsInPostResponse) GetWords() map[string]bool
- func (*CheckForWordsInPostResponse) ProtoMessage()
- func (x *CheckForWordsInPostResponse) ProtoReflect() protoreflect.Message
- func (x *CheckForWordsInPostResponse) Reset()
- func (x *CheckForWordsInPostResponse) String() string
- type ClassificationServiceClient
- type ClassificationServiceServer
- type ContainsProblematicWordsRequest
- func (*ContainsProblematicWordsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ContainsProblematicWordsRequest) GetContent() string
- func (*ContainsProblematicWordsRequest) ProtoMessage()
- func (x *ContainsProblematicWordsRequest) ProtoReflect() protoreflect.Message
- func (x *ContainsProblematicWordsRequest) Reset()
- func (x *ContainsProblematicWordsRequest) String() string
- type ContainsProblematicWordsResponse
- func (*ContainsProblematicWordsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ContainsProblematicWordsResponse) GetContains() bool
- func (*ContainsProblematicWordsResponse) ProtoMessage()
- func (x *ContainsProblematicWordsResponse) ProtoReflect() protoreflect.Message
- func (x *ContainsProblematicWordsResponse) Reset()
- func (x *ContainsProblematicWordsResponse) String() string
- type UnimplementedClassificationServiceServer
- func (UnimplementedClassificationServiceServer) CheckForWordsInPost(context.Context, *CheckForWordsInPostRequest) (*CheckForWordsInPostResponse, error)
- func (UnimplementedClassificationServiceServer) ContainsProblematicWords(context.Context, *ContainsProblematicWordsRequest) (*ContainsProblematicWordsResponse, error)
- type UnsafeClassificationServiceServer
Constants ¶
This section is empty.
Variables ¶
var ClassificationService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "classification.v1.ClassificationService", HandlerType: (*ClassificationServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "CheckForWordsInPost", Handler: _ClassificationService_CheckForWordsInPost_Handler, }, { MethodName: "ContainsProblematicWords", Handler: _ClassificationService_ContainsProblematicWords_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "classification/v1/classification.proto", }
ClassificationService_ServiceDesc is the grpc.ServiceDesc for ClassificationService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_classification_v1_classification_proto protoreflect.FileDescriptor
Functions ¶
func RegisterClassificationServiceServer ¶
func RegisterClassificationServiceServer(s grpc.ServiceRegistrar, srv ClassificationServiceServer)
Types ¶
type CheckForWordsInPostRequest ¶ added in v0.2.88
type CheckForWordsInPostRequest struct { PostId string `protobuf:"bytes,1,opt,name=post_id,json=postId,proto3" json:"post_id,omitempty"` Words []string `protobuf:"bytes,2,rep,name=words,proto3" json:"words,omitempty"` // contains filtered or unexported fields }
func (*CheckForWordsInPostRequest) Descriptor
deprecated
added in
v0.2.88
func (*CheckForWordsInPostRequest) Descriptor() ([]byte, []int)
Deprecated: Use CheckForWordsInPostRequest.ProtoReflect.Descriptor instead.
func (*CheckForWordsInPostRequest) GetPostId ¶ added in v0.2.88
func (x *CheckForWordsInPostRequest) GetPostId() string
func (*CheckForWordsInPostRequest) GetWords ¶ added in v0.2.88
func (x *CheckForWordsInPostRequest) GetWords() []string
func (*CheckForWordsInPostRequest) ProtoMessage ¶ added in v0.2.88
func (*CheckForWordsInPostRequest) ProtoMessage()
func (*CheckForWordsInPostRequest) ProtoReflect ¶ added in v0.2.88
func (x *CheckForWordsInPostRequest) ProtoReflect() protoreflect.Message
func (*CheckForWordsInPostRequest) Reset ¶ added in v0.2.88
func (x *CheckForWordsInPostRequest) Reset()
func (*CheckForWordsInPostRequest) String ¶ added in v0.2.88
func (x *CheckForWordsInPostRequest) String() string
type CheckForWordsInPostResponse ¶ added in v0.2.88
type CheckForWordsInPostResponse struct { Words map[string]bool `` /* 152-byte string literal not displayed */ // contains filtered or unexported fields }
func (*CheckForWordsInPostResponse) Descriptor
deprecated
added in
v0.2.88
func (*CheckForWordsInPostResponse) Descriptor() ([]byte, []int)
Deprecated: Use CheckForWordsInPostResponse.ProtoReflect.Descriptor instead.
func (*CheckForWordsInPostResponse) GetWords ¶ added in v0.2.88
func (x *CheckForWordsInPostResponse) GetWords() map[string]bool
func (*CheckForWordsInPostResponse) ProtoMessage ¶ added in v0.2.88
func (*CheckForWordsInPostResponse) ProtoMessage()
func (*CheckForWordsInPostResponse) ProtoReflect ¶ added in v0.2.88
func (x *CheckForWordsInPostResponse) ProtoReflect() protoreflect.Message
func (*CheckForWordsInPostResponse) Reset ¶ added in v0.2.88
func (x *CheckForWordsInPostResponse) Reset()
func (*CheckForWordsInPostResponse) String ¶ added in v0.2.88
func (x *CheckForWordsInPostResponse) String() string
type ClassificationServiceClient ¶
type ClassificationServiceClient interface { CheckForWordsInPost(ctx context.Context, in *CheckForWordsInPostRequest, opts ...grpc.CallOption) (*CheckForWordsInPostResponse, error) ContainsProblematicWords(ctx context.Context, in *ContainsProblematicWordsRequest, opts ...grpc.CallOption) (*ContainsProblematicWordsResponse, error) }
ClassificationServiceClient is the client API for ClassificationService 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 NewClassificationServiceClient ¶
func NewClassificationServiceClient(cc grpc.ClientConnInterface) ClassificationServiceClient
type ClassificationServiceServer ¶
type ClassificationServiceServer interface { CheckForWordsInPost(context.Context, *CheckForWordsInPostRequest) (*CheckForWordsInPostResponse, error) ContainsProblematicWords(context.Context, *ContainsProblematicWordsRequest) (*ContainsProblematicWordsResponse, error) // contains filtered or unexported methods }
ClassificationServiceServer is the server API for ClassificationService service. All implementations must embed UnimplementedClassificationServiceServer for forward compatibility
type ContainsProblematicWordsRequest ¶ added in v0.2.90
type ContainsProblematicWordsRequest struct { Content string `protobuf:"bytes,1,opt,name=content,proto3" json:"content,omitempty"` // contains filtered or unexported fields }
func (*ContainsProblematicWordsRequest) Descriptor
deprecated
added in
v0.2.90
func (*ContainsProblematicWordsRequest) Descriptor() ([]byte, []int)
Deprecated: Use ContainsProblematicWordsRequest.ProtoReflect.Descriptor instead.
func (*ContainsProblematicWordsRequest) GetContent ¶ added in v0.2.90
func (x *ContainsProblematicWordsRequest) GetContent() string
func (*ContainsProblematicWordsRequest) ProtoMessage ¶ added in v0.2.90
func (*ContainsProblematicWordsRequest) ProtoMessage()
func (*ContainsProblematicWordsRequest) ProtoReflect ¶ added in v0.2.90
func (x *ContainsProblematicWordsRequest) ProtoReflect() protoreflect.Message
func (*ContainsProblematicWordsRequest) Reset ¶ added in v0.2.90
func (x *ContainsProblematicWordsRequest) Reset()
func (*ContainsProblematicWordsRequest) String ¶ added in v0.2.90
func (x *ContainsProblematicWordsRequest) String() string
type ContainsProblematicWordsResponse ¶ added in v0.2.90
type ContainsProblematicWordsResponse struct { Contains bool `protobuf:"varint,1,opt,name=contains,proto3" json:"contains,omitempty"` // contains filtered or unexported fields }
func (*ContainsProblematicWordsResponse) Descriptor
deprecated
added in
v0.2.90
func (*ContainsProblematicWordsResponse) Descriptor() ([]byte, []int)
Deprecated: Use ContainsProblematicWordsResponse.ProtoReflect.Descriptor instead.
func (*ContainsProblematicWordsResponse) GetContains ¶ added in v0.2.90
func (x *ContainsProblematicWordsResponse) GetContains() bool
func (*ContainsProblematicWordsResponse) ProtoMessage ¶ added in v0.2.90
func (*ContainsProblematicWordsResponse) ProtoMessage()
func (*ContainsProblematicWordsResponse) ProtoReflect ¶ added in v0.2.90
func (x *ContainsProblematicWordsResponse) ProtoReflect() protoreflect.Message
func (*ContainsProblematicWordsResponse) Reset ¶ added in v0.2.90
func (x *ContainsProblematicWordsResponse) Reset()
func (*ContainsProblematicWordsResponse) String ¶ added in v0.2.90
func (x *ContainsProblematicWordsResponse) String() string
type UnimplementedClassificationServiceServer ¶
type UnimplementedClassificationServiceServer struct { }
UnimplementedClassificationServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedClassificationServiceServer) CheckForWordsInPost ¶ added in v0.2.88
func (UnimplementedClassificationServiceServer) CheckForWordsInPost(context.Context, *CheckForWordsInPostRequest) (*CheckForWordsInPostResponse, error)
func (UnimplementedClassificationServiceServer) ContainsProblematicWords ¶ added in v0.2.90
func (UnimplementedClassificationServiceServer) ContainsProblematicWords(context.Context, *ContainsProblematicWordsRequest) (*ContainsProblematicWordsResponse, error)
type UnsafeClassificationServiceServer ¶
type UnsafeClassificationServiceServer interface {
// contains filtered or unexported methods
}
UnsafeClassificationServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ClassificationServiceServer will result in compilation errors.