grpc

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2019 License: AGPL-3.0 Imports: 8 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthMonitoring = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowMonitoring   = fmt.Errorf("proto: integer overflow")
)

Functions

func RegisterMonitoringServer

func RegisterMonitoringServer(s *grpc.Server, srv MonitoringServer)

Types

type Ack

type Ack struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Ack) Descriptor

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

func (*Ack) Marshal

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

func (*Ack) MarshalTo

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

func (*Ack) ProtoMessage

func (*Ack) ProtoMessage()

func (*Ack) Reset

func (m *Ack) Reset()

func (*Ack) Size

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

func (*Ack) String

func (m *Ack) String() string

func (*Ack) Unmarshal

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

func (*Ack) XXX_DiscardUnknown added in v0.2.0

func (m *Ack) XXX_DiscardUnknown()

func (*Ack) XXX_Marshal added in v0.2.0

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

func (*Ack) XXX_Merge added in v0.2.0

func (dst *Ack) XXX_Merge(src proto.Message)

func (*Ack) XXX_Size added in v0.2.0

func (m *Ack) XXX_Size() int

func (*Ack) XXX_Unmarshal added in v0.2.0

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

type MonitoringClient

type MonitoringClient interface {
	SetSamplingRatio(ctx context.Context, in *SamplingRatio, opts ...grpc.CallOption) (*Ack, error)
}

func NewMonitoringClient

func NewMonitoringClient(cc *grpc.ClientConn) MonitoringClient

type MonitoringServer

type MonitoringServer interface {
	SetSamplingRatio(context.Context, *SamplingRatio) (*Ack, error)
}

type SamplingRatio

type SamplingRatio struct {
	Value                float32  `protobuf:"fixed32,1,opt,name=value,proto3" json:"value,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*SamplingRatio) Descriptor

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

func (*SamplingRatio) GetValue

func (m *SamplingRatio) GetValue() float32

func (*SamplingRatio) Marshal

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

func (*SamplingRatio) MarshalTo

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

func (*SamplingRatio) ProtoMessage

func (*SamplingRatio) ProtoMessage()

func (*SamplingRatio) Reset

func (m *SamplingRatio) Reset()

func (*SamplingRatio) Size

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

func (*SamplingRatio) String

func (m *SamplingRatio) String() string

func (*SamplingRatio) Unmarshal

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

func (*SamplingRatio) XXX_DiscardUnknown added in v0.2.0

func (m *SamplingRatio) XXX_DiscardUnknown()

func (*SamplingRatio) XXX_Marshal added in v0.2.0

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

func (*SamplingRatio) XXX_Merge added in v0.2.0

func (dst *SamplingRatio) XXX_Merge(src proto.Message)

func (*SamplingRatio) XXX_Size added in v0.2.0

func (m *SamplingRatio) XXX_Size() int

func (*SamplingRatio) XXX_Unmarshal added in v0.2.0

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

Jump to

Keyboard shortcuts

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