v1

package
v0.3.54 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
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)

View Source
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 (*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 (*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.

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 (*ContainsProblematicWordsRequest) Reset added in v0.2.90

func (*ContainsProblematicWordsRequest) String added in v0.2.90

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 (*ContainsProblematicWordsResponse) Reset added in v0.2.90

func (*ContainsProblematicWordsResponse) String added in v0.2.90

type UnimplementedClassificationServiceServer

type UnimplementedClassificationServiceServer struct {
}

UnimplementedClassificationServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedClassificationServiceServer) CheckForWordsInPost added in v0.2.88

func (UnimplementedClassificationServiceServer) ContainsProblematicWords added in v0.2.90

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.

Jump to

Keyboard shortcuts

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