Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var File_interface_proto protoreflect.FileDescriptor
var SecOps_ServiceDesc = grpc.ServiceDesc{ ServiceName: "SecOps.SecOps", HandlerType: (*SecOpsServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "ping", Handler: _SecOps_Ping_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "interface.proto", }
SecOps_ServiceDesc is the grpc.ServiceDesc for SecOps service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterSecOpsServer ¶
func RegisterSecOpsServer(s grpc.ServiceRegistrar, srv SecOpsServer)
Types ¶
type Reply ¶
type Reply struct { Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"` // contains filtered or unexported fields }
func (*Reply) Descriptor
deprecated
func (*Reply) GetSuccess ¶
func (*Reply) ProtoMessage ¶
func (*Reply) ProtoMessage()
func (*Reply) ProtoReflect ¶
func (x *Reply) ProtoReflect() protoreflect.Message
type SecOpsClient ¶
type SecOpsClient interface {
Ping(ctx context.Context, in *Share, opts ...grpc.CallOption) (*Reply, error)
}
SecOpsClient is the client API for SecOps 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 NewSecOpsClient ¶
func NewSecOpsClient(cc grpc.ClientConnInterface) SecOpsClient
type SecOpsServer ¶
type SecOpsServer interface { Ping(context.Context, *Share) (*Reply, error) // contains filtered or unexported methods }
SecOpsServer is the server API for SecOps service. All implementations must embed UnimplementedSecOpsServer for forward compatibility
type Share ¶
type Share struct { // contains filtered or unexported fields }
func (*Share) Descriptor
deprecated
func (*Share) ProtoMessage ¶
func (*Share) ProtoMessage()
func (*Share) ProtoReflect ¶
func (x *Share) ProtoReflect() protoreflect.Message
type UnimplementedSecOpsServer ¶
type UnimplementedSecOpsServer struct { }
UnimplementedSecOpsServer must be embedded to have forward compatible implementations.
type UnsafeSecOpsServer ¶
type UnsafeSecOpsServer interface {
// contains filtered or unexported methods
}
UnsafeSecOpsServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to SecOpsServer will result in compilation errors.