Documentation ¶
Index ¶
- Variables
- func RegisterBuguDetectServer(s grpc.ServiceRegistrar, srv BuguDetectServer)
- type BuguDetectClient
- type BuguDetectServer
- type DetectReply
- func (*DetectReply) Descriptor() ([]byte, []int)deprecated
- func (x *DetectReply) GetType() Type
- func (*DetectReply) ProtoMessage()
- func (x *DetectReply) ProtoReflect() protoreflect.Message
- func (x *DetectReply) Reset()
- func (x *DetectReply) String() string
- func (m *DetectReply) Validate() error
- func (m *DetectReply) ValidateAll() error
- type DetectReplyMultiError
- type DetectReplyValidationError
- func (e DetectReplyValidationError) Cause() error
- func (e DetectReplyValidationError) Error() string
- func (e DetectReplyValidationError) ErrorName() string
- func (e DetectReplyValidationError) Field() string
- func (e DetectReplyValidationError) Key() bool
- func (e DetectReplyValidationError) Reason() string
- type DetectRequest
- func (*DetectRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DetectRequest) GetData() [][]byte
- func (x *DetectRequest) GetSize() uint32
- func (*DetectRequest) ProtoMessage()
- func (x *DetectRequest) ProtoReflect() protoreflect.Message
- func (x *DetectRequest) Reset()
- func (x *DetectRequest) String() string
- func (m *DetectRequest) Validate() error
- func (m *DetectRequest) ValidateAll() error
- type DetectRequestMultiError
- type DetectRequestValidationError
- func (e DetectRequestValidationError) Cause() error
- func (e DetectRequestValidationError) Error() string
- func (e DetectRequestValidationError) ErrorName() string
- func (e DetectRequestValidationError) Field() string
- func (e DetectRequestValidationError) Key() bool
- func (e DetectRequestValidationError) Reason() string
- type Type
- type UnimplementedBuguDetectServer
- type UnsafeBuguDetectServer
Constants ¶
This section is empty.
Variables ¶
var ( Type_name = map[int32]string{ 0: "TYPE_ADPOSHEL", 1: "TYPE_AGENT", 2: "TYPE_ALLAPLE", 3: "TYPE_AMONETIZE", 4: "TYPE_ANDROM", 5: "TYPE_AUTORUN", 6: "TYPE_BROWSE_FOX", 7: "TYPE_DINWOD", 8: "TYPE_ELEX", 9: "TYPE_EXPIRO", 10: "TYPE_FASONG", 11: "TYPE_HACK_KMS", 12: "TYPE_HLUX", 13: "TYPE_INJECTOR", 14: "TYPE_INSTALL_CORE", 15: "TYPE_MULTI_Plug", 16: "TYPE_NEOREKLAMI", 17: "TYPE_NESHTA", 18: "TYPE_OTHER", 19: "TYPE_REGRUN", 20: "TYPE_SALITY", 21: "TYPE_SNARASITE", 22: "TYPE_STABTINKO", 23: "TYPE_VBA", 24: "TYPE_VBKRYPT", 25: "TYPE_VILSEL", } Type_value = map[string]int32{ "TYPE_ADPOSHEL": 0, "TYPE_AGENT": 1, "TYPE_ALLAPLE": 2, "TYPE_AMONETIZE": 3, "TYPE_ANDROM": 4, "TYPE_AUTORUN": 5, "TYPE_BROWSE_FOX": 6, "TYPE_DINWOD": 7, "TYPE_ELEX": 8, "TYPE_EXPIRO": 9, "TYPE_FASONG": 10, "TYPE_HACK_KMS": 11, "TYPE_HLUX": 12, "TYPE_INJECTOR": 13, "TYPE_INSTALL_CORE": 14, "TYPE_MULTI_Plug": 15, "TYPE_NEOREKLAMI": 16, "TYPE_NESHTA": 17, "TYPE_OTHER": 18, "TYPE_REGRUN": 19, "TYPE_SALITY": 20, "TYPE_SNARASITE": 21, "TYPE_STABTINKO": 22, "TYPE_VBA": 23, "TYPE_VBKRYPT": 24, "TYPE_VILSEL": 25, } )
Enum value maps for Type.
var BuguDetect_ServiceDesc = grpc.ServiceDesc{ ServiceName: "bugu_detect.service.v1.BuguDetect", HandlerType: (*BuguDetectServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Detect", Handler: _BuguDetect_Detect_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "v1/detect.proto", }
BuguDetect_ServiceDesc is the grpc.ServiceDesc for BuguDetect service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_v1_detect_proto protoreflect.FileDescriptor
Functions ¶
func RegisterBuguDetectServer ¶
func RegisterBuguDetectServer(s grpc.ServiceRegistrar, srv BuguDetectServer)
Types ¶
type BuguDetectClient ¶
type BuguDetectClient interface {
Detect(ctx context.Context, in *DetectRequest, opts ...grpc.CallOption) (*DetectReply, error)
}
BuguDetectClient is the client API for BuguDetect 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 NewBuguDetectClient ¶
func NewBuguDetectClient(cc grpc.ClientConnInterface) BuguDetectClient
type BuguDetectServer ¶
type BuguDetectServer interface { Detect(context.Context, *DetectRequest) (*DetectReply, error) // contains filtered or unexported methods }
BuguDetectServer is the server API for BuguDetect service. All implementations must embed UnimplementedBuguDetectServer for forward compatibility
type DetectReply ¶
type DetectReply struct { Type Type `protobuf:"varint,1,opt,name=type,proto3,enum=bugu_detect.service.v1.Type" json:"type,omitempty"` // contains filtered or unexported fields }
func (*DetectReply) Descriptor
deprecated
func (*DetectReply) Descriptor() ([]byte, []int)
Deprecated: Use DetectReply.ProtoReflect.Descriptor instead.
func (*DetectReply) GetType ¶
func (x *DetectReply) GetType() Type
func (*DetectReply) ProtoMessage ¶
func (*DetectReply) ProtoMessage()
func (*DetectReply) ProtoReflect ¶
func (x *DetectReply) ProtoReflect() protoreflect.Message
func (*DetectReply) Reset ¶
func (x *DetectReply) Reset()
func (*DetectReply) String ¶
func (x *DetectReply) String() string
func (*DetectReply) Validate ¶
func (m *DetectReply) Validate() error
Validate checks the field values on DetectReply with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*DetectReply) ValidateAll ¶
func (m *DetectReply) ValidateAll() error
ValidateAll checks the field values on DetectReply with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in DetectReplyMultiError, or nil if none found.
type DetectReplyMultiError ¶
type DetectReplyMultiError []error
DetectReplyMultiError is an error wrapping multiple validation errors returned by DetectReply.ValidateAll() if the designated constraints aren't met.
func (DetectReplyMultiError) AllErrors ¶
func (m DetectReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (DetectReplyMultiError) Error ¶
func (m DetectReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type DetectReplyValidationError ¶
type DetectReplyValidationError struct {
// contains filtered or unexported fields
}
DetectReplyValidationError is the validation error returned by DetectReply.Validate if the designated constraints aren't met.
func (DetectReplyValidationError) Cause ¶
func (e DetectReplyValidationError) Cause() error
Cause function returns cause value.
func (DetectReplyValidationError) Error ¶
func (e DetectReplyValidationError) Error() string
Error satisfies the builtin error interface
func (DetectReplyValidationError) ErrorName ¶
func (e DetectReplyValidationError) ErrorName() string
ErrorName returns error name.
func (DetectReplyValidationError) Field ¶
func (e DetectReplyValidationError) Field() string
Field function returns field value.
func (DetectReplyValidationError) Key ¶
func (e DetectReplyValidationError) Key() bool
Key function returns key value.
func (DetectReplyValidationError) Reason ¶
func (e DetectReplyValidationError) Reason() string
Reason function returns reason value.
type DetectRequest ¶
type DetectRequest struct { Data [][]byte `protobuf:"bytes,1,rep,name=data,proto3" json:"data,omitempty"` Size uint32 `protobuf:"varint,2,opt,name=size,proto3" json:"size,omitempty"` // contains filtered or unexported fields }
func (*DetectRequest) Descriptor
deprecated
func (*DetectRequest) Descriptor() ([]byte, []int)
Deprecated: Use DetectRequest.ProtoReflect.Descriptor instead.
func (*DetectRequest) GetData ¶
func (x *DetectRequest) GetData() [][]byte
func (*DetectRequest) GetSize ¶
func (x *DetectRequest) GetSize() uint32
func (*DetectRequest) ProtoMessage ¶
func (*DetectRequest) ProtoMessage()
func (*DetectRequest) ProtoReflect ¶
func (x *DetectRequest) ProtoReflect() protoreflect.Message
func (*DetectRequest) Reset ¶
func (x *DetectRequest) Reset()
func (*DetectRequest) String ¶
func (x *DetectRequest) String() string
func (*DetectRequest) Validate ¶
func (m *DetectRequest) Validate() error
Validate checks the field values on DetectRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*DetectRequest) ValidateAll ¶
func (m *DetectRequest) ValidateAll() error
ValidateAll checks the field values on DetectRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in DetectRequestMultiError, or nil if none found.
type DetectRequestMultiError ¶
type DetectRequestMultiError []error
DetectRequestMultiError is an error wrapping multiple validation errors returned by DetectRequest.ValidateAll() if the designated constraints aren't met.
func (DetectRequestMultiError) AllErrors ¶
func (m DetectRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (DetectRequestMultiError) Error ¶
func (m DetectRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type DetectRequestValidationError ¶
type DetectRequestValidationError struct {
// contains filtered or unexported fields
}
DetectRequestValidationError is the validation error returned by DetectRequest.Validate if the designated constraints aren't met.
func (DetectRequestValidationError) Cause ¶
func (e DetectRequestValidationError) Cause() error
Cause function returns cause value.
func (DetectRequestValidationError) Error ¶
func (e DetectRequestValidationError) Error() string
Error satisfies the builtin error interface
func (DetectRequestValidationError) ErrorName ¶
func (e DetectRequestValidationError) ErrorName() string
ErrorName returns error name.
func (DetectRequestValidationError) Field ¶
func (e DetectRequestValidationError) Field() string
Field function returns field value.
func (DetectRequestValidationError) Key ¶
func (e DetectRequestValidationError) Key() bool
Key function returns key value.
func (DetectRequestValidationError) Reason ¶
func (e DetectRequestValidationError) Reason() string
Reason function returns reason value.
type Type ¶
type Type int32
const ( Type_TYPE_ADPOSHEL Type = 0 Type_TYPE_AGENT Type = 1 Type_TYPE_ALLAPLE Type = 2 Type_TYPE_AMONETIZE Type = 3 Type_TYPE_ANDROM Type = 4 Type_TYPE_AUTORUN Type = 5 Type_TYPE_BROWSE_FOX Type = 6 Type_TYPE_DINWOD Type = 7 Type_TYPE_ELEX Type = 8 Type_TYPE_EXPIRO Type = 9 Type_TYPE_FASONG Type = 10 Type_TYPE_HACK_KMS Type = 11 Type_TYPE_HLUX Type = 12 Type_TYPE_INJECTOR Type = 13 Type_TYPE_INSTALL_CORE Type = 14 Type_TYPE_MULTI_Plug Type = 15 Type_TYPE_NEOREKLAMI Type = 16 Type_TYPE_NESHTA Type = 17 Type_TYPE_OTHER Type = 18 Type_TYPE_REGRUN Type = 19 Type_TYPE_SALITY Type = 20 Type_TYPE_SNARASITE Type = 21 Type_TYPE_STABTINKO Type = 22 Type_TYPE_VBA Type = 23 Type_TYPE_VBKRYPT Type = 24 Type_TYPE_VILSEL Type = 25 )
func (Type) Descriptor ¶
func (Type) Descriptor() protoreflect.EnumDescriptor
func (Type) EnumDescriptor
deprecated
func (Type) Number ¶
func (x Type) Number() protoreflect.EnumNumber
func (Type) Type ¶
func (Type) Type() protoreflect.EnumType
type UnimplementedBuguDetectServer ¶
type UnimplementedBuguDetectServer struct { }
UnimplementedBuguDetectServer must be embedded to have forward compatible implementations.
func (UnimplementedBuguDetectServer) Detect ¶
func (UnimplementedBuguDetectServer) Detect(context.Context, *DetectRequest) (*DetectReply, error)
type UnsafeBuguDetectServer ¶
type UnsafeBuguDetectServer interface {
// contains filtered or unexported methods
}
UnsafeBuguDetectServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to BuguDetectServer will result in compilation errors.