forwardrpc

package
v13.2.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2020 License: MIT Imports: 8 Imported by: 18

Documentation

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) (*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) 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

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

Jump to

Keyboard shortcuts

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