secops

package
v0.0.0-...-a7194ae Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_interface_proto protoreflect.FileDescriptor
View Source
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) Descriptor() ([]byte, []int)

Deprecated: Use Reply.ProtoReflect.Descriptor instead.

func (*Reply) GetSuccess

func (x *Reply) GetSuccess() bool

func (*Reply) ProtoMessage

func (*Reply) ProtoMessage()

func (*Reply) ProtoReflect

func (x *Reply) ProtoReflect() protoreflect.Message

func (*Reply) Reset

func (x *Reply) Reset()

func (*Reply) String

func (x *Reply) String() string

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 {
	Share int64 `protobuf:"varint,1,opt,name=share,proto3" json:"share,omitempty"`
	// contains filtered or unexported fields
}

func (*Share) Descriptor deprecated

func (*Share) Descriptor() ([]byte, []int)

Deprecated: Use Share.ProtoReflect.Descriptor instead.

func (*Share) GetShare

func (x *Share) GetShare() int64

func (*Share) ProtoMessage

func (*Share) ProtoMessage()

func (*Share) ProtoReflect

func (x *Share) ProtoReflect() protoreflect.Message

func (*Share) Reset

func (x *Share) Reset()

func (*Share) String

func (x *Share) String() string

type UnimplementedSecOpsServer

type UnimplementedSecOpsServer struct {
}

UnimplementedSecOpsServer must be embedded to have forward compatible implementations.

func (UnimplementedSecOpsServer) Ping

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.

Jump to

Keyboard shortcuts

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