veneur: github.com/stripe/veneur/forwardrpc Index | Files

package forwardrpc

import "github.com/stripe/veneur/forwardrpc"

Index

Package Files

forward.pb.go

Variables

var (
    ErrInvalidLengthForward = fmt.Errorf("proto: negative length found during unmarshaling")
    ErrIntOverflowForward   = fmt.Errorf("proto: integer overflow")
)

func RegisterForwardServer Uses

func RegisterForwardServer(s *grpc.Server, srv ForwardServer)

type ForwardClient Uses

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 Uses

func NewForwardClient(cc *grpc.ClientConn) ForwardClient

type ForwardServer Uses

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 Uses

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 Uses

func (*MetricList) Descriptor() ([]byte, []int)

func (*MetricList) GetMetrics Uses

func (m *MetricList) GetMetrics() []*metricpb.Metric

func (*MetricList) Marshal Uses

func (m *MetricList) Marshal() (dAtA []byte, err error)

func (*MetricList) MarshalTo Uses

func (m *MetricList) MarshalTo(dAtA []byte) (int, error)

func (*MetricList) ProtoMessage Uses

func (*MetricList) ProtoMessage()

func (*MetricList) Reset Uses

func (m *MetricList) Reset()

func (*MetricList) Size Uses

func (m *MetricList) Size() (n int)

func (*MetricList) String Uses

func (m *MetricList) String() string

func (*MetricList) Unmarshal Uses

func (m *MetricList) Unmarshal(dAtA []byte) error

func (*MetricList) XXX_DiscardUnknown Uses

func (m *MetricList) XXX_DiscardUnknown()

func (*MetricList) XXX_Marshal Uses

func (m *MetricList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MetricList) XXX_Merge Uses

func (m *MetricList) XXX_Merge(src proto.Message)

func (*MetricList) XXX_Size Uses

func (m *MetricList) XXX_Size() int

func (*MetricList) XXX_Unmarshal Uses

func (m *MetricList) XXX_Unmarshal(b []byte) error

Package forwardrpc imports 8 packages (graph) and is imported by 4 packages. Updated 2019-04-06. Refresh now. Tools for package owners.