Documentation ¶
Index ¶
- func RegisterLoadReportingServiceServer(s *grpc.Server, srv LoadReportingServiceServer)
- type LoadReportingServiceClient
- type LoadReportingServiceServer
- type LoadReportingService_StreamLoadStatsClient
- type LoadReportingService_StreamLoadStatsServer
- type LoadStatsRequest
- func (*LoadStatsRequest) Descriptor() ([]byte, []int)
- func (m *LoadStatsRequest) GetClusterStats() []*endpoint.ClusterStats
- func (m *LoadStatsRequest) GetNode() *core.Node
- func (*LoadStatsRequest) ProtoMessage()
- func (m *LoadStatsRequest) Reset()
- func (m *LoadStatsRequest) String() string
- func (m *LoadStatsRequest) Validate() error
- func (m *LoadStatsRequest) XXX_DiscardUnknown()
- func (m *LoadStatsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *LoadStatsRequest) XXX_Merge(src proto.Message)
- func (m *LoadStatsRequest) XXX_Size() int
- func (m *LoadStatsRequest) XXX_Unmarshal(b []byte) error
- type LoadStatsRequestValidationError
- func (e LoadStatsRequestValidationError) Cause() error
- func (e LoadStatsRequestValidationError) Error() string
- func (e LoadStatsRequestValidationError) ErrorName() string
- func (e LoadStatsRequestValidationError) Field() string
- func (e LoadStatsRequestValidationError) Key() bool
- func (e LoadStatsRequestValidationError) Reason() string
- type LoadStatsResponse
- func (*LoadStatsResponse) Descriptor() ([]byte, []int)
- func (m *LoadStatsResponse) GetClusters() []string
- func (m *LoadStatsResponse) GetLoadReportingInterval() *duration.Duration
- func (m *LoadStatsResponse) GetReportEndpointGranularity() bool
- func (*LoadStatsResponse) ProtoMessage()
- func (m *LoadStatsResponse) Reset()
- func (m *LoadStatsResponse) String() string
- func (m *LoadStatsResponse) Validate() error
- func (m *LoadStatsResponse) XXX_DiscardUnknown()
- func (m *LoadStatsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *LoadStatsResponse) XXX_Merge(src proto.Message)
- func (m *LoadStatsResponse) XXX_Size() int
- func (m *LoadStatsResponse) XXX_Unmarshal(b []byte) error
- type LoadStatsResponseValidationError
- func (e LoadStatsResponseValidationError) Cause() error
- func (e LoadStatsResponseValidationError) Error() string
- func (e LoadStatsResponseValidationError) ErrorName() string
- func (e LoadStatsResponseValidationError) Field() string
- func (e LoadStatsResponseValidationError) Key() bool
- func (e LoadStatsResponseValidationError) Reason() string
- type UnimplementedLoadReportingServiceServer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterLoadReportingServiceServer ¶
func RegisterLoadReportingServiceServer(s *grpc.Server, srv LoadReportingServiceServer)
Types ¶
type LoadReportingServiceClient ¶
type LoadReportingServiceClient interface {
StreamLoadStats(ctx context.Context, opts ...grpc.CallOption) (LoadReportingService_StreamLoadStatsClient, error)
}
LoadReportingServiceClient is the client API for LoadReportingService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewLoadReportingServiceClient ¶
func NewLoadReportingServiceClient(cc *grpc.ClientConn) LoadReportingServiceClient
type LoadReportingServiceServer ¶
type LoadReportingServiceServer interface {
StreamLoadStats(LoadReportingService_StreamLoadStatsServer) error
}
LoadReportingServiceServer is the server API for LoadReportingService service.
type LoadReportingService_StreamLoadStatsClient ¶
type LoadReportingService_StreamLoadStatsClient interface { Send(*LoadStatsRequest) error Recv() (*LoadStatsResponse, error) grpc.ClientStream }
type LoadReportingService_StreamLoadStatsServer ¶
type LoadReportingService_StreamLoadStatsServer interface { Send(*LoadStatsResponse) error Recv() (*LoadStatsRequest, error) grpc.ServerStream }
type LoadStatsRequest ¶
type LoadStatsRequest struct { Node *core.Node `protobuf:"bytes,1,opt,name=node,proto3" json:"node,omitempty"` ClusterStats []*endpoint.ClusterStats `protobuf:"bytes,2,rep,name=cluster_stats,json=clusterStats,proto3" json:"cluster_stats,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*LoadStatsRequest) Descriptor ¶
func (*LoadStatsRequest) Descriptor() ([]byte, []int)
func (*LoadStatsRequest) GetClusterStats ¶
func (m *LoadStatsRequest) GetClusterStats() []*endpoint.ClusterStats
func (*LoadStatsRequest) GetNode ¶
func (m *LoadStatsRequest) GetNode() *core.Node
func (*LoadStatsRequest) ProtoMessage ¶
func (*LoadStatsRequest) ProtoMessage()
func (*LoadStatsRequest) Reset ¶
func (m *LoadStatsRequest) Reset()
func (*LoadStatsRequest) String ¶
func (m *LoadStatsRequest) String() string
func (*LoadStatsRequest) Validate ¶
func (m *LoadStatsRequest) Validate() error
Validate checks the field values on LoadStatsRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
func (*LoadStatsRequest) XXX_DiscardUnknown ¶
func (m *LoadStatsRequest) XXX_DiscardUnknown()
func (*LoadStatsRequest) XXX_Marshal ¶
func (m *LoadStatsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*LoadStatsRequest) XXX_Merge ¶
func (m *LoadStatsRequest) XXX_Merge(src proto.Message)
func (*LoadStatsRequest) XXX_Size ¶
func (m *LoadStatsRequest) XXX_Size() int
func (*LoadStatsRequest) XXX_Unmarshal ¶
func (m *LoadStatsRequest) XXX_Unmarshal(b []byte) error
type LoadStatsRequestValidationError ¶
type LoadStatsRequestValidationError struct {
// contains filtered or unexported fields
}
LoadStatsRequestValidationError is the validation error returned by LoadStatsRequest.Validate if the designated constraints aren't met.
func (LoadStatsRequestValidationError) Cause ¶
func (e LoadStatsRequestValidationError) Cause() error
Cause function returns cause value.
func (LoadStatsRequestValidationError) Error ¶
func (e LoadStatsRequestValidationError) Error() string
Error satisfies the builtin error interface
func (LoadStatsRequestValidationError) ErrorName ¶ added in v0.7.0
func (e LoadStatsRequestValidationError) ErrorName() string
ErrorName returns error name.
func (LoadStatsRequestValidationError) Field ¶
func (e LoadStatsRequestValidationError) Field() string
Field function returns field value.
func (LoadStatsRequestValidationError) Key ¶
func (e LoadStatsRequestValidationError) Key() bool
Key function returns key value.
func (LoadStatsRequestValidationError) Reason ¶
func (e LoadStatsRequestValidationError) Reason() string
Reason function returns reason value.
type LoadStatsResponse ¶
type LoadStatsResponse struct { Clusters []string `protobuf:"bytes,1,rep,name=clusters,proto3" json:"clusters,omitempty"` LoadReportingInterval *duration.Duration `` /* 126-byte string literal not displayed */ ReportEndpointGranularity bool `` /* 139-byte string literal not displayed */ XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*LoadStatsResponse) Descriptor ¶
func (*LoadStatsResponse) Descriptor() ([]byte, []int)
func (*LoadStatsResponse) GetClusters ¶
func (m *LoadStatsResponse) GetClusters() []string
func (*LoadStatsResponse) GetLoadReportingInterval ¶
func (m *LoadStatsResponse) GetLoadReportingInterval() *duration.Duration
func (*LoadStatsResponse) GetReportEndpointGranularity ¶
func (m *LoadStatsResponse) GetReportEndpointGranularity() bool
func (*LoadStatsResponse) ProtoMessage ¶
func (*LoadStatsResponse) ProtoMessage()
func (*LoadStatsResponse) Reset ¶
func (m *LoadStatsResponse) Reset()
func (*LoadStatsResponse) String ¶
func (m *LoadStatsResponse) String() string
func (*LoadStatsResponse) Validate ¶
func (m *LoadStatsResponse) Validate() error
Validate checks the field values on LoadStatsResponse with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
func (*LoadStatsResponse) XXX_DiscardUnknown ¶
func (m *LoadStatsResponse) XXX_DiscardUnknown()
func (*LoadStatsResponse) XXX_Marshal ¶
func (m *LoadStatsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*LoadStatsResponse) XXX_Merge ¶
func (m *LoadStatsResponse) XXX_Merge(src proto.Message)
func (*LoadStatsResponse) XXX_Size ¶
func (m *LoadStatsResponse) XXX_Size() int
func (*LoadStatsResponse) XXX_Unmarshal ¶
func (m *LoadStatsResponse) XXX_Unmarshal(b []byte) error
type LoadStatsResponseValidationError ¶
type LoadStatsResponseValidationError struct {
// contains filtered or unexported fields
}
LoadStatsResponseValidationError is the validation error returned by LoadStatsResponse.Validate if the designated constraints aren't met.
func (LoadStatsResponseValidationError) Cause ¶
func (e LoadStatsResponseValidationError) Cause() error
Cause function returns cause value.
func (LoadStatsResponseValidationError) Error ¶
func (e LoadStatsResponseValidationError) Error() string
Error satisfies the builtin error interface
func (LoadStatsResponseValidationError) ErrorName ¶ added in v0.7.0
func (e LoadStatsResponseValidationError) ErrorName() string
ErrorName returns error name.
func (LoadStatsResponseValidationError) Field ¶
func (e LoadStatsResponseValidationError) Field() string
Field function returns field value.
func (LoadStatsResponseValidationError) Key ¶
func (e LoadStatsResponseValidationError) Key() bool
Key function returns key value.
func (LoadStatsResponseValidationError) Reason ¶
func (e LoadStatsResponseValidationError) Reason() string
Reason function returns reason value.
type UnimplementedLoadReportingServiceServer ¶ added in v0.9.1
type UnimplementedLoadReportingServiceServer struct { }
UnimplementedLoadReportingServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedLoadReportingServiceServer) StreamLoadStats ¶ added in v0.9.1
func (*UnimplementedLoadReportingServiceServer) StreamLoadStats(srv LoadReportingService_StreamLoadStatsServer) error