api

package
v0.0.0-...-20093e1 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_api_sniffer_proto protoreflect.FileDescriptor
View Source
var SnifferService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "api.SnifferService",
	HandlerType: (*SnifferServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Send",
			Handler:    _SnifferService_Send_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "api/sniffer.proto",
}

SnifferService_ServiceDesc is the grpc.ServiceDesc for SnifferService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterSnifferServiceServer

func RegisterSnifferServiceServer(s grpc.ServiceRegistrar, srv SnifferServiceServer)

Types

type SendRequest

type SendRequest struct {
	Endpoint  string `protobuf:"bytes,1,opt,name=endpoint,proto3" json:"endpoint,omitempty"`
	Pod       string `protobuf:"bytes,2,opt,name=pod,proto3" json:"pod,omitempty"`
	Node      string `protobuf:"bytes,3,opt,name=node,proto3" json:"node,omitempty"`
	Event     string `protobuf:"bytes,4,opt,name=event,proto3" json:"event,omitempty"`
	Payload   string `protobuf:"bytes,5,opt,name=payload,proto3" json:"payload,omitempty"`
	Timestamp string `protobuf:"bytes,6,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	// contains filtered or unexported fields
}

func (*SendRequest) Descriptor deprecated

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

Deprecated: Use SendRequest.ProtoReflect.Descriptor instead.

func (*SendRequest) GetEndpoint

func (x *SendRequest) GetEndpoint() string

func (*SendRequest) GetEvent

func (x *SendRequest) GetEvent() string

func (*SendRequest) GetNode

func (x *SendRequest) GetNode() string

func (*SendRequest) GetPayload

func (x *SendRequest) GetPayload() string

func (*SendRequest) GetPod

func (x *SendRequest) GetPod() string

func (*SendRequest) GetTimestamp

func (x *SendRequest) GetTimestamp() string

func (*SendRequest) ProtoMessage

func (*SendRequest) ProtoMessage()

func (*SendRequest) ProtoReflect

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

func (*SendRequest) Reset

func (x *SendRequest) Reset()

func (*SendRequest) String

func (x *SendRequest) String() string

type SendResponse

type SendResponse struct {
	// contains filtered or unexported fields
}

func (*SendResponse) Descriptor deprecated

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

Deprecated: Use SendResponse.ProtoReflect.Descriptor instead.

func (*SendResponse) ProtoMessage

func (*SendResponse) ProtoMessage()

func (*SendResponse) ProtoReflect

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

func (*SendResponse) Reset

func (x *SendResponse) Reset()

func (*SendResponse) String

func (x *SendResponse) String() string

type SnifferServiceClient

type SnifferServiceClient interface {
	Send(ctx context.Context, in *SendRequest, opts ...grpc.CallOption) (*SendResponse, error)
}

SnifferServiceClient is the client API for SnifferService 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 SnifferServiceServer

type SnifferServiceServer interface {
	Send(context.Context, *SendRequest) (*SendResponse, error)
	// contains filtered or unexported methods
}

SnifferServiceServer is the server API for SnifferService service. All implementations must embed UnimplementedSnifferServiceServer for forward compatibility

type UnimplementedSnifferServiceServer

type UnimplementedSnifferServiceServer struct {
}

UnimplementedSnifferServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedSnifferServiceServer) Send

type UnsafeSnifferServiceServer

type UnsafeSnifferServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeSnifferServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to SnifferServiceServer will result in compilation errors.

Jump to

Keyboard shortcuts

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