Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterEventServiceServer(s grpc.ServiceRegistrar, srv EventServiceServer)
- type EventMessage
- func (*EventMessage) Descriptor() ([]byte, []int)deprecated
- func (x *EventMessage) GetApiKey() string
- func (x *EventMessage) GetData() []byte
- func (x *EventMessage) GetEventType() string
- func (x *EventMessage) GetNamespace() string
- func (x *EventMessage) GetResourceKey() string
- func (*EventMessage) ProtoMessage()
- func (x *EventMessage) ProtoReflect() protoreflect.Message
- func (x *EventMessage) Reset()
- func (x *EventMessage) String() string
- type EventResponse
- type EventServiceClient
- type EventServiceServer
- type UnimplementedEventServiceServer
- type UnsafeEventServiceServer
Constants ¶
const (
EventService_EmitEvent_FullMethodName = "/kube_controller_event.EventService/EmitEvent"
)
Variables ¶
var EventService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "kube_controller_event.EventService", HandlerType: (*EventServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "EmitEvent", Handler: _EventService_EmitEvent_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "event.proto", }
EventService_ServiceDesc is the grpc.ServiceDesc for EventService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_event_proto protoreflect.FileDescriptor
Functions ¶
func RegisterEventServiceServer ¶
func RegisterEventServiceServer(s grpc.ServiceRegistrar, srv EventServiceServer)
Types ¶
type EventMessage ¶
type EventMessage struct { Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` ResourceKey string `protobuf:"bytes,2,opt,name=resourceKey,proto3" json:"resourceKey,omitempty"` EventType string `protobuf:"bytes,3,opt,name=eventType,proto3" json:"eventType,omitempty"` Data []byte `protobuf:"bytes,4,opt,name=data,proto3" json:"data,omitempty"` // Raw event data ApiKey string `protobuf:"bytes,5,opt,name=apiKey,proto3" json:"apiKey,omitempty"` // API key for authentication // contains filtered or unexported fields }
func (*EventMessage) Descriptor
deprecated
func (*EventMessage) Descriptor() ([]byte, []int)
Deprecated: Use EventMessage.ProtoReflect.Descriptor instead.
func (*EventMessage) GetApiKey ¶
func (x *EventMessage) GetApiKey() string
func (*EventMessage) GetData ¶
func (x *EventMessage) GetData() []byte
func (*EventMessage) GetEventType ¶
func (x *EventMessage) GetEventType() string
func (*EventMessage) GetNamespace ¶
func (x *EventMessage) GetNamespace() string
func (*EventMessage) GetResourceKey ¶
func (x *EventMessage) GetResourceKey() string
func (*EventMessage) ProtoMessage ¶
func (*EventMessage) ProtoMessage()
func (*EventMessage) ProtoReflect ¶
func (x *EventMessage) ProtoReflect() protoreflect.Message
func (*EventMessage) Reset ¶
func (x *EventMessage) Reset()
func (*EventMessage) String ¶
func (x *EventMessage) String() string
type EventResponse ¶
type EventResponse struct { Acknowledged bool `protobuf:"varint,1,opt,name=acknowledged,proto3" json:"acknowledged,omitempty"` // contains filtered or unexported fields }
func (*EventResponse) Descriptor
deprecated
func (*EventResponse) Descriptor() ([]byte, []int)
Deprecated: Use EventResponse.ProtoReflect.Descriptor instead.
func (*EventResponse) GetAcknowledged ¶
func (x *EventResponse) GetAcknowledged() bool
func (*EventResponse) ProtoMessage ¶
func (*EventResponse) ProtoMessage()
func (*EventResponse) ProtoReflect ¶
func (x *EventResponse) ProtoReflect() protoreflect.Message
func (*EventResponse) Reset ¶
func (x *EventResponse) Reset()
func (*EventResponse) String ¶
func (x *EventResponse) String() string
type EventServiceClient ¶
type EventServiceClient interface {
EmitEvent(ctx context.Context, in *EventMessage, opts ...grpc.CallOption) (*EventResponse, error)
}
EventServiceClient is the client API for EventService 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 NewEventServiceClient ¶
func NewEventServiceClient(cc grpc.ClientConnInterface) EventServiceClient
type EventServiceServer ¶
type EventServiceServer interface { EmitEvent(context.Context, *EventMessage) (*EventResponse, error) // contains filtered or unexported methods }
EventServiceServer is the server API for EventService service. All implementations must embed UnimplementedEventServiceServer for forward compatibility
type UnimplementedEventServiceServer ¶
type UnimplementedEventServiceServer struct { }
UnimplementedEventServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedEventServiceServer) EmitEvent ¶
func (UnimplementedEventServiceServer) EmitEvent(context.Context, *EventMessage) (*EventResponse, error)
type UnsafeEventServiceServer ¶
type UnsafeEventServiceServer interface {
// contains filtered or unexported methods
}
UnsafeEventServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to EventServiceServer will result in compilation errors.