Documentation
¶
Index ¶
- Constants
- Variables
- func RegisterEventHandlerServer(s grpc.ServiceRegistrar, srv EventHandlerServer)
- type Activity
- func (*Activity) Descriptor() ([]byte, []int)deprecated
- func (x *Activity) GetComment() string
- func (x *Activity) GetDescription() []*Activity_Change
- func (x *Activity) GetModifiedBy() string
- func (x *Activity) GetModifiedTime() *timestamppb.Timestamp
- func (*Activity) ProtoMessage()
- func (x *Activity) ProtoReflect() protoreflect.Message
- func (x *Activity) Reset()
- func (x *Activity) String() string
- type Activity_Change
- func (*Activity_Change) Descriptor() ([]byte, []int)deprecated
- func (x *Activity_Change) GetField() string
- func (x *Activity_Change) GetNewVal() string
- func (x *Activity_Change) GetOldVal() string
- func (x *Activity_Change) GetType() Activity_ChangeType
- func (*Activity_Change) ProtoMessage()
- func (x *Activity_Change) ProtoReflect() protoreflect.Message
- func (x *Activity_Change) Reset()
- func (x *Activity_Change) String() string
- type Activity_ChangeType
- func (Activity_ChangeType) Descriptor() protoreflect.EnumDescriptor
- func (x Activity_ChangeType) Enum() *Activity_ChangeType
- func (Activity_ChangeType) EnumDescriptor() ([]byte, []int)deprecated
- func (x Activity_ChangeType) Number() protoreflect.EnumNumber
- func (x Activity_ChangeType) String() string
- func (Activity_ChangeType) Type() protoreflect.EnumType
- type Data
- type DeleteResponse
- type EventHandlerClient
- type EventHandlerServer
- type EventHandler_ListEventObjectsClient
- type EventHandler_ListEventObjectsServer
- type EventObject
- func (*EventObject) Descriptor() ([]byte, []int)deprecated
- func (x *EventObject) GetActivity() []*Activity
- func (x *EventObject) GetAssignee() string
- func (x *EventObject) GetData() []*Data
- func (x *EventObject) GetId() string
- func (x *EventObject) GetLabel() []string
- func (x *EventObject) GetSeverity() EventObject_Severity
- func (x *EventObject) GetSource() string
- func (x *EventObject) GetState() EventObject_State
- func (x *EventObject) GetType() string
- func (*EventObject) ProtoMessage()
- func (x *EventObject) ProtoReflect() protoreflect.Message
- func (x *EventObject) Reset()
- func (x *EventObject) String() string
- type EventObject_Severity
- func (EventObject_Severity) Descriptor() protoreflect.EnumDescriptor
- func (x EventObject_Severity) Enum() *EventObject_Severity
- func (EventObject_Severity) EnumDescriptor() ([]byte, []int)deprecated
- func (x EventObject_Severity) Number() protoreflect.EnumNumber
- func (x EventObject_Severity) String() string
- func (EventObject_Severity) Type() protoreflect.EnumType
- type EventObject_State
- func (EventObject_State) Descriptor() protoreflect.EnumDescriptor
- func (x EventObject_State) Enum() *EventObject_State
- func (EventObject_State) EnumDescriptor() ([]byte, []int)deprecated
- func (x EventObject_State) Number() protoreflect.EnumNumber
- func (x EventObject_State) String() string
- func (EventObject_State) Type() protoreflect.EnumType
- type EventRef
- type ListCountResponse
- func (*ListCountResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListCountResponse) GetApproximate() bool
- func (x *ListCountResponse) GetCount() int64
- func (*ListCountResponse) ProtoMessage()
- func (x *ListCountResponse) ProtoReflect() protoreflect.Message
- func (x *ListCountResponse) Reset()
- func (x *ListCountResponse) String() string
- type ListLabelRequest
- type ListLabelResponse
- type ListRequest
- func (*ListRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListRequest) GetId() []string
- func (x *ListRequest) GetOffset() int32
- func (x *ListRequest) GetPageSize() int32
- func (x *ListRequest) GetQueryMask() *v1.FieldMask
- func (x *ListRequest) GetQueryTemplate() *EventObject
- func (x *ListRequest) GetReturnedFieldsMask() *v1.FieldMask
- func (*ListRequest) ProtoMessage()
- func (x *ListRequest) ProtoReflect() protoreflect.Message
- func (x *ListRequest) Reset()
- func (x *ListRequest) String() string
- type SaveRequest
- func (*SaveRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SaveRequest) GetComment() string
- func (x *SaveRequest) GetObject() *EventObject
- func (*SaveRequest) ProtoMessage()
- func (x *SaveRequest) ProtoReflect() protoreflect.Message
- func (x *SaveRequest) Reset()
- func (x *SaveRequest) String() string
- type UnimplementedEventHandlerServer
- func (UnimplementedEventHandlerServer) CountEventObjects(context.Context, *ListRequest) (*ListCountResponse, error)
- func (UnimplementedEventHandlerServer) DeleteEventObject(context.Context, *EventObject) (*DeleteResponse, error)
- func (UnimplementedEventHandlerServer) GetEventObject(context.Context, *EventRef) (*EventObject, error)
- func (UnimplementedEventHandlerServer) ListEventObjects(*ListRequest, grpc.ServerStreamingServer[EventObject]) error
- func (UnimplementedEventHandlerServer) ListLabels(context.Context, *ListLabelRequest) (*ListLabelResponse, error)
- func (UnimplementedEventHandlerServer) SaveEventObject(context.Context, *SaveRequest) (*EventObject, error)
- func (UnimplementedEventHandlerServer) UpdateEventObjects(context.Context, *UpdateRequest) (*UpdateResponse, error)
- type UnsafeEventHandlerServer
- type UpdateRequest
- func (*UpdateRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateRequest) GetComment() string
- func (x *UpdateRequest) GetListRequest() *ListRequest
- func (x *UpdateRequest) GetUpdateMask() *v1.FieldMask
- func (x *UpdateRequest) GetUpdateTemplate() *EventObject
- func (*UpdateRequest) ProtoMessage()
- func (x *UpdateRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateRequest) Reset()
- func (x *UpdateRequest) String() string
- type UpdateResponse
Constants ¶
const ( EventHandler_GetEventObject_FullMethodName = "/veidemann.api.eventhandler.v1.EventHandler/GetEventObject" EventHandler_ListEventObjects_FullMethodName = "/veidemann.api.eventhandler.v1.EventHandler/ListEventObjects" EventHandler_CountEventObjects_FullMethodName = "/veidemann.api.eventhandler.v1.EventHandler/CountEventObjects" EventHandler_SaveEventObject_FullMethodName = "/veidemann.api.eventhandler.v1.EventHandler/SaveEventObject" EventHandler_UpdateEventObjects_FullMethodName = "/veidemann.api.eventhandler.v1.EventHandler/UpdateEventObjects" EventHandler_DeleteEventObject_FullMethodName = "/veidemann.api.eventhandler.v1.EventHandler/DeleteEventObject" EventHandler_ListLabels_FullMethodName = "/veidemann.api.eventhandler.v1.EventHandler/ListLabels" )
Variables ¶
var ( EventObject_State_name = map[int32]string{ 0: "NEW", 1: "OPEN", 2: "CLOSED", } EventObject_State_value = map[string]int32{ "NEW": 0, "OPEN": 1, "CLOSED": 2, } )
Enum value maps for EventObject_State.
var ( EventObject_Severity_name = map[int32]string{ 0: "INFO", 1: "WARN", 2: "ERROR", } EventObject_Severity_value = map[string]int32{ "INFO": 0, "WARN": 1, "ERROR": 2, } )
Enum value maps for EventObject_Severity.
var ( Activity_ChangeType_name = map[int32]string{ 0: "CREATED", 1: "VALUE_CHANGED", 2: "ARRAY_ADD", 3: "ARRAY_DEL", } Activity_ChangeType_value = map[string]int32{ "CREATED": 0, "VALUE_CHANGED": 1, "ARRAY_ADD": 2, "ARRAY_DEL": 3, } )
Enum value maps for Activity_ChangeType.
var EventHandler_ServiceDesc = grpc.ServiceDesc{ ServiceName: "veidemann.api.eventhandler.v1.EventHandler", HandlerType: (*EventHandlerServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetEventObject", Handler: _EventHandler_GetEventObject_Handler, }, { MethodName: "CountEventObjects", Handler: _EventHandler_CountEventObjects_Handler, }, { MethodName: "SaveEventObject", Handler: _EventHandler_SaveEventObject_Handler, }, { MethodName: "UpdateEventObjects", Handler: _EventHandler_UpdateEventObjects_Handler, }, { MethodName: "DeleteEventObject", Handler: _EventHandler_DeleteEventObject_Handler, }, { MethodName: "ListLabels", Handler: _EventHandler_ListLabels_Handler, }, }, Streams: []grpc.StreamDesc{ { StreamName: "ListEventObjects", Handler: _EventHandler_ListEventObjects_Handler, ServerStreams: true, }, }, Metadata: "eventhandler/v1/eventhandler.proto", }
EventHandler_ServiceDesc is the grpc.ServiceDesc for EventHandler service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_eventhandler_v1_eventhandler_proto protoreflect.FileDescriptor
var File_eventhandler_v1_resources_proto protoreflect.FileDescriptor
Functions ¶
func RegisterEventHandlerServer ¶
func RegisterEventHandlerServer(s grpc.ServiceRegistrar, srv EventHandlerServer)
Types ¶
type Activity ¶
type Activity struct {
ModifiedBy string `protobuf:"bytes,1,opt,name=modified_by,json=modifiedBy,proto3" json:"modified_by,omitempty"`
ModifiedTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=modified_time,json=modifiedTime,proto3" json:"modified_time,omitempty"`
Description []*Activity_Change `protobuf:"bytes,3,rep,name=description,proto3" json:"description,omitempty"`
Comment string `protobuf:"bytes,4,opt,name=comment,proto3" json:"comment,omitempty"`
// contains filtered or unexported fields
}
func (*Activity) Descriptor
deprecated
func (*Activity) GetComment ¶
func (*Activity) GetDescription ¶
func (x *Activity) GetDescription() []*Activity_Change
func (*Activity) GetModifiedBy ¶
func (*Activity) GetModifiedTime ¶
func (x *Activity) GetModifiedTime() *timestamppb.Timestamp
func (*Activity) ProtoMessage ¶
func (*Activity) ProtoMessage()
func (*Activity) ProtoReflect ¶
func (x *Activity) ProtoReflect() protoreflect.Message
type Activity_Change ¶
type Activity_Change struct {
Type Activity_ChangeType `protobuf:"varint,1,opt,name=type,proto3,enum=veidemann.api.eventhandler.v1.Activity_ChangeType" json:"type,omitempty"`
Field string `protobuf:"bytes,2,opt,name=field,proto3" json:"field,omitempty"`
OldVal string `protobuf:"bytes,3,opt,name=old_val,json=oldVal,proto3" json:"old_val,omitempty"`
NewVal string `protobuf:"bytes,4,opt,name=new_val,json=newVal,proto3" json:"new_val,omitempty"`
// contains filtered or unexported fields
}
func (*Activity_Change) Descriptor
deprecated
func (*Activity_Change) Descriptor() ([]byte, []int)
Deprecated: Use Activity_Change.ProtoReflect.Descriptor instead.
func (*Activity_Change) GetField ¶
func (x *Activity_Change) GetField() string
func (*Activity_Change) GetNewVal ¶
func (x *Activity_Change) GetNewVal() string
func (*Activity_Change) GetOldVal ¶
func (x *Activity_Change) GetOldVal() string
func (*Activity_Change) GetType ¶
func (x *Activity_Change) GetType() Activity_ChangeType
func (*Activity_Change) ProtoMessage ¶
func (*Activity_Change) ProtoMessage()
func (*Activity_Change) ProtoReflect ¶
func (x *Activity_Change) ProtoReflect() protoreflect.Message
func (*Activity_Change) Reset ¶
func (x *Activity_Change) Reset()
func (*Activity_Change) String ¶
func (x *Activity_Change) String() string
type Activity_ChangeType ¶
type Activity_ChangeType int32
const ( Activity_CREATED Activity_ChangeType = 0 Activity_VALUE_CHANGED Activity_ChangeType = 1 Activity_ARRAY_ADD Activity_ChangeType = 2 Activity_ARRAY_DEL Activity_ChangeType = 3 )
func (Activity_ChangeType) Descriptor ¶
func (Activity_ChangeType) Descriptor() protoreflect.EnumDescriptor
func (Activity_ChangeType) Enum ¶
func (x Activity_ChangeType) Enum() *Activity_ChangeType
func (Activity_ChangeType) EnumDescriptor
deprecated
func (Activity_ChangeType) EnumDescriptor() ([]byte, []int)
Deprecated: Use Activity_ChangeType.Descriptor instead.
func (Activity_ChangeType) Number ¶
func (x Activity_ChangeType) Number() protoreflect.EnumNumber
func (Activity_ChangeType) String ¶
func (x Activity_ChangeType) String() string
func (Activity_ChangeType) Type ¶
func (Activity_ChangeType) Type() protoreflect.EnumType
type Data ¶
type Data struct {
Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
// contains filtered or unexported fields
}
func (*Data) Descriptor
deprecated
func (*Data) ProtoMessage ¶
func (*Data) ProtoMessage()
func (*Data) ProtoReflect ¶
func (x *Data) ProtoReflect() protoreflect.Message
type DeleteResponse ¶
type DeleteResponse struct {
Deleted bool `protobuf:"varint,1,opt,name=deleted,proto3" json:"deleted,omitempty"`
// contains filtered or unexported fields
}
func (*DeleteResponse) Descriptor
deprecated
func (*DeleteResponse) Descriptor() ([]byte, []int)
Deprecated: Use DeleteResponse.ProtoReflect.Descriptor instead.
func (*DeleteResponse) GetDeleted ¶
func (x *DeleteResponse) GetDeleted() bool
func (*DeleteResponse) ProtoMessage ¶
func (*DeleteResponse) ProtoMessage()
func (*DeleteResponse) ProtoReflect ¶
func (x *DeleteResponse) ProtoReflect() protoreflect.Message
func (*DeleteResponse) Reset ¶
func (x *DeleteResponse) Reset()
func (*DeleteResponse) String ¶
func (x *DeleteResponse) String() string
type EventHandlerClient ¶
type EventHandlerClient interface {
// Get an event object by ID
GetEventObject(ctx context.Context, in *EventRef, opts ...grpc.CallOption) (*EventObject, error)
// List a set of event objects
ListEventObjects(ctx context.Context, in *ListRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[EventObject], error)
// Count event objects
CountEventObjects(ctx context.Context, in *ListRequest, opts ...grpc.CallOption) (*ListCountResponse, error)
// Save an event object
SaveEventObject(ctx context.Context, in *SaveRequest, opts ...grpc.CallOption) (*EventObject, error)
// Update event objects
UpdateEventObjects(ctx context.Context, in *UpdateRequest, opts ...grpc.CallOption) (*UpdateResponse, error)
// Delete an event object
DeleteEventObject(ctx context.Context, in *EventObject, opts ...grpc.CallOption) (*DeleteResponse, error)
ListLabels(ctx context.Context, in *ListLabelRequest, opts ...grpc.CallOption) (*ListLabelResponse, error)
}
EventHandlerClient is the client API for EventHandler 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.
Service for working with events.
func NewEventHandlerClient ¶
func NewEventHandlerClient(cc grpc.ClientConnInterface) EventHandlerClient
type EventHandlerServer ¶
type EventHandlerServer interface {
// Get an event object by ID
GetEventObject(context.Context, *EventRef) (*EventObject, error)
// List a set of event objects
ListEventObjects(*ListRequest, grpc.ServerStreamingServer[EventObject]) error
// Count event objects
CountEventObjects(context.Context, *ListRequest) (*ListCountResponse, error)
// Save an event object
SaveEventObject(context.Context, *SaveRequest) (*EventObject, error)
// Update event objects
UpdateEventObjects(context.Context, *UpdateRequest) (*UpdateResponse, error)
// Delete an event object
DeleteEventObject(context.Context, *EventObject) (*DeleteResponse, error)
ListLabels(context.Context, *ListLabelRequest) (*ListLabelResponse, error)
}
EventHandlerServer is the server API for EventHandler service. All implementations should embed UnimplementedEventHandlerServer for forward compatibility.
Service for working with events.
type EventHandler_ListEventObjectsClient ¶
type EventHandler_ListEventObjectsClient = grpc.ServerStreamingClient[EventObject]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type EventHandler_ListEventObjectsServer ¶
type EventHandler_ListEventObjectsServer = grpc.ServerStreamingServer[EventObject]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type EventObject ¶
type EventObject struct {
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"`
Source string `protobuf:"bytes,3,opt,name=source,proto3" json:"source,omitempty"`
State EventObject_State `protobuf:"varint,4,opt,name=state,proto3,enum=veidemann.api.eventhandler.v1.EventObject_State" json:"state,omitempty"`
Assignee string `protobuf:"bytes,5,opt,name=assignee,proto3" json:"assignee,omitempty"`
Data []*Data `protobuf:"bytes,6,rep,name=data,proto3" json:"data,omitempty"`
Severity EventObject_Severity `` /* 126-byte string literal not displayed */
Label []string `protobuf:"bytes,8,rep,name=label,proto3" json:"label,omitempty"`
Activity []*Activity `protobuf:"bytes,9,rep,name=activity,proto3" json:"activity,omitempty"`
// contains filtered or unexported fields
}
func (*EventObject) Descriptor
deprecated
func (*EventObject) Descriptor() ([]byte, []int)
Deprecated: Use EventObject.ProtoReflect.Descriptor instead.
func (*EventObject) GetActivity ¶
func (x *EventObject) GetActivity() []*Activity
func (*EventObject) GetAssignee ¶
func (x *EventObject) GetAssignee() string
func (*EventObject) GetData ¶
func (x *EventObject) GetData() []*Data
func (*EventObject) GetId ¶
func (x *EventObject) GetId() string
func (*EventObject) GetLabel ¶
func (x *EventObject) GetLabel() []string
func (*EventObject) GetSeverity ¶
func (x *EventObject) GetSeverity() EventObject_Severity
func (*EventObject) GetSource ¶
func (x *EventObject) GetSource() string
func (*EventObject) GetState ¶
func (x *EventObject) GetState() EventObject_State
func (*EventObject) GetType ¶
func (x *EventObject) GetType() string
func (*EventObject) ProtoMessage ¶
func (*EventObject) ProtoMessage()
func (*EventObject) ProtoReflect ¶
func (x *EventObject) ProtoReflect() protoreflect.Message
func (*EventObject) Reset ¶
func (x *EventObject) Reset()
func (*EventObject) String ¶
func (x *EventObject) String() string
type EventObject_Severity ¶
type EventObject_Severity int32
const ( EventObject_INFO EventObject_Severity = 0 EventObject_WARN EventObject_Severity = 1 EventObject_ERROR EventObject_Severity = 2 )
func (EventObject_Severity) Descriptor ¶
func (EventObject_Severity) Descriptor() protoreflect.EnumDescriptor
func (EventObject_Severity) Enum ¶
func (x EventObject_Severity) Enum() *EventObject_Severity
func (EventObject_Severity) EnumDescriptor
deprecated
func (EventObject_Severity) EnumDescriptor() ([]byte, []int)
Deprecated: Use EventObject_Severity.Descriptor instead.
func (EventObject_Severity) Number ¶
func (x EventObject_Severity) Number() protoreflect.EnumNumber
func (EventObject_Severity) String ¶
func (x EventObject_Severity) String() string
func (EventObject_Severity) Type ¶
func (EventObject_Severity) Type() protoreflect.EnumType
type EventObject_State ¶
type EventObject_State int32
const ( EventObject_NEW EventObject_State = 0 EventObject_OPEN EventObject_State = 1 EventObject_CLOSED EventObject_State = 2 )
func (EventObject_State) Descriptor ¶
func (EventObject_State) Descriptor() protoreflect.EnumDescriptor
func (EventObject_State) Enum ¶
func (x EventObject_State) Enum() *EventObject_State
func (EventObject_State) EnumDescriptor
deprecated
func (EventObject_State) EnumDescriptor() ([]byte, []int)
Deprecated: Use EventObject_State.Descriptor instead.
func (EventObject_State) Number ¶
func (x EventObject_State) Number() protoreflect.EnumNumber
func (EventObject_State) String ¶
func (x EventObject_State) String() string
func (EventObject_State) Type ¶
func (EventObject_State) Type() protoreflect.EnumType
type EventRef ¶
type EventRef struct {
// The id of the EventObject to get
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// contains filtered or unexported fields
}
func (*EventRef) Descriptor
deprecated
func (*EventRef) ProtoMessage ¶
func (*EventRef) ProtoMessage()
func (*EventRef) ProtoReflect ¶
func (x *EventRef) ProtoReflect() protoreflect.Message
type ListCountResponse ¶
type ListCountResponse struct {
Count int64 `protobuf:"varint,1,opt,name=count,proto3" json:"count,omitempty"`
Approximate bool `protobuf:"varint,2,opt,name=approximate,proto3" json:"approximate,omitempty"`
// contains filtered or unexported fields
}
func (*ListCountResponse) Descriptor
deprecated
func (*ListCountResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListCountResponse.ProtoReflect.Descriptor instead.
func (*ListCountResponse) GetApproximate ¶
func (x *ListCountResponse) GetApproximate() bool
func (*ListCountResponse) GetCount ¶
func (x *ListCountResponse) GetCount() int64
func (*ListCountResponse) ProtoMessage ¶
func (*ListCountResponse) ProtoMessage()
func (*ListCountResponse) ProtoReflect ¶
func (x *ListCountResponse) ProtoReflect() protoreflect.Message
func (*ListCountResponse) Reset ¶
func (x *ListCountResponse) Reset()
func (*ListCountResponse) String ¶
func (x *ListCountResponse) String() string
type ListLabelRequest ¶
type ListLabelRequest struct {
Text string `protobuf:"bytes,1,opt,name=text,proto3" json:"text,omitempty"`
// contains filtered or unexported fields
}
func (*ListLabelRequest) Descriptor
deprecated
func (*ListLabelRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListLabelRequest.ProtoReflect.Descriptor instead.
func (*ListLabelRequest) GetText ¶
func (x *ListLabelRequest) GetText() string
func (*ListLabelRequest) ProtoMessage ¶
func (*ListLabelRequest) ProtoMessage()
func (*ListLabelRequest) ProtoReflect ¶
func (x *ListLabelRequest) ProtoReflect() protoreflect.Message
func (*ListLabelRequest) Reset ¶
func (x *ListLabelRequest) Reset()
func (*ListLabelRequest) String ¶
func (x *ListLabelRequest) String() string
type ListLabelResponse ¶
type ListLabelResponse struct {
Label []string `protobuf:"bytes,1,rep,name=label,proto3" json:"label,omitempty"`
// contains filtered or unexported fields
}
func (*ListLabelResponse) Descriptor
deprecated
func (*ListLabelResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListLabelResponse.ProtoReflect.Descriptor instead.
func (*ListLabelResponse) GetLabel ¶
func (x *ListLabelResponse) GetLabel() []string
func (*ListLabelResponse) ProtoMessage ¶
func (*ListLabelResponse) ProtoMessage()
func (*ListLabelResponse) ProtoReflect ¶
func (x *ListLabelResponse) ProtoReflect() protoreflect.Message
func (*ListLabelResponse) Reset ¶
func (x *ListLabelResponse) Reset()
func (*ListLabelResponse) String ¶
func (x *ListLabelResponse) String() string
type ListRequest ¶
type ListRequest struct {
// Select objects by one or more id's
Id []string `protobuf:"bytes,1,rep,name=id,proto3" json:"id,omitempty"`
QueryTemplate *EventObject `protobuf:"bytes,2,opt,name=query_template,json=queryTemplate,proto3" json:"query_template,omitempty"`
QueryMask *v1.FieldMask `protobuf:"bytes,3,opt,name=query_mask,json=queryMask,proto3" json:"query_mask,omitempty"`
ReturnedFieldsMask *v1.FieldMask `protobuf:"bytes,4,opt,name=returned_fields_mask,json=returnedFieldsMask,proto3" json:"returned_fields_mask,omitempty"`
PageSize int32 `protobuf:"varint,7,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
Offset int32 `protobuf:"varint,8,opt,name=offset,proto3" json:"offset,omitempty"`
// contains filtered or unexported fields
}
func (*ListRequest) Descriptor
deprecated
func (*ListRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListRequest.ProtoReflect.Descriptor instead.
func (*ListRequest) GetId ¶
func (x *ListRequest) GetId() []string
func (*ListRequest) GetOffset ¶
func (x *ListRequest) GetOffset() int32
func (*ListRequest) GetPageSize ¶
func (x *ListRequest) GetPageSize() int32
func (*ListRequest) GetQueryMask ¶
func (x *ListRequest) GetQueryMask() *v1.FieldMask
func (*ListRequest) GetQueryTemplate ¶
func (x *ListRequest) GetQueryTemplate() *EventObject
func (*ListRequest) GetReturnedFieldsMask ¶
func (x *ListRequest) GetReturnedFieldsMask() *v1.FieldMask
func (*ListRequest) ProtoMessage ¶
func (*ListRequest) ProtoMessage()
func (*ListRequest) ProtoReflect ¶
func (x *ListRequest) ProtoReflect() protoreflect.Message
func (*ListRequest) Reset ¶
func (x *ListRequest) Reset()
func (*ListRequest) String ¶
func (x *ListRequest) String() string
type SaveRequest ¶
type SaveRequest struct {
Object *EventObject `protobuf:"bytes,1,opt,name=object,proto3" json:"object,omitempty"`
Comment string `protobuf:"bytes,2,opt,name=comment,proto3" json:"comment,omitempty"`
// contains filtered or unexported fields
}
func (*SaveRequest) Descriptor
deprecated
func (*SaveRequest) Descriptor() ([]byte, []int)
Deprecated: Use SaveRequest.ProtoReflect.Descriptor instead.
func (*SaveRequest) GetComment ¶
func (x *SaveRequest) GetComment() string
func (*SaveRequest) GetObject ¶
func (x *SaveRequest) GetObject() *EventObject
func (*SaveRequest) ProtoMessage ¶
func (*SaveRequest) ProtoMessage()
func (*SaveRequest) ProtoReflect ¶
func (x *SaveRequest) ProtoReflect() protoreflect.Message
func (*SaveRequest) Reset ¶
func (x *SaveRequest) Reset()
func (*SaveRequest) String ¶
func (x *SaveRequest) String() string
type UnimplementedEventHandlerServer ¶
type UnimplementedEventHandlerServer struct{}
UnimplementedEventHandlerServer should 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.
func (UnimplementedEventHandlerServer) CountEventObjects ¶
func (UnimplementedEventHandlerServer) CountEventObjects(context.Context, *ListRequest) (*ListCountResponse, error)
func (UnimplementedEventHandlerServer) DeleteEventObject ¶
func (UnimplementedEventHandlerServer) DeleteEventObject(context.Context, *EventObject) (*DeleteResponse, error)
func (UnimplementedEventHandlerServer) GetEventObject ¶
func (UnimplementedEventHandlerServer) GetEventObject(context.Context, *EventRef) (*EventObject, error)
func (UnimplementedEventHandlerServer) ListEventObjects ¶
func (UnimplementedEventHandlerServer) ListEventObjects(*ListRequest, grpc.ServerStreamingServer[EventObject]) error
func (UnimplementedEventHandlerServer) ListLabels ¶
func (UnimplementedEventHandlerServer) ListLabels(context.Context, *ListLabelRequest) (*ListLabelResponse, error)
func (UnimplementedEventHandlerServer) SaveEventObject ¶
func (UnimplementedEventHandlerServer) SaveEventObject(context.Context, *SaveRequest) (*EventObject, error)
func (UnimplementedEventHandlerServer) UpdateEventObjects ¶
func (UnimplementedEventHandlerServer) UpdateEventObjects(context.Context, *UpdateRequest) (*UpdateResponse, error)
type UnsafeEventHandlerServer ¶
type UnsafeEventHandlerServer interface {
// contains filtered or unexported methods
}
UnsafeEventHandlerServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to EventHandlerServer will result in compilation errors.
type UpdateRequest ¶
type UpdateRequest struct {
ListRequest *ListRequest `protobuf:"bytes,1,opt,name=list_request,json=listRequest,proto3" json:"list_request,omitempty"`
UpdateMask *v1.FieldMask `protobuf:"bytes,3,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
UpdateTemplate *EventObject `protobuf:"bytes,4,opt,name=update_template,json=updateTemplate,proto3" json:"update_template,omitempty"`
Comment string `protobuf:"bytes,5,opt,name=comment,proto3" json:"comment,omitempty"`
// contains filtered or unexported fields
}
func (*UpdateRequest) Descriptor
deprecated
func (*UpdateRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateRequest.ProtoReflect.Descriptor instead.
func (*UpdateRequest) GetComment ¶
func (x *UpdateRequest) GetComment() string
func (*UpdateRequest) GetListRequest ¶
func (x *UpdateRequest) GetListRequest() *ListRequest
func (*UpdateRequest) GetUpdateMask ¶
func (x *UpdateRequest) GetUpdateMask() *v1.FieldMask
func (*UpdateRequest) GetUpdateTemplate ¶
func (x *UpdateRequest) GetUpdateTemplate() *EventObject
func (*UpdateRequest) ProtoMessage ¶
func (*UpdateRequest) ProtoMessage()
func (*UpdateRequest) ProtoReflect ¶
func (x *UpdateRequest) ProtoReflect() protoreflect.Message
func (*UpdateRequest) Reset ¶
func (x *UpdateRequest) Reset()
func (*UpdateRequest) String ¶
func (x *UpdateRequest) String() string
type UpdateResponse ¶
type UpdateResponse struct {
Updated int64 `protobuf:"varint,1,opt,name=updated,proto3" json:"updated,omitempty"`
// contains filtered or unexported fields
}
func (*UpdateResponse) Descriptor
deprecated
func (*UpdateResponse) Descriptor() ([]byte, []int)
Deprecated: Use UpdateResponse.ProtoReflect.Descriptor instead.
func (*UpdateResponse) GetUpdated ¶
func (x *UpdateResponse) GetUpdated() int64
func (*UpdateResponse) ProtoMessage ¶
func (*UpdateResponse) ProtoMessage()
func (*UpdateResponse) ProtoReflect ¶
func (x *UpdateResponse) ProtoReflect() protoreflect.Message
func (*UpdateResponse) Reset ¶
func (x *UpdateResponse) Reset()
func (*UpdateResponse) String ¶
func (x *UpdateResponse) String() string