Documentation ¶
Index ¶
- Variables
- func RegisterForwardServer(s *grpc.Server, srv ForwardServer)
- type ForwardClient
- type ForwardServer
- type MetricList
- func (*MetricList) Descriptor() ([]byte, []int)
- func (m *MetricList) GetMetrics() []*metricpb.Metric
- func (m *MetricList) Marshal() (dAtA []byte, err error)
- func (m *MetricList) MarshalTo(dAtA []byte) (int, error)
- func (*MetricList) ProtoMessage()
- func (m *MetricList) Reset()
- func (m *MetricList) Size() (n int)
- func (m *MetricList) String() string
- func (m *MetricList) Unmarshal(dAtA []byte) error
- func (m *MetricList) XXX_DiscardUnknown()
- func (m *MetricList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MetricList) XXX_Merge(src proto.Message)
- func (m *MetricList) XXX_Size() int
- func (m *MetricList) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidLengthForward = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowForward = fmt.Errorf("proto: integer overflow") )
Functions ¶
func RegisterForwardServer ¶
func RegisterForwardServer(s *grpc.Server, srv ForwardServer)
Types ¶
type ForwardClient ¶
type ForwardClient interface { // SendMetrics sends a batch of metrics at once, and returns no response. SendMetrics(ctx context.Context, in *MetricList, opts ...grpc.CallOption) (*empty.Empty, error) }
ForwardClient is the client API for Forward service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewForwardClient ¶
func NewForwardClient(cc *grpc.ClientConn) ForwardClient
type ForwardServer ¶
type ForwardServer interface { // SendMetrics sends a batch of metrics at once, and returns no response. SendMetrics(context.Context, *MetricList) (*empty.Empty, error) }
ForwardServer is the server API for Forward service.
type MetricList ¶
type MetricList struct {
Metrics []*metricpb.Metric `protobuf:"bytes,1,rep,name=metrics,proto3" json:"metrics,omitempty"`
}
MetricList just wraps a list of metricpb.Metric's.
func (*MetricList) Descriptor ¶
func (*MetricList) Descriptor() ([]byte, []int)
func (*MetricList) GetMetrics ¶
func (m *MetricList) GetMetrics() []*metricpb.Metric
func (*MetricList) Marshal ¶
func (m *MetricList) Marshal() (dAtA []byte, err error)
func (*MetricList) ProtoMessage ¶
func (*MetricList) ProtoMessage()
func (*MetricList) Reset ¶
func (m *MetricList) Reset()
func (*MetricList) Size ¶
func (m *MetricList) Size() (n int)
func (*MetricList) String ¶
func (m *MetricList) String() string
func (*MetricList) Unmarshal ¶
func (m *MetricList) Unmarshal(dAtA []byte) error
func (*MetricList) XXX_DiscardUnknown ¶
func (m *MetricList) XXX_DiscardUnknown()
func (*MetricList) XXX_Marshal ¶
func (m *MetricList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MetricList) XXX_Merge ¶
func (m *MetricList) XXX_Merge(src proto.Message)
func (*MetricList) XXX_Size ¶
func (m *MetricList) XXX_Size() int
func (*MetricList) XXX_Unmarshal ¶
func (m *MetricList) XXX_Unmarshal(b []byte) error
Click to show internal directories.
Click to hide internal directories.