Documentation
¶
Index ¶
- Constants
- Variables
- type Annotation
- func (p *Annotation) GetDuration() int32
- func (p *Annotation) GetHost() *Endpoint
- func (p *Annotation) GetTimestamp() int64
- func (p *Annotation) GetValue() string
- func (p *Annotation) IsSetDuration() bool
- func (p *Annotation) IsSetHost() bool
- func (p *Annotation) Read(iprot thrift.TProtocol) error
- func (p *Annotation) ReadField1(iprot thrift.TProtocol) error
- func (p *Annotation) ReadField2(iprot thrift.TProtocol) error
- func (p *Annotation) ReadField3(iprot thrift.TProtocol) error
- func (p *Annotation) ReadField4(iprot thrift.TProtocol) error
- func (p *Annotation) String() string
- func (p *Annotation) Write(oprot thrift.TProtocol) error
- type AnnotationType
- type BinaryAnnotation
- func (p *BinaryAnnotation) GetAnnotationType() AnnotationType
- func (p *BinaryAnnotation) GetHost() *Endpoint
- func (p *BinaryAnnotation) GetKey() string
- func (p *BinaryAnnotation) GetValue() []byte
- func (p *BinaryAnnotation) IsSetHost() bool
- func (p *BinaryAnnotation) Read(iprot thrift.TProtocol) error
- func (p *BinaryAnnotation) ReadField1(iprot thrift.TProtocol) error
- func (p *BinaryAnnotation) ReadField2(iprot thrift.TProtocol) error
- func (p *BinaryAnnotation) ReadField3(iprot thrift.TProtocol) error
- func (p *BinaryAnnotation) ReadField4(iprot thrift.TProtocol) error
- func (p *BinaryAnnotation) String() string
- func (p *BinaryAnnotation) Write(oprot thrift.TProtocol) error
- type Endpoint
- func (p *Endpoint) GetIpv4() int32
- func (p *Endpoint) GetPort() int16
- func (p *Endpoint) GetServiceName() string
- func (p *Endpoint) Read(iprot thrift.TProtocol) error
- func (p *Endpoint) ReadField1(iprot thrift.TProtocol) error
- func (p *Endpoint) ReadField2(iprot thrift.TProtocol) error
- func (p *Endpoint) ReadField3(iprot thrift.TProtocol) error
- func (p *Endpoint) String() string
- func (p *Endpoint) Write(oprot thrift.TProtocol) error
- type Span
- func (p *Span) GetAnnotations() []*Annotation
- func (p *Span) GetBinaryAnnotations() []*BinaryAnnotation
- func (p *Span) GetDebug() bool
- func (p *Span) GetId() int64
- func (p *Span) GetName() string
- func (p *Span) GetParentId() int64
- func (p *Span) GetTraceId() int64
- func (p *Span) IsSetDebug() bool
- func (p *Span) IsSetParentId() bool
- func (p *Span) Read(iprot thrift.TProtocol) error
- func (p *Span) ReadField1(iprot thrift.TProtocol) error
- func (p *Span) ReadField3(iprot thrift.TProtocol) error
- func (p *Span) ReadField4(iprot thrift.TProtocol) error
- func (p *Span) ReadField5(iprot thrift.TProtocol) error
- func (p *Span) ReadField6(iprot thrift.TProtocol) error
- func (p *Span) ReadField8(iprot thrift.TProtocol) error
- func (p *Span) ReadField9(iprot thrift.TProtocol) error
- func (p *Span) String() string
- func (p *Span) Write(oprot thrift.TProtocol) error
Constants ¶
View Source
const CLIENT_RECV = "cr"
View Source
const CLIENT_SEND = "cs"
View Source
const SERVER_RECV = "sr"
View Source
const SERVER_SEND = "ss"
Variables ¶
View Source
var Annotation_Duration_DEFAULT int32
View Source
var GoUnusedProtection__ int
View Source
var Span_Debug_DEFAULT bool = false
View Source
var Span_ParentId_DEFAULT int64
Functions ¶
This section is empty.
Types ¶
type Annotation ¶
type Annotation struct {
Timestamp int64 `thrift:"timestamp,1" json:"timestamp"`
Value string `thrift:"value,2" json:"value"`
Host *Endpoint `thrift:"host,3" json:"host"`
Duration *int32 `thrift:"duration,4" json:"duration"`
}
func NewAnnotation ¶
func NewAnnotation() *Annotation
func (*Annotation) GetDuration ¶
func (p *Annotation) GetDuration() int32
func (*Annotation) GetHost ¶
func (p *Annotation) GetHost() *Endpoint
func (*Annotation) GetTimestamp ¶
func (p *Annotation) GetTimestamp() int64
func (*Annotation) GetValue ¶
func (p *Annotation) GetValue() string
func (*Annotation) IsSetDuration ¶
func (p *Annotation) IsSetDuration() bool
func (*Annotation) IsSetHost ¶
func (p *Annotation) IsSetHost() bool
func (*Annotation) ReadField1 ¶
func (p *Annotation) ReadField1(iprot thrift.TProtocol) error
func (*Annotation) ReadField2 ¶
func (p *Annotation) ReadField2(iprot thrift.TProtocol) error
func (*Annotation) ReadField3 ¶
func (p *Annotation) ReadField3(iprot thrift.TProtocol) error
func (*Annotation) ReadField4 ¶
func (p *Annotation) ReadField4(iprot thrift.TProtocol) error
func (*Annotation) String ¶
func (p *Annotation) String() string
type AnnotationType ¶
type AnnotationType int64
const ( AnnotationType_BOOL AnnotationType = 0 AnnotationType_BYTES AnnotationType = 1 AnnotationType_I16 AnnotationType = 2 AnnotationType_I32 AnnotationType = 3 AnnotationType_I64 AnnotationType = 4 AnnotationType_DOUBLE AnnotationType = 5 AnnotationType_STRING AnnotationType = 6 )
func AnnotationTypeFromString ¶
func AnnotationTypeFromString(s string) (AnnotationType, error)
func AnnotationTypePtr ¶
func AnnotationTypePtr(v AnnotationType) *AnnotationType
func (AnnotationType) String ¶
func (p AnnotationType) String() string
type BinaryAnnotation ¶
type BinaryAnnotation struct {
Key string `thrift:"key,1" json:"key"`
Value []byte `thrift:"value,2" json:"value"`
AnnotationType AnnotationType `thrift:"annotation_type,3" json:"annotation_type"`
Host *Endpoint `thrift:"host,4" json:"host"`
}
func NewBinaryAnnotation ¶
func NewBinaryAnnotation() *BinaryAnnotation
func (*BinaryAnnotation) GetAnnotationType ¶
func (p *BinaryAnnotation) GetAnnotationType() AnnotationType
func (*BinaryAnnotation) GetHost ¶
func (p *BinaryAnnotation) GetHost() *Endpoint
func (*BinaryAnnotation) GetKey ¶
func (p *BinaryAnnotation) GetKey() string
func (*BinaryAnnotation) GetValue ¶
func (p *BinaryAnnotation) GetValue() []byte
func (*BinaryAnnotation) IsSetHost ¶
func (p *BinaryAnnotation) IsSetHost() bool
func (*BinaryAnnotation) ReadField1 ¶
func (p *BinaryAnnotation) ReadField1(iprot thrift.TProtocol) error
func (*BinaryAnnotation) ReadField2 ¶
func (p *BinaryAnnotation) ReadField2(iprot thrift.TProtocol) error
func (*BinaryAnnotation) ReadField3 ¶
func (p *BinaryAnnotation) ReadField3(iprot thrift.TProtocol) error
func (*BinaryAnnotation) ReadField4 ¶
func (p *BinaryAnnotation) ReadField4(iprot thrift.TProtocol) error
func (*BinaryAnnotation) String ¶
func (p *BinaryAnnotation) String() string
type Endpoint ¶
type Endpoint struct {
Ipv4 int32 `thrift:"ipv4,1" json:"ipv4"`
Port int16 `thrift:"port,2" json:"port"`
ServiceName string `thrift:"service_name,3" json:"service_name"`
}
var Annotation_Host_DEFAULT *Endpoint
var BinaryAnnotation_Host_DEFAULT *Endpoint
func NewEndpoint ¶
func NewEndpoint() *Endpoint
func (*Endpoint) GetServiceName ¶
type Span ¶
type Span struct {
TraceId int64 `thrift:"trace_id,1" json:"trace_id"`
// unused field # 2
Name string `thrift:"name,3" json:"name"`
Id int64 `thrift:"id,4" json:"id"`
ParentId *int64 `thrift:"parent_id,5" json:"parent_id"`
Annotations []*Annotation `thrift:"annotations,6" json:"annotations"`
// unused field # 7
BinaryAnnotations []*BinaryAnnotation `thrift:"binary_annotations,8" json:"binary_annotations"`
Debug bool `thrift:"debug,9" json:"debug"`
}
func (*Span) GetAnnotations ¶
func (p *Span) GetAnnotations() []*Annotation
func (*Span) GetBinaryAnnotations ¶
func (p *Span) GetBinaryAnnotations() []*BinaryAnnotation
func (*Span) GetParentId ¶
func (*Span) GetTraceId ¶
func (*Span) IsSetDebug ¶
func (*Span) IsSetParentId ¶
Click to show internal directories.
Click to hide internal directories.