Documentation ¶
Overview ¶
Package events is a generated protocol buffer package.
It is generated from these files:
envelope.proto heartbeat.proto http.proto
It has these top-level messages:
Envelope
Index ¶
- Variables
- type Envelope
- func (m *Envelope) GetEventType() Envelope_EventType
- func (m *Envelope) GetHeartbeat() *Heartbeat
- func (m *Envelope) GetHttpStart() *HttpStart
- func (m *Envelope) GetHttpStop() *HttpStop
- func (m *Envelope) GetOrigin() string
- func (*Envelope) ProtoMessage()
- func (m *Envelope) Reset()
- func (m *Envelope) String() string
- type Envelope_EventType
- type Event
- type Heartbeat
- type HttpStart
- func (m *HttpStart) GetApplicationId() *UUID
- func (m *HttpStart) GetInstanceId() string
- func (m *HttpStart) GetInstanceIndex() int32
- func (m *HttpStart) GetMethod() HttpStart_Method
- func (m *HttpStart) GetParentRequestId() *UUID
- func (m *HttpStart) GetPeerType() PeerType
- func (m *HttpStart) GetRemoteAddress() string
- func (m *HttpStart) GetRequestId() *UUID
- func (m *HttpStart) GetTimestamp() int64
- func (m *HttpStart) GetUri() string
- func (m *HttpStart) GetUserAgent() string
- func (*HttpStart) ProtoMessage()
- func (m *HttpStart) Reset()
- func (m *HttpStart) String() string
- type HttpStart_Method
- type HttpStop
- func (m *HttpStop) GetApplicationId() *UUID
- func (m *HttpStop) GetContentLength() int64
- func (m *HttpStop) GetPeerType() PeerType
- func (m *HttpStop) GetRequestId() *UUID
- func (m *HttpStop) GetStatusCode() int32
- func (m *HttpStop) GetTimestamp() int64
- func (m *HttpStop) GetUri() string
- func (*HttpStop) ProtoMessage()
- func (m *HttpStop) Reset()
- func (m *HttpStop) String() string
- type PeerType
- type UUID
Constants ¶
This section is empty.
Variables ¶
View Source
var Envelope_EventType_name = map[int32]string{
1: "Heartbeat",
2: "HttpStart",
3: "HttpStop",
}
View Source
var Envelope_EventType_value = map[string]int32{
"Heartbeat": 1,
"HttpStart": 2,
"HttpStop": 3,
}
View Source
var HttpStart_Method_name = map[int32]string{
1: "GET",
2: "POST",
3: "PUT",
4: "DELETE",
5: "HEAD",
}
View Source
var HttpStart_Method_value = map[string]int32{
"GET": 1,
"POST": 2,
"PUT": 3,
"DELETE": 4,
"HEAD": 5,
}
View Source
var PeerType_name = map[int32]string{
1: "Client",
2: "Server",
}
View Source
var PeerType_value = map[string]int32{
"Client": 1,
"Server": 2,
}
Functions ¶
This section is empty.
Types ¶
type Envelope ¶
type Envelope struct { Origin *string `protobuf:"bytes,1,req,name=origin" json:"origin,omitempty"` EventType *Envelope_EventType `protobuf:"varint,2,req,name=eventType,enum=events.Envelope_EventType" json:"eventType,omitempty"` Heartbeat *Heartbeat `protobuf:"bytes,3,opt,name=heartbeat" json:"heartbeat,omitempty"` HttpStart *HttpStart `protobuf:"bytes,4,opt,name=httpStart" json:"httpStart,omitempty"` HttpStop *HttpStop `protobuf:"bytes,5,opt,name=httpStop" json:"httpStop,omitempty"` XXX_unrecognized []byte `json:"-"` }
func (*Envelope) GetEventType ¶
func (m *Envelope) GetEventType() Envelope_EventType
func (*Envelope) GetHeartbeat ¶
func (*Envelope) GetHttpStart ¶
func (*Envelope) GetHttpStop ¶
func (*Envelope) ProtoMessage ¶
func (*Envelope) ProtoMessage()
type Envelope_EventType ¶
type Envelope_EventType int32
const ( Envelope_Heartbeat Envelope_EventType = 1 Envelope_HttpStart Envelope_EventType = 2 Envelope_HttpStop Envelope_EventType = 3 )
func (Envelope_EventType) Enum ¶
func (x Envelope_EventType) Enum() *Envelope_EventType
func (Envelope_EventType) String ¶
func (x Envelope_EventType) String() string
func (*Envelope_EventType) UnmarshalJSON ¶
func (x *Envelope_EventType) UnmarshalJSON(data []byte) error
type Heartbeat ¶
type Heartbeat struct { SentCount *uint64 `protobuf:"varint,1,req,name=sentCount" json:"sentCount,omitempty"` ReceivedCount *uint64 `protobuf:"varint,2,req,name=receivedCount" json:"receivedCount,omitempty"` ErrorCount *uint64 `protobuf:"varint,3,req,name=errorCount" json:"errorCount,omitempty"` XXX_unrecognized []byte `json:"-"` }
func (*Heartbeat) GetErrorCount ¶
func (*Heartbeat) GetReceivedCount ¶
func (*Heartbeat) GetSentCount ¶
func (*Heartbeat) ProtoMessage ¶
func (*Heartbeat) ProtoMessage()
type HttpStart ¶
type HttpStart struct { Timestamp *int64 `protobuf:"varint,1,req,name=timestamp" json:"timestamp,omitempty"` RequestId *UUID `protobuf:"bytes,2,req,name=requestId" json:"requestId,omitempty"` PeerType *PeerType `protobuf:"varint,3,req,name=peerType,enum=events.PeerType" json:"peerType,omitempty"` Method *HttpStart_Method `protobuf:"varint,4,req,name=method,enum=events.HttpStart_Method" json:"method,omitempty"` Uri *string `protobuf:"bytes,5,req,name=uri" json:"uri,omitempty"` RemoteAddress *string `protobuf:"bytes,6,req,name=remoteAddress" json:"remoteAddress,omitempty"` UserAgent *string `protobuf:"bytes,7,req,name=userAgent" json:"userAgent,omitempty"` ParentRequestId *UUID `protobuf:"bytes,8,opt,name=parentRequestId" json:"parentRequestId,omitempty"` ApplicationId *UUID `protobuf:"bytes,9,opt,name=applicationId" json:"applicationId,omitempty"` InstanceIndex *int32 `protobuf:"varint,10,opt,name=instanceIndex" json:"instanceIndex,omitempty"` InstanceId *string `protobuf:"bytes,11,opt,name=instanceId" json:"instanceId,omitempty"` XXX_unrecognized []byte `json:"-"` }
func (*HttpStart) GetApplicationId ¶
func (*HttpStart) GetInstanceId ¶
func (*HttpStart) GetInstanceIndex ¶
func (*HttpStart) GetMethod ¶
func (m *HttpStart) GetMethod() HttpStart_Method
func (*HttpStart) GetParentRequestId ¶
func (*HttpStart) GetPeerType ¶
func (*HttpStart) GetRemoteAddress ¶
func (*HttpStart) GetRequestId ¶
func (*HttpStart) GetTimestamp ¶
func (*HttpStart) GetUserAgent ¶
func (*HttpStart) ProtoMessage ¶
func (*HttpStart) ProtoMessage()
type HttpStart_Method ¶
type HttpStart_Method int32
const ( HttpStart_GET HttpStart_Method = 1 HttpStart_POST HttpStart_Method = 2 HttpStart_PUT HttpStart_Method = 3 HttpStart_DELETE HttpStart_Method = 4 HttpStart_HEAD HttpStart_Method = 5 )
func (HttpStart_Method) Enum ¶
func (x HttpStart_Method) Enum() *HttpStart_Method
func (HttpStart_Method) String ¶
func (x HttpStart_Method) String() string
func (*HttpStart_Method) UnmarshalJSON ¶
func (x *HttpStart_Method) UnmarshalJSON(data []byte) error
type HttpStop ¶
type HttpStop struct { Timestamp *int64 `protobuf:"varint,1,req,name=timestamp" json:"timestamp,omitempty"` Uri *string `protobuf:"bytes,2,req,name=uri" json:"uri,omitempty"` RequestId *UUID `protobuf:"bytes,3,req,name=requestId" json:"requestId,omitempty"` PeerType *PeerType `protobuf:"varint,4,req,name=peerType,enum=events.PeerType" json:"peerType,omitempty"` StatusCode *int32 `protobuf:"varint,5,req,name=statusCode" json:"statusCode,omitempty"` ContentLength *int64 `protobuf:"varint,6,req,name=contentLength" json:"contentLength,omitempty"` ApplicationId *UUID `protobuf:"bytes,7,opt,name=applicationId" json:"applicationId,omitempty"` XXX_unrecognized []byte `json:"-"` }
func (*HttpStop) GetApplicationId ¶
func (*HttpStop) GetContentLength ¶
func (*HttpStop) GetPeerType ¶
func (*HttpStop) GetRequestId ¶
func (*HttpStop) GetStatusCode ¶
func (*HttpStop) GetTimestamp ¶
func (*HttpStop) ProtoMessage ¶
func (*HttpStop) ProtoMessage()
Click to show internal directories.
Click to hide internal directories.