v1

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2022 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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

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

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

Cause function returns cause value.

func (ObfusionReplyValidationError) Error

Error satisfies the builtin error interface

func (ObfusionReplyValidationError) ErrorName

func (e ObfusionReplyValidationError) ErrorName() string

ErrorName returns error name.

func (ObfusionReplyValidationError) Field

Field function returns field value.

func (ObfusionReplyValidationError) Key

Key function returns key value.

func (ObfusionReplyValidationError) Reason

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

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

Cause function returns cause value.

func (ObfusionRequestValidationError) Error

Error satisfies the builtin error interface

func (ObfusionRequestValidationError) ErrorName

func (e ObfusionRequestValidationError) ErrorName() string

ErrorName returns error name.

func (ObfusionRequestValidationError) Field

Field function returns field value.

func (ObfusionRequestValidationError) Key

Key function returns key value.

func (ObfusionRequestValidationError) Reason

Reason function returns reason value.

type UnimplementedBuguObfusionServer

type UnimplementedBuguObfusionServer struct {
}

UnimplementedBuguObfusionServer must be embedded to have forward compatible implementations.

func (UnimplementedBuguObfusionServer) Obfusion

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.

Jump to

Keyboard shortcuts

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