Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterServiceServer(s grpc.ServiceRegistrar, srv ServiceServer)
- type EncryptRequest
- func (*EncryptRequest) Descriptor() ([]byte, []int)deprecated
- func (x *EncryptRequest) GetAppId() string
- func (x *EncryptRequest) GetKeyId() string
- func (x *EncryptRequest) GetMode() string
- func (x *EncryptRequest) GetPadding() string
- func (x *EncryptRequest) GetPlainText() []byte
- func (x *EncryptRequest) GetTransId() string
- func (*EncryptRequest) ProtoMessage()
- func (x *EncryptRequest) ProtoReflect() protoreflect.Message
- func (x *EncryptRequest) Reset()
- func (x *EncryptRequest) String() string
- type EncryptResponse
- type ServiceClient
- type ServiceServer
- type StatusRequest
- type StatusResponse
- func (*StatusResponse) Descriptor() ([]byte, []int)deprecated
- func (x *StatusResponse) GetMessage() string
- func (x *StatusResponse) GetStatus() uint64
- func (*StatusResponse) ProtoMessage()
- func (x *StatusResponse) ProtoReflect() protoreflect.Message
- func (x *StatusResponse) Reset()
- func (x *StatusResponse) String() string
- type UnimplementedServiceServer
- type UnsafeServiceServer
Constants ¶
const ( Service_Status_FullMethodName = "/Service/Status" Service_Encrypt_FullMethodName = "/Service/Encrypt" )
Variables ¶
var File_service_proto protoreflect.FileDescriptor
var Service_ServiceDesc = grpc.ServiceDesc{ ServiceName: "Service", HandlerType: (*ServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Status", Handler: _Service_Status_Handler, }, { MethodName: "Encrypt", Handler: _Service_Encrypt_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "service.proto", }
Service_ServiceDesc is the grpc.ServiceDesc for Service service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterServiceServer ¶
func RegisterServiceServer(s grpc.ServiceRegistrar, srv ServiceServer)
Types ¶
type EncryptRequest ¶
type EncryptRequest struct { TransId string `protobuf:"bytes,1,opt,name=transId,proto3" json:"transId,omitempty"` AppId string `protobuf:"bytes,2,opt,name=appId,proto3" json:"appId,omitempty"` KeyId string `protobuf:"bytes,3,opt,name=keyId,proto3" json:"keyId,omitempty"` Mode string `protobuf:"bytes,4,opt,name=mode,proto3" json:"mode,omitempty"` Padding string `protobuf:"bytes,5,opt,name=padding,proto3" json:"padding,omitempty"` PlainText []byte `protobuf:"bytes,6,opt,name=plainText,proto3" json:"plainText,omitempty"` // contains filtered or unexported fields }
func (*EncryptRequest) Descriptor
deprecated
func (*EncryptRequest) Descriptor() ([]byte, []int)
Deprecated: Use EncryptRequest.ProtoReflect.Descriptor instead.
func (*EncryptRequest) GetAppId ¶
func (x *EncryptRequest) GetAppId() string
func (*EncryptRequest) GetKeyId ¶
func (x *EncryptRequest) GetKeyId() string
func (*EncryptRequest) GetMode ¶
func (x *EncryptRequest) GetMode() string
func (*EncryptRequest) GetPadding ¶
func (x *EncryptRequest) GetPadding() string
func (*EncryptRequest) GetPlainText ¶
func (x *EncryptRequest) GetPlainText() []byte
func (*EncryptRequest) GetTransId ¶
func (x *EncryptRequest) GetTransId() string
func (*EncryptRequest) ProtoMessage ¶
func (*EncryptRequest) ProtoMessage()
func (*EncryptRequest) ProtoReflect ¶
func (x *EncryptRequest) ProtoReflect() protoreflect.Message
func (*EncryptRequest) Reset ¶
func (x *EncryptRequest) Reset()
func (*EncryptRequest) String ¶
func (x *EncryptRequest) String() string
type EncryptResponse ¶
type EncryptResponse struct { Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*EncryptResponse) Descriptor
deprecated
func (*EncryptResponse) Descriptor() ([]byte, []int)
Deprecated: Use EncryptResponse.ProtoReflect.Descriptor instead.
func (*EncryptResponse) GetData ¶
func (x *EncryptResponse) GetData() []byte
func (*EncryptResponse) ProtoMessage ¶
func (*EncryptResponse) ProtoMessage()
func (*EncryptResponse) ProtoReflect ¶
func (x *EncryptResponse) ProtoReflect() protoreflect.Message
func (*EncryptResponse) Reset ¶
func (x *EncryptResponse) Reset()
func (*EncryptResponse) String ¶
func (x *EncryptResponse) String() string
type ServiceClient ¶
type ServiceClient interface { // unary RPC Status(ctx context.Context, in *StatusRequest, opts ...grpc.CallOption) (*StatusResponse, error) // unary RPC Encrypt(ctx context.Context, in *EncryptRequest, opts ...grpc.CallOption) (*EncryptResponse, error) }
ServiceClient is the client API for Service 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 NewServiceClient ¶
func NewServiceClient(cc grpc.ClientConnInterface) ServiceClient
type ServiceServer ¶
type ServiceServer interface { // unary RPC Status(context.Context, *StatusRequest) (*StatusResponse, error) // unary RPC Encrypt(context.Context, *EncryptRequest) (*EncryptResponse, error) // contains filtered or unexported methods }
ServiceServer is the server API for Service service. All implementations must embed UnimplementedServiceServer for forward compatibility
type StatusRequest ¶
type StatusRequest struct {
// contains filtered or unexported fields
}
func (*StatusRequest) Descriptor
deprecated
func (*StatusRequest) Descriptor() ([]byte, []int)
Deprecated: Use StatusRequest.ProtoReflect.Descriptor instead.
func (*StatusRequest) ProtoMessage ¶
func (*StatusRequest) ProtoMessage()
func (*StatusRequest) ProtoReflect ¶
func (x *StatusRequest) ProtoReflect() protoreflect.Message
func (*StatusRequest) Reset ¶
func (x *StatusRequest) Reset()
func (*StatusRequest) String ¶
func (x *StatusRequest) String() string
type StatusResponse ¶
type StatusResponse struct { Status uint64 `protobuf:"varint,1,opt,name=status,proto3" json:"status,omitempty"` Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` // contains filtered or unexported fields }
func (*StatusResponse) Descriptor
deprecated
func (*StatusResponse) Descriptor() ([]byte, []int)
Deprecated: Use StatusResponse.ProtoReflect.Descriptor instead.
func (*StatusResponse) GetMessage ¶
func (x *StatusResponse) GetMessage() string
func (*StatusResponse) GetStatus ¶
func (x *StatusResponse) GetStatus() uint64
func (*StatusResponse) ProtoMessage ¶
func (*StatusResponse) ProtoMessage()
func (*StatusResponse) ProtoReflect ¶
func (x *StatusResponse) ProtoReflect() protoreflect.Message
func (*StatusResponse) Reset ¶
func (x *StatusResponse) Reset()
func (*StatusResponse) String ¶
func (x *StatusResponse) String() string
type UnimplementedServiceServer ¶
type UnimplementedServiceServer struct { }
UnimplementedServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedServiceServer) Encrypt ¶
func (UnimplementedServiceServer) Encrypt(context.Context, *EncryptRequest) (*EncryptResponse, error)
func (UnimplementedServiceServer) Status ¶
func (UnimplementedServiceServer) Status(context.Context, *StatusRequest) (*StatusResponse, error)
type UnsafeServiceServer ¶
type UnsafeServiceServer interface {
// contains filtered or unexported methods
}
UnsafeServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ServiceServer will result in compilation errors.