api

package
v0.0.0-...-8b33915 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2025 License: Apache-2.0 Imports: 11 Imported by: 0

README

Install tools

From the repository root run the following:

inv install-tools

to install the correct version of required tools

Generate api.pb.go

From the repository root run the following:

inv -e system-probe.generate-event-monitor-proto

Documentation

Index

Constants

View Source
const (
	EventMonitoringModule_GetProcessEvents_FullMethodName = "/api.EventMonitoringModule/GetProcessEvents"
)

Variables

View Source
var EventMonitoringModule_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "api.EventMonitoringModule",
	HandlerType: (*EventMonitoringModuleServer)(nil),
	Methods:     []grpc.MethodDesc{},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "GetProcessEvents",
			Handler:       _EventMonitoringModule_GetProcessEvents_Handler,
			ServerStreams: true,
		},
	},
	Metadata: "pkg/eventmonitor/proto/api/api.proto",
}

EventMonitoringModule_ServiceDesc is the grpc.ServiceDesc for EventMonitoringModule 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_pkg_eventmonitor_proto_api_api_proto protoreflect.FileDescriptor

Functions

func RegisterEventMonitoringModuleServer

func RegisterEventMonitoringModuleServer(s grpc.ServiceRegistrar, srv EventMonitoringModuleServer)

Types

type EventMonitoringModuleClient

type EventMonitoringModuleClient interface {
	GetProcessEvents(ctx context.Context, in *GetProcessEventParams, opts ...grpc.CallOption) (grpc.ServerStreamingClient[ProcessEventMessage], error)
}

EventMonitoringModuleClient is the client API for EventMonitoringModule 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 EventMonitoringModuleServer

type EventMonitoringModuleServer interface {
	GetProcessEvents(*GetProcessEventParams, grpc.ServerStreamingServer[ProcessEventMessage]) error
	// contains filtered or unexported methods
}

EventMonitoringModuleServer is the server API for EventMonitoringModule service. All implementations must embed UnimplementedEventMonitoringModuleServer for forward compatibility.

type EventMonitoringModule_GetProcessEventsClient

type EventMonitoringModule_GetProcessEventsClient = grpc.ServerStreamingClient[ProcessEventMessage]

This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.

type EventMonitoringModule_GetProcessEventsServer

type EventMonitoringModule_GetProcessEventsServer = grpc.ServerStreamingServer[ProcessEventMessage]

This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.

type GetProcessEventParams

type GetProcessEventParams struct {
	TimeoutSeconds int32 `protobuf:"varint,1,opt,name=TimeoutSeconds,proto3" json:"TimeoutSeconds,omitempty"`
	// contains filtered or unexported fields
}

func (*GetProcessEventParams) Descriptor deprecated

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

Deprecated: Use GetProcessEventParams.ProtoReflect.Descriptor instead.

func (*GetProcessEventParams) GetTimeoutSeconds

func (x *GetProcessEventParams) GetTimeoutSeconds() int32

func (*GetProcessEventParams) MarshalToSizedBufferVT

func (m *GetProcessEventParams) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*GetProcessEventParams) MarshalToVT

func (m *GetProcessEventParams) MarshalToVT(dAtA []byte) (int, error)

func (*GetProcessEventParams) MarshalVT

func (m *GetProcessEventParams) MarshalVT() (dAtA []byte, err error)

func (*GetProcessEventParams) ProtoMessage

func (*GetProcessEventParams) ProtoMessage()

func (*GetProcessEventParams) ProtoReflect

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

func (*GetProcessEventParams) Reset

func (x *GetProcessEventParams) Reset()

func (*GetProcessEventParams) SizeVT

func (m *GetProcessEventParams) SizeVT() (n int)

func (*GetProcessEventParams) String

func (x *GetProcessEventParams) String() string

func (*GetProcessEventParams) UnmarshalVT

func (m *GetProcessEventParams) UnmarshalVT(dAtA []byte) error

type ProcessEventMessage

type ProcessEventMessage struct {
	Data []byte `protobuf:"bytes,1,opt,name=Data,proto3" json:"Data,omitempty"`
	// contains filtered or unexported fields
}

func (*ProcessEventMessage) Descriptor deprecated

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

Deprecated: Use ProcessEventMessage.ProtoReflect.Descriptor instead.

func (*ProcessEventMessage) GetData

func (x *ProcessEventMessage) GetData() []byte

func (*ProcessEventMessage) MarshalToSizedBufferVT

func (m *ProcessEventMessage) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*ProcessEventMessage) MarshalToVT

func (m *ProcessEventMessage) MarshalToVT(dAtA []byte) (int, error)

func (*ProcessEventMessage) MarshalVT

func (m *ProcessEventMessage) MarshalVT() (dAtA []byte, err error)

func (*ProcessEventMessage) ProtoMessage

func (*ProcessEventMessage) ProtoMessage()

func (*ProcessEventMessage) ProtoReflect

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

func (*ProcessEventMessage) Reset

func (x *ProcessEventMessage) Reset()

func (*ProcessEventMessage) SizeVT

func (m *ProcessEventMessage) SizeVT() (n int)

func (*ProcessEventMessage) String

func (x *ProcessEventMessage) String() string

func (*ProcessEventMessage) UnmarshalVT

func (m *ProcessEventMessage) UnmarshalVT(dAtA []byte) error

type UnimplementedEventMonitoringModuleServer

type UnimplementedEventMonitoringModuleServer struct{}

UnimplementedEventMonitoringModuleServer must be embedded to have forward compatible implementations.

NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.

type UnsafeEventMonitoringModuleServer

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

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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