forwardrpc

package
v6.0.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2018 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package forwardrpc is a generated protocol buffer package.

It is generated from these files:

forwardrpc/forward.proto

It has these top-level messages:

MetricList

Index

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) (*google_protobuf1.Empty, error)
}

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) (*google_protobuf1.Empty, error)
}

type MetricList

type MetricList struct {
	Metrics []*metricpb.Metric `protobuf:"bytes,1,rep,name=metrics" 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) MarshalTo

func (m *MetricList) MarshalTo(dAtA []byte) (int, 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

Jump to

Keyboard shortcuts

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