Documentation ¶
Overview ¶
Package trace is a generated protocol buffer package.
It is generated from these files:
github.com/TheThingsNetwork/ttn/api/trace/trace.proto
It has these top-level messages:
Trace
Index ¶
- Constants
- Variables
- func SetComponent(serviceName, serviceID string)
- type Trace
- func (*Trace) Descriptor() ([]byte, []int)
- func (m *Trace) Flatten() []*Trace
- func (m *Trace) GetEvent() string
- func (m *Trace) GetId() string
- func (m *Trace) GetMetadata() map[string]string
- func (m *Trace) GetParents() []*Trace
- func (m *Trace) GetServiceId() string
- func (m *Trace) GetServiceName() string
- func (m *Trace) GetTime() int64
- func (m *Trace) GoString() (out string)
- func (m *Trace) Marshal() (dAtA []byte, err error)
- func (m *Trace) MarshalTo(dAtA []byte) (int, error)
- func (*Trace) ProtoMessage()
- func (m *Trace) Reset()
- func (m *Trace) Size() (n int)
- func (m *Trace) String() string
- func (m *Trace) Unmarshal(dAtA []byte) error
- func (m *Trace) WithEvent(event string, keyvalue ...interface{}) *Trace
Constants ¶
View Source
const ( AcceptEvent = "accept" BuildDownlinkEvent = "build downlink" CheckMICEvent = "check mic" DeduplicateEvent = "deduplicate" DropEvent = "drop" ForwardEvent = "forward" HandleMACEvent = "handle mac command" ReceiveEvent = "receive" SendEvent = "send" UpdateStateEvent = "update state" )
Event types
Variables ¶
View Source
var ( ErrInvalidLengthTrace = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowTrace = fmt.Errorf("proto: integer overflow") )
Functions ¶
func SetComponent ¶
func SetComponent(serviceName, serviceID string)
SetComponent sets the component information
Types ¶
type Trace ¶
type Trace struct { // Generated ID Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // Time in Unix nanoseconds Time int64 `protobuf:"varint,2,opt,name=time,proto3" json:"time,omitempty"` // The ID of the component ServiceId string `protobuf:"bytes,3,opt,name=service_id,json=serviceId,proto3" json:"service_id,omitempty"` // The name of the component (router/broker/handler) ServiceName string `protobuf:"bytes,4,opt,name=service_name,json=serviceName,proto3" json:"service_name,omitempty"` // Short event name Event string `protobuf:"bytes,5,opt,name=event,proto3" json:"event,omitempty"` // metadata for the event Metadata map[string]string `` /* 150-byte string literal not displayed */ // Parents of the event Parents []*Trace `protobuf:"bytes,11,rep,name=parents" json:"parents,omitempty"` }
Trace information
func (*Trace) Descriptor ¶
func (*Trace) GetMetadata ¶
func (*Trace) GetParents ¶
func (*Trace) GetServiceId ¶
func (*Trace) GetServiceName ¶
func (*Trace) ProtoMessage ¶
func (*Trace) ProtoMessage()
Click to show internal directories.
Click to hide internal directories.