Documentation ¶
Index ¶
- Variables
- func RegisterEventReportingServiceServer(s *grpc.Server, srv EventReportingServiceServer)
- type EventReportingServiceClient
- type EventReportingServiceServer
- type EventReportingService_StreamEventsClient
- type EventReportingService_StreamEventsServer
- type StreamEventsRequest
- func (*StreamEventsRequest) Descriptor() ([]byte, []int)
- func (m *StreamEventsRequest) GetEvents() []*types.Any
- func (m *StreamEventsRequest) GetIdentifier() *StreamEventsRequest_Identifier
- func (m *StreamEventsRequest) Marshal() (dAtA []byte, err error)
- func (m *StreamEventsRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *StreamEventsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*StreamEventsRequest) ProtoMessage()
- func (m *StreamEventsRequest) Reset()
- func (m *StreamEventsRequest) Size() (n int)
- func (m *StreamEventsRequest) String() string
- func (m *StreamEventsRequest) Unmarshal(dAtA []byte) error
- func (m *StreamEventsRequest) Validate() error
- func (m *StreamEventsRequest) XXX_DiscardUnknown()
- func (m *StreamEventsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *StreamEventsRequest) XXX_Merge(src proto.Message)
- func (m *StreamEventsRequest) XXX_Size() int
- func (m *StreamEventsRequest) XXX_Unmarshal(b []byte) error
- type StreamEventsRequestValidationError
- func (e StreamEventsRequestValidationError) Cause() error
- func (e StreamEventsRequestValidationError) Error() string
- func (e StreamEventsRequestValidationError) ErrorName() string
- func (e StreamEventsRequestValidationError) Field() string
- func (e StreamEventsRequestValidationError) Key() bool
- func (e StreamEventsRequestValidationError) Reason() string
- type StreamEventsRequest_Identifier
- func (*StreamEventsRequest_Identifier) Descriptor() ([]byte, []int)
- func (m *StreamEventsRequest_Identifier) GetNode() *core.Node
- func (m *StreamEventsRequest_Identifier) Marshal() (dAtA []byte, err error)
- func (m *StreamEventsRequest_Identifier) MarshalTo(dAtA []byte) (int, error)
- func (m *StreamEventsRequest_Identifier) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*StreamEventsRequest_Identifier) ProtoMessage()
- func (m *StreamEventsRequest_Identifier) Reset()
- func (m *StreamEventsRequest_Identifier) Size() (n int)
- func (m *StreamEventsRequest_Identifier) String() string
- func (m *StreamEventsRequest_Identifier) Unmarshal(dAtA []byte) error
- func (m *StreamEventsRequest_Identifier) Validate() error
- func (m *StreamEventsRequest_Identifier) XXX_DiscardUnknown()
- func (m *StreamEventsRequest_Identifier) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *StreamEventsRequest_Identifier) XXX_Merge(src proto.Message)
- func (m *StreamEventsRequest_Identifier) XXX_Size() int
- func (m *StreamEventsRequest_Identifier) XXX_Unmarshal(b []byte) error
- type StreamEventsRequest_IdentifierValidationError
- func (e StreamEventsRequest_IdentifierValidationError) Cause() error
- func (e StreamEventsRequest_IdentifierValidationError) Error() string
- func (e StreamEventsRequest_IdentifierValidationError) ErrorName() string
- func (e StreamEventsRequest_IdentifierValidationError) Field() string
- func (e StreamEventsRequest_IdentifierValidationError) Key() bool
- func (e StreamEventsRequest_IdentifierValidationError) Reason() string
- type StreamEventsResponse
- func (*StreamEventsResponse) Descriptor() ([]byte, []int)
- func (m *StreamEventsResponse) Marshal() (dAtA []byte, err error)
- func (m *StreamEventsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *StreamEventsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*StreamEventsResponse) ProtoMessage()
- func (m *StreamEventsResponse) Reset()
- func (m *StreamEventsResponse) Size() (n int)
- func (m *StreamEventsResponse) String() string
- func (m *StreamEventsResponse) Unmarshal(dAtA []byte) error
- func (m *StreamEventsResponse) Validate() error
- func (m *StreamEventsResponse) XXX_DiscardUnknown()
- func (m *StreamEventsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *StreamEventsResponse) XXX_Merge(src proto.Message)
- func (m *StreamEventsResponse) XXX_Size() int
- func (m *StreamEventsResponse) XXX_Unmarshal(b []byte) error
- type StreamEventsResponseValidationError
- func (e StreamEventsResponseValidationError) Cause() error
- func (e StreamEventsResponseValidationError) Error() string
- func (e StreamEventsResponseValidationError) ErrorName() string
- func (e StreamEventsResponseValidationError) Field() string
- func (e StreamEventsResponseValidationError) Key() bool
- func (e StreamEventsResponseValidationError) Reason() string
- type UnimplementedEventReportingServiceServer
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func RegisterEventReportingServiceServer ¶
func RegisterEventReportingServiceServer(s *grpc.Server, srv EventReportingServiceServer)
Types ¶
type EventReportingServiceClient ¶
type EventReportingServiceClient interface { // Envoy will connect and send StreamEventsRequest messages forever. // The management server may send StreamEventsResponse to configure event stream. See below. // This API is designed for high throughput with the expectation that it might be lossy. StreamEvents(ctx context.Context, opts ...grpc.CallOption) (EventReportingService_StreamEventsClient, error) }
EventReportingServiceClient is the client API for EventReportingService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewEventReportingServiceClient ¶
func NewEventReportingServiceClient(cc *grpc.ClientConn) EventReportingServiceClient
type EventReportingServiceServer ¶
type EventReportingServiceServer interface { // Envoy will connect and send StreamEventsRequest messages forever. // The management server may send StreamEventsResponse to configure event stream. See below. // This API is designed for high throughput with the expectation that it might be lossy. StreamEvents(EventReportingService_StreamEventsServer) error }
EventReportingServiceServer is the server API for EventReportingService service.
type EventReportingService_StreamEventsClient ¶
type EventReportingService_StreamEventsClient interface { Send(*StreamEventsRequest) error Recv() (*StreamEventsResponse, error) grpc.ClientStream }
type EventReportingService_StreamEventsServer ¶
type EventReportingService_StreamEventsServer interface { Send(*StreamEventsResponse) error Recv() (*StreamEventsRequest, error) grpc.ServerStream }
type StreamEventsRequest ¶
type StreamEventsRequest struct { // Identifier data that will only be sent in the first message on the stream. This is effectively // structured metadata and is a performance optimization. Identifier *StreamEventsRequest_Identifier `protobuf:"bytes,1,opt,name=identifier,proto3" json:"identifier,omitempty"` // Batch of events. When the stream is already active, it will be the events occurred // since the last message had been sent. If the server receives unknown event type, it should // silently ignore it. // // The following events are supported: // // * :ref:`HealthCheckEvent <envoy_api_msg_data.core.v2alpha.HealthCheckEvent>` // * :ref:`OutlierDetectionEvent <envoy_api_msg_data.cluster.v2alpha.OutlierDetectionEvent>` Events []*types.Any `protobuf:"bytes,2,rep,name=events,proto3" json:"events,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
[#not-implemented-hide:] An events envoy sends to the management server.
func (*StreamEventsRequest) Descriptor ¶
func (*StreamEventsRequest) Descriptor() ([]byte, []int)
func (*StreamEventsRequest) GetEvents ¶
func (m *StreamEventsRequest) GetEvents() []*types.Any
func (*StreamEventsRequest) GetIdentifier ¶
func (m *StreamEventsRequest) GetIdentifier() *StreamEventsRequest_Identifier
func (*StreamEventsRequest) Marshal ¶
func (m *StreamEventsRequest) Marshal() (dAtA []byte, err error)
func (*StreamEventsRequest) MarshalTo ¶
func (m *StreamEventsRequest) MarshalTo(dAtA []byte) (int, error)
func (*StreamEventsRequest) MarshalToSizedBuffer ¶
func (m *StreamEventsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*StreamEventsRequest) ProtoMessage ¶
func (*StreamEventsRequest) ProtoMessage()
func (*StreamEventsRequest) Reset ¶
func (m *StreamEventsRequest) Reset()
func (*StreamEventsRequest) Size ¶
func (m *StreamEventsRequest) Size() (n int)
func (*StreamEventsRequest) String ¶
func (m *StreamEventsRequest) String() string
func (*StreamEventsRequest) Unmarshal ¶
func (m *StreamEventsRequest) Unmarshal(dAtA []byte) error
func (*StreamEventsRequest) Validate ¶
func (m *StreamEventsRequest) Validate() error
Validate checks the field values on StreamEventsRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
func (*StreamEventsRequest) XXX_DiscardUnknown ¶
func (m *StreamEventsRequest) XXX_DiscardUnknown()
func (*StreamEventsRequest) XXX_Marshal ¶
func (m *StreamEventsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*StreamEventsRequest) XXX_Merge ¶
func (m *StreamEventsRequest) XXX_Merge(src proto.Message)
func (*StreamEventsRequest) XXX_Size ¶
func (m *StreamEventsRequest) XXX_Size() int
func (*StreamEventsRequest) XXX_Unmarshal ¶
func (m *StreamEventsRequest) XXX_Unmarshal(b []byte) error
type StreamEventsRequestValidationError ¶
type StreamEventsRequestValidationError struct {
// contains filtered or unexported fields
}
StreamEventsRequestValidationError is the validation error returned by StreamEventsRequest.Validate if the designated constraints aren't met.
func (StreamEventsRequestValidationError) Cause ¶
func (e StreamEventsRequestValidationError) Cause() error
Cause function returns cause value.
func (StreamEventsRequestValidationError) Error ¶
func (e StreamEventsRequestValidationError) Error() string
Error satisfies the builtin error interface
func (StreamEventsRequestValidationError) ErrorName ¶
func (e StreamEventsRequestValidationError) ErrorName() string
ErrorName returns error name.
func (StreamEventsRequestValidationError) Field ¶
func (e StreamEventsRequestValidationError) Field() string
Field function returns field value.
func (StreamEventsRequestValidationError) Key ¶
func (e StreamEventsRequestValidationError) Key() bool
Key function returns key value.
func (StreamEventsRequestValidationError) Reason ¶
func (e StreamEventsRequestValidationError) Reason() string
Reason function returns reason value.
type StreamEventsRequest_Identifier ¶
type StreamEventsRequest_Identifier struct { // The node sending the event messages over the stream. Node *core.Node `protobuf:"bytes,1,opt,name=node,proto3" json:"node,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*StreamEventsRequest_Identifier) Descriptor ¶
func (*StreamEventsRequest_Identifier) Descriptor() ([]byte, []int)
func (*StreamEventsRequest_Identifier) GetNode ¶
func (m *StreamEventsRequest_Identifier) GetNode() *core.Node
func (*StreamEventsRequest_Identifier) Marshal ¶
func (m *StreamEventsRequest_Identifier) Marshal() (dAtA []byte, err error)
func (*StreamEventsRequest_Identifier) MarshalTo ¶
func (m *StreamEventsRequest_Identifier) MarshalTo(dAtA []byte) (int, error)
func (*StreamEventsRequest_Identifier) MarshalToSizedBuffer ¶
func (m *StreamEventsRequest_Identifier) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*StreamEventsRequest_Identifier) ProtoMessage ¶
func (*StreamEventsRequest_Identifier) ProtoMessage()
func (*StreamEventsRequest_Identifier) Reset ¶
func (m *StreamEventsRequest_Identifier) Reset()
func (*StreamEventsRequest_Identifier) Size ¶
func (m *StreamEventsRequest_Identifier) Size() (n int)
func (*StreamEventsRequest_Identifier) String ¶
func (m *StreamEventsRequest_Identifier) String() string
func (*StreamEventsRequest_Identifier) Unmarshal ¶
func (m *StreamEventsRequest_Identifier) Unmarshal(dAtA []byte) error
func (*StreamEventsRequest_Identifier) Validate ¶
func (m *StreamEventsRequest_Identifier) Validate() error
Validate checks the field values on StreamEventsRequest_Identifier with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
func (*StreamEventsRequest_Identifier) XXX_DiscardUnknown ¶
func (m *StreamEventsRequest_Identifier) XXX_DiscardUnknown()
func (*StreamEventsRequest_Identifier) XXX_Marshal ¶
func (m *StreamEventsRequest_Identifier) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*StreamEventsRequest_Identifier) XXX_Merge ¶
func (m *StreamEventsRequest_Identifier) XXX_Merge(src proto.Message)
func (*StreamEventsRequest_Identifier) XXX_Size ¶
func (m *StreamEventsRequest_Identifier) XXX_Size() int
func (*StreamEventsRequest_Identifier) XXX_Unmarshal ¶
func (m *StreamEventsRequest_Identifier) XXX_Unmarshal(b []byte) error
type StreamEventsRequest_IdentifierValidationError ¶
type StreamEventsRequest_IdentifierValidationError struct {
// contains filtered or unexported fields
}
StreamEventsRequest_IdentifierValidationError is the validation error returned by StreamEventsRequest_Identifier.Validate if the designated constraints aren't met.
func (StreamEventsRequest_IdentifierValidationError) Cause ¶
func (e StreamEventsRequest_IdentifierValidationError) Cause() error
Cause function returns cause value.
func (StreamEventsRequest_IdentifierValidationError) Error ¶
func (e StreamEventsRequest_IdentifierValidationError) Error() string
Error satisfies the builtin error interface
func (StreamEventsRequest_IdentifierValidationError) ErrorName ¶
func (e StreamEventsRequest_IdentifierValidationError) ErrorName() string
ErrorName returns error name.
func (StreamEventsRequest_IdentifierValidationError) Field ¶
func (e StreamEventsRequest_IdentifierValidationError) Field() string
Field function returns field value.
func (StreamEventsRequest_IdentifierValidationError) Key ¶
func (e StreamEventsRequest_IdentifierValidationError) Key() bool
Key function returns key value.
func (StreamEventsRequest_IdentifierValidationError) Reason ¶
func (e StreamEventsRequest_IdentifierValidationError) Reason() string
Reason function returns reason value.
type StreamEventsResponse ¶
type StreamEventsResponse struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
[#not-implemented-hide:] The management server may send envoy a StreamEventsResponse to tell which events the server is interested in. In future, with aggregated event reporting service, this message will contain, for example, clusters the envoy should send events for, or event types the server wants to process.
func (*StreamEventsResponse) Descriptor ¶
func (*StreamEventsResponse) Descriptor() ([]byte, []int)
func (*StreamEventsResponse) Marshal ¶
func (m *StreamEventsResponse) Marshal() (dAtA []byte, err error)
func (*StreamEventsResponse) MarshalTo ¶
func (m *StreamEventsResponse) MarshalTo(dAtA []byte) (int, error)
func (*StreamEventsResponse) MarshalToSizedBuffer ¶
func (m *StreamEventsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*StreamEventsResponse) ProtoMessage ¶
func (*StreamEventsResponse) ProtoMessage()
func (*StreamEventsResponse) Reset ¶
func (m *StreamEventsResponse) Reset()
func (*StreamEventsResponse) Size ¶
func (m *StreamEventsResponse) Size() (n int)
func (*StreamEventsResponse) String ¶
func (m *StreamEventsResponse) String() string
func (*StreamEventsResponse) Unmarshal ¶
func (m *StreamEventsResponse) Unmarshal(dAtA []byte) error
func (*StreamEventsResponse) Validate ¶
func (m *StreamEventsResponse) Validate() error
Validate checks the field values on StreamEventsResponse with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
func (*StreamEventsResponse) XXX_DiscardUnknown ¶
func (m *StreamEventsResponse) XXX_DiscardUnknown()
func (*StreamEventsResponse) XXX_Marshal ¶
func (m *StreamEventsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*StreamEventsResponse) XXX_Merge ¶
func (m *StreamEventsResponse) XXX_Merge(src proto.Message)
func (*StreamEventsResponse) XXX_Size ¶
func (m *StreamEventsResponse) XXX_Size() int
func (*StreamEventsResponse) XXX_Unmarshal ¶
func (m *StreamEventsResponse) XXX_Unmarshal(b []byte) error
type StreamEventsResponseValidationError ¶
type StreamEventsResponseValidationError struct {
// contains filtered or unexported fields
}
StreamEventsResponseValidationError is the validation error returned by StreamEventsResponse.Validate if the designated constraints aren't met.
func (StreamEventsResponseValidationError) Cause ¶
func (e StreamEventsResponseValidationError) Cause() error
Cause function returns cause value.
func (StreamEventsResponseValidationError) Error ¶
func (e StreamEventsResponseValidationError) Error() string
Error satisfies the builtin error interface
func (StreamEventsResponseValidationError) ErrorName ¶
func (e StreamEventsResponseValidationError) ErrorName() string
ErrorName returns error name.
func (StreamEventsResponseValidationError) Field ¶
func (e StreamEventsResponseValidationError) Field() string
Field function returns field value.
func (StreamEventsResponseValidationError) Key ¶
func (e StreamEventsResponseValidationError) Key() bool
Key function returns key value.
func (StreamEventsResponseValidationError) Reason ¶
func (e StreamEventsResponseValidationError) Reason() string
Reason function returns reason value.
type UnimplementedEventReportingServiceServer ¶
type UnimplementedEventReportingServiceServer struct { }
UnimplementedEventReportingServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedEventReportingServiceServer) StreamEvents ¶
func (*UnimplementedEventReportingServiceServer) StreamEvents(srv EventReportingService_StreamEventsServer) error