Documentation ¶
Index ¶
- Variables
- func RegisterBuguObfusionServer(s grpc.ServiceRegistrar, srv BuguObfusionServer)
- type BuguObfusionClient
- type BuguObfusionServer
- type ObfusionReply
- func (*ObfusionReply) Descriptor() ([]byte, []int)deprecated
- func (x *ObfusionReply) GetData() [][]byte
- func (x *ObfusionReply) GetSize() uint32
- func (*ObfusionReply) ProtoMessage()
- func (x *ObfusionReply) ProtoReflect() protoreflect.Message
- func (x *ObfusionReply) Reset()
- func (x *ObfusionReply) String() string
- func (m *ObfusionReply) Validate() error
- func (m *ObfusionReply) ValidateAll() error
- type ObfusionReplyMultiError
- type ObfusionReplyValidationError
- func (e ObfusionReplyValidationError) Cause() error
- func (e ObfusionReplyValidationError) Error() string
- func (e ObfusionReplyValidationError) ErrorName() string
- func (e ObfusionReplyValidationError) Field() string
- func (e ObfusionReplyValidationError) Key() bool
- func (e ObfusionReplyValidationError) Reason() string
- type ObfusionRequest
- func (*ObfusionRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ObfusionRequest) GetData() [][]byte
- func (x *ObfusionRequest) GetSize() uint32
- func (*ObfusionRequest) ProtoMessage()
- func (x *ObfusionRequest) ProtoReflect() protoreflect.Message
- func (x *ObfusionRequest) Reset()
- func (x *ObfusionRequest) String() string
- func (m *ObfusionRequest) Validate() error
- func (m *ObfusionRequest) ValidateAll() error
- type ObfusionRequestMultiError
- type ObfusionRequestValidationError
- func (e ObfusionRequestValidationError) Cause() error
- func (e ObfusionRequestValidationError) Error() string
- func (e ObfusionRequestValidationError) ErrorName() string
- func (e ObfusionRequestValidationError) Field() string
- func (e ObfusionRequestValidationError) Key() bool
- func (e ObfusionRequestValidationError) Reason() string
- type UnimplementedBuguObfusionServer
- type UnsafeBuguObfusionServer
Constants ¶
This section is empty.
Variables ¶
var BuguObfusion_ServiceDesc = grpc.ServiceDesc{ ServiceName: "bugu_obfusion.service.v1.BuguObfusion", HandlerType: (*BuguObfusionServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Obfusion", Handler: _BuguObfusion_Obfusion_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "v1/bugu_obfusion.proto", }
BuguObfusion_ServiceDesc is the grpc.ServiceDesc for BuguObfusion 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_bugu_obfusion_proto protoreflect.FileDescriptor
Functions ¶
func RegisterBuguObfusionServer ¶
func RegisterBuguObfusionServer(s grpc.ServiceRegistrar, srv BuguObfusionServer)
Types ¶
type BuguObfusionClient ¶
type BuguObfusionClient interface {
Obfusion(ctx context.Context, in *ObfusionRequest, opts ...grpc.CallOption) (*ObfusionReply, error)
}
BuguObfusionClient is the client API for BuguObfusion 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 NewBuguObfusionClient ¶
func NewBuguObfusionClient(cc grpc.ClientConnInterface) BuguObfusionClient
type BuguObfusionServer ¶
type BuguObfusionServer interface { Obfusion(context.Context, *ObfusionRequest) (*ObfusionReply, error) // contains filtered or unexported methods }
BuguObfusionServer is the server API for BuguObfusion service. All implementations must embed UnimplementedBuguObfusionServer for forward compatibility
type ObfusionReply ¶
type ObfusionReply 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 (*ObfusionReply) Descriptor
deprecated
func (*ObfusionReply) Descriptor() ([]byte, []int)
Deprecated: Use ObfusionReply.ProtoReflect.Descriptor instead.
func (*ObfusionReply) GetData ¶
func (x *ObfusionReply) GetData() [][]byte
func (*ObfusionReply) GetSize ¶
func (x *ObfusionReply) GetSize() uint32
func (*ObfusionReply) ProtoMessage ¶
func (*ObfusionReply) ProtoMessage()
func (*ObfusionReply) ProtoReflect ¶
func (x *ObfusionReply) ProtoReflect() protoreflect.Message
func (*ObfusionReply) Reset ¶
func (x *ObfusionReply) Reset()
func (*ObfusionReply) String ¶
func (x *ObfusionReply) String() string
func (*ObfusionReply) Validate ¶
func (m *ObfusionReply) Validate() error
Validate checks the field values on ObfusionReply 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 (*ObfusionReply) ValidateAll ¶
func (m *ObfusionReply) ValidateAll() error
ValidateAll checks the field values on ObfusionReply 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 ObfusionReplyMultiError, or nil if none found.
type ObfusionReplyMultiError ¶
type ObfusionReplyMultiError []error
ObfusionReplyMultiError is an error wrapping multiple validation errors returned by ObfusionReply.ValidateAll() if the designated constraints aren't met.
func (ObfusionReplyMultiError) AllErrors ¶
func (m ObfusionReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ObfusionReplyMultiError) Error ¶
func (m ObfusionReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ObfusionReplyValidationError ¶
type ObfusionReplyValidationError struct {
// contains filtered or unexported fields
}
ObfusionReplyValidationError is the validation error returned by ObfusionReply.Validate if the designated constraints aren't met.
func (ObfusionReplyValidationError) Cause ¶
func (e ObfusionReplyValidationError) Cause() error
Cause function returns cause value.
func (ObfusionReplyValidationError) Error ¶
func (e ObfusionReplyValidationError) Error() string
Error satisfies the builtin error interface
func (ObfusionReplyValidationError) ErrorName ¶
func (e ObfusionReplyValidationError) ErrorName() string
ErrorName returns error name.
func (ObfusionReplyValidationError) Field ¶
func (e ObfusionReplyValidationError) Field() string
Field function returns field value.
func (ObfusionReplyValidationError) Key ¶
func (e ObfusionReplyValidationError) Key() bool
Key function returns key value.
func (ObfusionReplyValidationError) Reason ¶
func (e ObfusionReplyValidationError) Reason() string
Reason function returns reason value.
type ObfusionRequest ¶
type ObfusionRequest 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 (*ObfusionRequest) Descriptor
deprecated
func (*ObfusionRequest) Descriptor() ([]byte, []int)
Deprecated: Use ObfusionRequest.ProtoReflect.Descriptor instead.
func (*ObfusionRequest) GetData ¶
func (x *ObfusionRequest) GetData() [][]byte
func (*ObfusionRequest) GetSize ¶
func (x *ObfusionRequest) GetSize() uint32
func (*ObfusionRequest) ProtoMessage ¶
func (*ObfusionRequest) ProtoMessage()
func (*ObfusionRequest) ProtoReflect ¶
func (x *ObfusionRequest) ProtoReflect() protoreflect.Message
func (*ObfusionRequest) Reset ¶
func (x *ObfusionRequest) Reset()
func (*ObfusionRequest) String ¶
func (x *ObfusionRequest) String() string
func (*ObfusionRequest) Validate ¶
func (m *ObfusionRequest) Validate() error
Validate checks the field values on ObfusionRequest 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 (*ObfusionRequest) ValidateAll ¶
func (m *ObfusionRequest) ValidateAll() error
ValidateAll checks the field values on ObfusionRequest 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 ObfusionRequestMultiError, or nil if none found.
type ObfusionRequestMultiError ¶
type ObfusionRequestMultiError []error
ObfusionRequestMultiError is an error wrapping multiple validation errors returned by ObfusionRequest.ValidateAll() if the designated constraints aren't met.
func (ObfusionRequestMultiError) AllErrors ¶
func (m ObfusionRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ObfusionRequestMultiError) Error ¶
func (m ObfusionRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ObfusionRequestValidationError ¶
type ObfusionRequestValidationError struct {
// contains filtered or unexported fields
}
ObfusionRequestValidationError is the validation error returned by ObfusionRequest.Validate if the designated constraints aren't met.
func (ObfusionRequestValidationError) Cause ¶
func (e ObfusionRequestValidationError) Cause() error
Cause function returns cause value.
func (ObfusionRequestValidationError) Error ¶
func (e ObfusionRequestValidationError) Error() string
Error satisfies the builtin error interface
func (ObfusionRequestValidationError) ErrorName ¶
func (e ObfusionRequestValidationError) ErrorName() string
ErrorName returns error name.
func (ObfusionRequestValidationError) Field ¶
func (e ObfusionRequestValidationError) Field() string
Field function returns field value.
func (ObfusionRequestValidationError) Key ¶
func (e ObfusionRequestValidationError) Key() bool
Key function returns key value.
func (ObfusionRequestValidationError) Reason ¶
func (e ObfusionRequestValidationError) Reason() string
Reason function returns reason value.
type UnimplementedBuguObfusionServer ¶
type UnimplementedBuguObfusionServer struct { }
UnimplementedBuguObfusionServer must be embedded to have forward compatible implementations.
func (UnimplementedBuguObfusionServer) Obfusion ¶
func (UnimplementedBuguObfusionServer) Obfusion(context.Context, *ObfusionRequest) (*ObfusionReply, error)
type UnsafeBuguObfusionServer ¶
type UnsafeBuguObfusionServer interface {
// contains filtered or unexported methods
}
UnsafeBuguObfusionServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to BuguObfusionServer will result in compilation errors.