Documentation ¶
Overview ¶
Package loggregator_v2 is a generated protocol buffer package.
It is generated from these files:
egress.proto envelope.proto ingress.proto
It has these top-level messages:
EgressRequest Filter Envelope Value Log Counter Gauge GaugeValue Timer IngressResponse
Index ¶
- Variables
- func NewGrpcClient(logger lager.Logger, config *MetronConfig, ingressClient IngressClient) *grpcClient
- func RegisterEgressServer(s *grpc.Server, srv EgressServer)
- func RegisterIngressServer(s *grpc.Server, srv IngressServer)
- type Client
- type Connector
- type Counter
- func (*Counter) Descriptor() ([]byte, []int)
- func (m *Counter) GetDelta() uint64
- func (m *Counter) GetName() string
- func (m *Counter) GetTotal() uint64
- func (m *Counter) GetValue() isCounter_Value
- func (*Counter) ProtoMessage()
- func (m *Counter) Reset()
- func (m *Counter) String() string
- func (*Counter) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, ...)
- type Counter_Delta
- type Counter_Total
- type EgressClient
- type EgressRequest
- type EgressServer
- type Egress_ReceiverClient
- type Egress_ReceiverServer
- type Envelope
- func (*Envelope) Descriptor() ([]byte, []int)
- func (m *Envelope) GetCounter() *Counter
- func (m *Envelope) GetGauge() *Gauge
- func (m *Envelope) GetLog() *Log
- func (m *Envelope) GetMessage() isEnvelope_Message
- func (m *Envelope) GetSourceId() string
- func (m *Envelope) GetTags() map[string]*Value
- func (m *Envelope) GetTimer() *Timer
- func (m *Envelope) GetTimestamp() int64
- func (*Envelope) ProtoMessage()
- func (m *Envelope) Reset()
- func (m *Envelope) String() string
- func (*Envelope) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, ...)
- type Envelope_Counter
- type Envelope_Gauge
- type Envelope_Log
- type Envelope_Timer
- type Filter
- type Gauge
- type GaugeValue
- type IngressClient
- type IngressResponse
- type IngressServer
- type Ingress_SenderClient
- type Ingress_SenderServer
- type Log
- type Log_Type
- type MetronConfig
- type Timer
- type Value
- func (*Value) Descriptor() ([]byte, []int)
- func (m *Value) GetData() isValue_Data
- func (m *Value) GetDecimal() float64
- func (m *Value) GetInteger() int64
- func (m *Value) GetText() string
- func (*Value) ProtoMessage()
- func (m *Value) Reset()
- func (m *Value) String() string
- func (*Value) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, ...)
- type Value_Decimal
- type Value_Integer
- type Value_Text
Constants ¶
This section is empty.
Variables ¶
View Source
var Log_Type_name = map[int32]string{
0: "OUT",
1: "ERR",
}
View Source
var Log_Type_value = map[string]int32{
"OUT": 0,
"ERR": 1,
}
Functions ¶
func NewGrpcClient ¶
func NewGrpcClient(logger lager.Logger, config *MetronConfig, ingressClient IngressClient) *grpcClient
func RegisterEgressServer ¶
func RegisterEgressServer(s *grpc.Server, srv EgressServer)
func RegisterIngressServer ¶
func RegisterIngressServer(s *grpc.Server, srv IngressServer)
Types ¶
type Client ¶
type Connector ¶
type Connector func() (IngressClient, error)
type Counter ¶
type Counter struct { Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` // Types that are valid to be assigned to Value: // *Counter_Delta // *Counter_Total Value isCounter_Value `protobuf_oneof:"value"` }
func (*Counter) Descriptor ¶
func (*Counter) ProtoMessage ¶
func (*Counter) ProtoMessage()
type Counter_Delta ¶
type Counter_Delta struct {
Delta uint64 `protobuf:"varint,2,opt,name=delta,oneof"`
}
type Counter_Total ¶
type Counter_Total struct {
Total uint64 `protobuf:"varint,3,opt,name=total,oneof"`
}
type EgressClient ¶
type EgressClient interface {
Receiver(ctx context.Context, in *EgressRequest, opts ...grpc.CallOption) (Egress_ReceiverClient, error)
}
func NewEgressClient ¶
func NewEgressClient(cc *grpc.ClientConn) EgressClient
type EgressRequest ¶
type EgressRequest struct { ShardId string `protobuf:"bytes,1,opt,name=shard_id,json=shardId" json:"shard_id,omitempty"` Filter *Filter `protobuf:"bytes,2,opt,name=filter" json:"filter,omitempty"` }
func (*EgressRequest) Descriptor ¶
func (*EgressRequest) Descriptor() ([]byte, []int)
func (*EgressRequest) GetFilter ¶
func (m *EgressRequest) GetFilter() *Filter
func (*EgressRequest) GetShardId ¶
func (m *EgressRequest) GetShardId() string
func (*EgressRequest) ProtoMessage ¶
func (*EgressRequest) ProtoMessage()
func (*EgressRequest) Reset ¶
func (m *EgressRequest) Reset()
func (*EgressRequest) String ¶
func (m *EgressRequest) String() string
type EgressServer ¶
type EgressServer interface {
Receiver(*EgressRequest, Egress_ReceiverServer) error
}
type Egress_ReceiverClient ¶
type Egress_ReceiverClient interface { Recv() (*Envelope, error) grpc.ClientStream }
type Egress_ReceiverServer ¶
type Egress_ReceiverServer interface { Send(*Envelope) error grpc.ServerStream }
type Envelope ¶
type Envelope struct { Timestamp int64 `protobuf:"varint,1,opt,name=timestamp" json:"timestamp,omitempty"` SourceId string `protobuf:"bytes,2,opt,name=source_id,json=sourceId" json:"source_id,omitempty"` Tags map[string]*Value `` /* 128-byte string literal not displayed */ // Types that are valid to be assigned to Message: // *Envelope_Log // *Envelope_Counter // *Envelope_Gauge // *Envelope_Timer Message isEnvelope_Message `protobuf_oneof:"message"` }
func (*Envelope) Descriptor ¶
func (*Envelope) GetCounter ¶
func (*Envelope) GetMessage ¶
func (m *Envelope) GetMessage() isEnvelope_Message
func (*Envelope) GetSourceId ¶
func (*Envelope) GetTimestamp ¶
func (*Envelope) ProtoMessage ¶
func (*Envelope) ProtoMessage()
type Envelope_Counter ¶
type Envelope_Counter struct {
Counter *Counter `protobuf:"bytes,5,opt,name=counter,oneof"`
}
type Envelope_Gauge ¶
type Envelope_Gauge struct {
Gauge *Gauge `protobuf:"bytes,6,opt,name=gauge,oneof"`
}
type Envelope_Log ¶
type Envelope_Log struct {
Log *Log `protobuf:"bytes,4,opt,name=log,oneof"`
}
type Envelope_Timer ¶
type Envelope_Timer struct {
Timer *Timer `protobuf:"bytes,7,opt,name=timer,oneof"`
}
type Filter ¶
type Filter struct {
SourceId string `protobuf:"bytes,1,opt,name=source_id,json=sourceId" json:"source_id,omitempty"`
}
func (*Filter) Descriptor ¶
func (*Filter) GetSourceId ¶
func (*Filter) ProtoMessage ¶
func (*Filter) ProtoMessage()
type Gauge ¶
type Gauge struct {
Metrics map[string]*GaugeValue `` /* 134-byte string literal not displayed */
}
func (*Gauge) Descriptor ¶
func (*Gauge) GetMetrics ¶
func (m *Gauge) GetMetrics() map[string]*GaugeValue
func (*Gauge) ProtoMessage ¶
func (*Gauge) ProtoMessage()
type GaugeValue ¶
type GaugeValue struct { Unit string `protobuf:"bytes,1,opt,name=unit" json:"unit,omitempty"` Value float64 `protobuf:"fixed64,2,opt,name=value" json:"value,omitempty"` }
func (*GaugeValue) Descriptor ¶
func (*GaugeValue) Descriptor() ([]byte, []int)
func (*GaugeValue) GetUnit ¶
func (m *GaugeValue) GetUnit() string
func (*GaugeValue) GetValue ¶
func (m *GaugeValue) GetValue() float64
func (*GaugeValue) ProtoMessage ¶
func (*GaugeValue) ProtoMessage()
func (*GaugeValue) Reset ¶
func (m *GaugeValue) Reset()
func (*GaugeValue) String ¶
func (m *GaugeValue) String() string
type IngressClient ¶
type IngressClient interface {
Sender(ctx context.Context, opts ...grpc.CallOption) (Ingress_SenderClient, error)
}
func NewIngressClient ¶
func NewIngressClient(cc *grpc.ClientConn) IngressClient
type IngressResponse ¶
type IngressResponse struct { }
func (*IngressResponse) Descriptor ¶
func (*IngressResponse) Descriptor() ([]byte, []int)
func (*IngressResponse) ProtoMessage ¶
func (*IngressResponse) ProtoMessage()
func (*IngressResponse) Reset ¶
func (m *IngressResponse) Reset()
func (*IngressResponse) String ¶
func (m *IngressResponse) String() string
type IngressServer ¶
type IngressServer interface {
Sender(Ingress_SenderServer) error
}
type Ingress_SenderClient ¶
type Ingress_SenderClient interface { Send(*Envelope) error CloseAndRecv() (*IngressResponse, error) grpc.ClientStream }
type Ingress_SenderServer ¶
type Ingress_SenderServer interface { SendAndClose(*IngressResponse) error Recv() (*Envelope, error) grpc.ServerStream }
type Log ¶
type Log struct { Payload []byte `protobuf:"bytes,1,opt,name=payload,proto3" json:"payload,omitempty"` Type Log_Type `protobuf:"varint,2,opt,name=type,enum=loggregator.v2.Log_Type" json:"type,omitempty"` }
func (*Log) Descriptor ¶
func (*Log) GetPayload ¶
func (*Log) ProtoMessage ¶
func (*Log) ProtoMessage()
type MetronConfig ¶
type MetronConfig struct { UseV2API bool `json:"loggregator_use_v2_api"` APIPort int `json:"loggregator_api_port"` CACertPath string `json:"loggregator_ca_path"` CertPath string `json:"loggregator_cert_path"` KeyPath string `json:"loggregator_key_path"` JobDeployment string `json:"loggregator_job_deployment"` JobName string `json:"loggregator_job_name"` JobIndex string `json:"loggregator_job_index"` JobIP string `json:"loggregator_job_ip"` JobOrigin string `json:"loggregator_job_origin"` DropsondePort int `json:"dropsonde_port"` }
type Timer ¶
type Timer struct { Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` Start int64 `protobuf:"varint,2,opt,name=start" json:"start,omitempty"` Stop int64 `protobuf:"varint,3,opt,name=stop" json:"stop,omitempty"` }
func (*Timer) Descriptor ¶
func (*Timer) ProtoMessage ¶
func (*Timer) ProtoMessage()
type Value ¶
type Value struct { // Types that are valid to be assigned to Data: // *Value_Text // *Value_Integer // *Value_Decimal Data isValue_Data `protobuf_oneof:"data"` }
func (*Value) Descriptor ¶
func (*Value) GetDecimal ¶
func (*Value) GetInteger ¶
func (*Value) ProtoMessage ¶
func (*Value) ProtoMessage()
type Value_Decimal ¶
type Value_Decimal struct {
Decimal float64 `protobuf:"fixed64,3,opt,name=decimal,oneof"`
}
type Value_Integer ¶
type Value_Integer struct {
Integer int64 `protobuf:"varint,2,opt,name=integer,oneof"`
}
type Value_Text ¶
type Value_Text struct {
Text string `protobuf:"bytes,1,opt,name=text,oneof"`
}
Source Files ¶
Click to show internal directories.
Click to hide internal directories.