envoy_service_event_reporting_v3

package
v1.5.4-rc.0 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2020 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthEventReportingService        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowEventReportingService          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupEventReportingService = fmt.Errorf("proto: unexpected end of group")
)

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.v3.HealthCheckEvent>`
	// * :ref:`OutlierDetectionEvent <envoy_api_msg_data.cluster.v3.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 (*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

Cause function returns cause value.

func (StreamEventsRequestValidationError) Error

Error satisfies the builtin error interface

func (StreamEventsRequestValidationError) ErrorName

ErrorName returns error name.

func (StreamEventsRequestValidationError) Field

Field function returns field value.

func (StreamEventsRequestValidationError) Key

Key function returns key value.

func (StreamEventsRequestValidationError) Reason

Reason function returns reason value.

type StreamEventsRequest_Identifier

type StreamEventsRequest_Identifier struct {
	// The node sending the event messages over the stream.
	Node                 *v3.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() *v3.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 (*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

Cause function returns cause value.

func (StreamEventsRequest_IdentifierValidationError) Error

Error satisfies the builtin error interface

func (StreamEventsRequest_IdentifierValidationError) ErrorName

ErrorName returns error name.

func (StreamEventsRequest_IdentifierValidationError) Field

Field function returns field value.

func (StreamEventsRequest_IdentifierValidationError) Key

Key function returns key value.

func (StreamEventsRequest_IdentifierValidationError) Reason

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

Cause function returns cause value.

func (StreamEventsResponseValidationError) Error

Error satisfies the builtin error interface

func (StreamEventsResponseValidationError) ErrorName

ErrorName returns error name.

func (StreamEventsResponseValidationError) Field

Field function returns field value.

func (StreamEventsResponseValidationError) Key

Key function returns key value.

func (StreamEventsResponseValidationError) Reason

Reason function returns reason value.

type UnimplementedEventReportingServiceServer

type UnimplementedEventReportingServiceServer struct {
}

UnimplementedEventReportingServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedEventReportingServiceServer) StreamEvents

Jump to

Keyboard shortcuts

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