Documentation ¶
Index ¶
- Variables
- func RegisterMetricsServer(s *grpc.Server, srv MetricsServer)
- type KeyType
- type MetricsClient
- type MetricsServer
- type Metrics_MetricsPollerClient
- type Metrics_MetricsPollerServer
- type PublicKey
- func (*PublicKey) Descriptor() ([]byte, []int)
- func (m *PublicKey) GetKeytype() KeyType
- func (m *PublicKey) GetPublicKey() []byte
- func (m *PublicKey) Marshal() (dAtA []byte, err error)
- func (m *PublicKey) MarshalTo(dAtA []byte) (int, error)
- func (*PublicKey) ProtoMessage()
- func (m *PublicKey) Reset()
- func (m *PublicKey) Size() (n int)
- func (m *PublicKey) String() string
- func (m *PublicKey) Unmarshal(dAtA []byte) error
- func (m *PublicKey) XXX_DiscardUnknown()
- func (m *PublicKey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PublicKey) XXX_Merge(src proto.Message)
- func (m *PublicKey) XXX_Size() int
- func (m *PublicKey) XXX_Unmarshal(b []byte) error
- type Scrape
- func (*Scrape) Descriptor() ([]byte, []int)
- func (m *Scrape) GetData() []byte
- func (m *Scrape) GetPublicKey() *PublicKey
- func (m *Scrape) GetSignature() []byte
- func (m *Scrape) Marshal() (dAtA []byte, err error)
- func (m *Scrape) MarshalTo(dAtA []byte) (int, error)
- func (*Scrape) ProtoMessage()
- func (m *Scrape) Reset()
- func (m *Scrape) Size() (n int)
- func (m *Scrape) String() string
- func (m *Scrape) Unmarshal(dAtA []byte) error
- func (m *Scrape) XXX_DiscardUnknown()
- func (m *Scrape) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Scrape) XXX_Merge(src proto.Message)
- func (m *Scrape) XXX_Size() int
- func (m *Scrape) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidLengthMetrics = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowMetrics = fmt.Errorf("proto: integer overflow") )
View Source
var KeyType_name = map[int32]string{
0: "ED25519",
1: "RESERVED",
}
View Source
var KeyType_value = map[string]int32{
"ED25519": 0,
"RESERVED": 1,
}
Functions ¶
func RegisterMetricsServer ¶
func RegisterMetricsServer(s *grpc.Server, srv MetricsServer)
Types ¶
type MetricsClient ¶
type MetricsClient interface { // MetricsPoller polls for metrics from the datacentre out to clients // Clients establish a connection and then send one scrape in protobuf // format each time the server sends a poll request MetricsPoller(ctx context.Context, opts ...grpc.CallOption) (Metrics_MetricsPollerClient, error) }
MetricsClient is the client API for Metrics service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewMetricsClient ¶
func NewMetricsClient(cc *grpc.ClientConn) MetricsClient
type MetricsServer ¶
type MetricsServer interface { // MetricsPoller polls for metrics from the datacentre out to clients // Clients establish a connection and then send one scrape in protobuf // format each time the server sends a poll request MetricsPoller(Metrics_MetricsPollerServer) error }
MetricsServer is the server API for Metrics service.
type PublicKey ¶
type PublicKey struct { PublicKey []byte `protobuf:"bytes,1,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"` Keytype KeyType `protobuf:"varint,2,opt,name=keytype,proto3,enum=metrics.KeyType" json:"keytype,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
A Crytpo public key
func (*PublicKey) Descriptor ¶
func (*PublicKey) GetKeytype ¶
func (*PublicKey) GetPublicKey ¶
func (*PublicKey) ProtoMessage ¶
func (*PublicKey) ProtoMessage()
func (*PublicKey) XXX_DiscardUnknown ¶
func (m *PublicKey) XXX_DiscardUnknown()
func (*PublicKey) XXX_Marshal ¶
func (*PublicKey) XXX_Unmarshal ¶
type Scrape ¶
type Scrape struct { Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` Signature []byte `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"` // Sent just once at the start of the stream PublicKey *PublicKey `protobuf:"bytes,3,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Scrape is a wrapped pb scrape of the metrics from one metrics source in the field
func (*Scrape) Descriptor ¶
func (*Scrape) GetPublicKey ¶
func (*Scrape) GetSignature ¶
func (*Scrape) ProtoMessage ¶
func (*Scrape) ProtoMessage()
func (*Scrape) XXX_DiscardUnknown ¶
func (m *Scrape) XXX_DiscardUnknown()
func (*Scrape) XXX_Marshal ¶
func (*Scrape) XXX_Unmarshal ¶
Click to show internal directories.
Click to hide internal directories.