Documentation ¶
Overview ¶
Autogenerated by thrift-gen. Do not modify.
Index ¶
- Variables
- func NewTChanTCollectorServer(handler TChanTCollector) thrift.TChanServer
- type Annotation
- func (p *Annotation) GetDuration() int32
- func (p *Annotation) GetTimestamp() float64
- func (p *Annotation) GetValue() string
- func (p *Annotation) IsSetDuration() 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) String() string
- func (p *Annotation) Write(oprot thrift.TProtocol) error
- type AnnotationType
- type BinaryAnnotation
- func (p *BinaryAnnotation) GetAnnotationType() AnnotationType
- func (p *BinaryAnnotation) GetBoolValue() bool
- func (p *BinaryAnnotation) GetBytesValue() []byte
- func (p *BinaryAnnotation) GetDoubleValue() float64
- func (p *BinaryAnnotation) GetIntValue() int64
- func (p *BinaryAnnotation) GetKey() string
- func (p *BinaryAnnotation) GetStringValue() string
- func (p *BinaryAnnotation) IsSetBoolValue() bool
- func (p *BinaryAnnotation) IsSetBytesValue() bool
- func (p *BinaryAnnotation) IsSetDoubleValue() bool
- func (p *BinaryAnnotation) IsSetIntValue() bool
- func (p *BinaryAnnotation) IsSetStringValue() 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) ReadField5(iprot thrift.TProtocol) error
- func (p *BinaryAnnotation) ReadField6(iprot thrift.TProtocol) error
- func (p *BinaryAnnotation) ReadField7(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() int32
- 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 MultiSubmitArgs
- type MultiSubmitResult
- func (p *MultiSubmitResult) GetSuccess() []*Response
- func (p *MultiSubmitResult) IsSetSuccess() bool
- func (p *MultiSubmitResult) Read(iprot thrift.TProtocol) error
- func (p *MultiSubmitResult) ReadField0(iprot thrift.TProtocol) error
- func (p *MultiSubmitResult) String() string
- func (p *MultiSubmitResult) Write(oprot thrift.TProtocol) error
- type Response
- type Span
- func (p *Span) GetAnnotations() []*Annotation
- func (p *Span) GetBinaryAnnotations() []*BinaryAnnotation
- func (p *Span) GetDebug() bool
- func (p *Span) GetHost() *Endpoint
- func (p *Span) GetId() []byte
- func (p *Span) GetName() string
- func (p *Span) GetParentId() []byte
- func (p *Span) GetTraceId() []byte
- func (p *Span) IsSetDebug() bool
- func (p *Span) IsSetHost() bool
- func (p *Span) Read(iprot thrift.TProtocol) error
- func (p *Span) ReadField1(iprot thrift.TProtocol) error
- func (p *Span) ReadField2(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) ReadField7(iprot thrift.TProtocol) error
- func (p *Span) ReadField8(iprot thrift.TProtocol) error
- func (p *Span) String() string
- func (p *Span) Write(oprot thrift.TProtocol) error
- type SubmitArgs
- type SubmitResult
- func (p *SubmitResult) GetSuccess() *Response
- func (p *SubmitResult) IsSetSuccess() bool
- func (p *SubmitResult) Read(iprot thrift.TProtocol) error
- func (p *SubmitResult) ReadField0(iprot thrift.TProtocol) error
- func (p *SubmitResult) String() string
- func (p *SubmitResult) Write(oprot thrift.TProtocol) error
- type TChanTCollector
- type TCollector
- type TCollectorClient
- type TCollectorProcessor
- func (p *TCollectorProcessor) AddToProcessorMap(key string, processor thrift.TProcessorFunction)
- func (p *TCollectorProcessor) GetProcessorFunction(key string) (processor thrift.TProcessorFunction, ok bool)
- func (p *TCollectorProcessor) Process(iprot, oprot thrift.TProtocol) (success bool, err thrift.TException)
- func (p *TCollectorProcessor) ProcessorMap() map[string]thrift.TProcessorFunction
Constants ¶
This section is empty.
Variables ¶
View Source
var Annotation_Duration_DEFAULT int32
View Source
var BinaryAnnotation_BoolValue_DEFAULT bool
View Source
var BinaryAnnotation_BytesValue_DEFAULT []byte
View Source
var BinaryAnnotation_DoubleValue_DEFAULT float64
View Source
var BinaryAnnotation_IntValue_DEFAULT int64
View Source
var BinaryAnnotation_StringValue_DEFAULT string
View Source
var GoUnusedProtection__ int
View Source
var MultiSubmitResult_Success_DEFAULT []*Response
View Source
var Span_Debug_DEFAULT bool = false
Functions ¶
func NewTChanTCollectorServer ¶
func NewTChanTCollectorServer(handler TChanTCollector) thrift.TChanServer
Types ¶
type Annotation ¶
type Annotation struct { Timestamp float64 `thrift:"timestamp,1" json:"timestamp"` Value string `thrift:"value,2" json:"value"` Duration *int32 `thrift:"duration,3" json:"duration"` }
func NewAnnotation ¶
func NewAnnotation() *Annotation
func (*Annotation) GetDuration ¶
func (p *Annotation) GetDuration() int32
func (*Annotation) GetTimestamp ¶
func (p *Annotation) GetTimestamp() float64
func (*Annotation) GetValue ¶
func (p *Annotation) GetValue() string
func (*Annotation) IsSetDuration ¶
func (p *Annotation) IsSetDuration() 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) 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"` StringValue *string `thrift:"stringValue,2" json:"stringValue"` DoubleValue *float64 `thrift:"doubleValue,3" json:"doubleValue"` BoolValue *bool `thrift:"boolValue,4" json:"boolValue"` BytesValue []byte `thrift:"bytesValue,5" json:"bytesValue"` IntValue *int64 `thrift:"intValue,6" json:"intValue"` AnnotationType AnnotationType `thrift:"annotationType,7" json:"annotationType"` }
func NewBinaryAnnotation ¶
func NewBinaryAnnotation() *BinaryAnnotation
func (*BinaryAnnotation) GetAnnotationType ¶
func (p *BinaryAnnotation) GetAnnotationType() AnnotationType
func (*BinaryAnnotation) GetBoolValue ¶
func (p *BinaryAnnotation) GetBoolValue() bool
func (*BinaryAnnotation) GetBytesValue ¶
func (p *BinaryAnnotation) GetBytesValue() []byte
func (*BinaryAnnotation) GetDoubleValue ¶
func (p *BinaryAnnotation) GetDoubleValue() float64
func (*BinaryAnnotation) GetIntValue ¶
func (p *BinaryAnnotation) GetIntValue() int64
func (*BinaryAnnotation) GetKey ¶
func (p *BinaryAnnotation) GetKey() string
func (*BinaryAnnotation) GetStringValue ¶
func (p *BinaryAnnotation) GetStringValue() string
func (*BinaryAnnotation) IsSetBoolValue ¶
func (p *BinaryAnnotation) IsSetBoolValue() bool
func (*BinaryAnnotation) IsSetBytesValue ¶
func (p *BinaryAnnotation) IsSetBytesValue() bool
func (*BinaryAnnotation) IsSetDoubleValue ¶
func (p *BinaryAnnotation) IsSetDoubleValue() bool
func (*BinaryAnnotation) IsSetIntValue ¶
func (p *BinaryAnnotation) IsSetIntValue() bool
func (*BinaryAnnotation) IsSetStringValue ¶
func (p *BinaryAnnotation) IsSetStringValue() 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) ReadField5 ¶
func (p *BinaryAnnotation) ReadField5(iprot thrift.TProtocol) error
func (*BinaryAnnotation) ReadField6 ¶
func (p *BinaryAnnotation) ReadField6(iprot thrift.TProtocol) error
func (*BinaryAnnotation) ReadField7 ¶
func (p *BinaryAnnotation) ReadField7(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 int32 `thrift:"port,2" json:"port"` ServiceName string `thrift:"serviceName,3" json:"serviceName"` }
var Span_Host_DEFAULT *Endpoint
func NewEndpoint ¶
func NewEndpoint() *Endpoint
func (*Endpoint) GetServiceName ¶
type MultiSubmitArgs ¶
type MultiSubmitArgs struct {
Spans []*Span `thrift:"spans,1" json:"spans"`
}
func NewMultiSubmitArgs ¶
func NewMultiSubmitArgs() *MultiSubmitArgs
func (*MultiSubmitArgs) GetSpans ¶
func (p *MultiSubmitArgs) GetSpans() []*Span
func (*MultiSubmitArgs) ReadField1 ¶
func (p *MultiSubmitArgs) ReadField1(iprot thrift.TProtocol) error
func (*MultiSubmitArgs) String ¶
func (p *MultiSubmitArgs) String() string
type MultiSubmitResult ¶
type MultiSubmitResult struct {
Success []*Response `thrift:"success,0" json:"success"`
}
func NewMultiSubmitResult ¶
func NewMultiSubmitResult() *MultiSubmitResult
func (*MultiSubmitResult) GetSuccess ¶
func (p *MultiSubmitResult) GetSuccess() []*Response
func (*MultiSubmitResult) IsSetSuccess ¶
func (p *MultiSubmitResult) IsSetSuccess() bool
func (*MultiSubmitResult) ReadField0 ¶
func (p *MultiSubmitResult) ReadField0(iprot thrift.TProtocol) error
func (*MultiSubmitResult) String ¶
func (p *MultiSubmitResult) String() string
type Response ¶
type Response struct {
Ok bool `thrift:"ok,1" json:"ok"`
}
var SubmitResult_Success_DEFAULT *Response
func NewResponse ¶
func NewResponse() *Response
type Span ¶
type Span struct { TraceId []byte `thrift:"traceId,1" json:"traceId"` Host *Endpoint `thrift:"host,2" json:"host"` Name string `thrift:"name,3" json:"name"` Id []byte `thrift:"id,4" json:"id"` ParentId []byte `thrift:"parentId,5" json:"parentId"` Annotations []*Annotation `thrift:"annotations,6" json:"annotations"` BinaryAnnotations []*BinaryAnnotation `thrift:"binaryAnnotations,7" json:"binaryAnnotations"` Debug bool `thrift:"debug,8" json:"debug"` }
var SubmitArgs_Span_DEFAULT *Span
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 ¶
type SubmitArgs ¶
type SubmitArgs struct {
Span *Span `thrift:"span,1" json:"span"`
}
func NewSubmitArgs ¶
func NewSubmitArgs() *SubmitArgs
func (*SubmitArgs) GetSpan ¶
func (p *SubmitArgs) GetSpan() *Span
func (*SubmitArgs) IsSetSpan ¶
func (p *SubmitArgs) IsSetSpan() bool
func (*SubmitArgs) ReadField1 ¶
func (p *SubmitArgs) ReadField1(iprot thrift.TProtocol) error
func (*SubmitArgs) String ¶
func (p *SubmitArgs) String() string
type SubmitResult ¶
type SubmitResult struct {
Success *Response `thrift:"success,0" json:"success"`
}
func NewSubmitResult ¶
func NewSubmitResult() *SubmitResult
func (*SubmitResult) GetSuccess ¶
func (p *SubmitResult) GetSuccess() *Response
func (*SubmitResult) IsSetSuccess ¶
func (p *SubmitResult) IsSetSuccess() bool
func (*SubmitResult) ReadField0 ¶
func (p *SubmitResult) ReadField0(iprot thrift.TProtocol) error
func (*SubmitResult) String ¶
func (p *SubmitResult) String() string
type TChanTCollector ¶
type TChanTCollector interface { MultiSubmit(ctx thrift.Context, spans []*Span) ([]*Response, error) Submit(ctx thrift.Context, span *Span) (*Response, error) }
func NewTChanTCollectorClient ¶
func NewTChanTCollectorClient(client thrift.TChanClient) TChanTCollector
type TCollector ¶
type TCollectorClient ¶
type TCollectorClient struct { Transport thrift.TTransport ProtocolFactory thrift.TProtocolFactory InputProtocol thrift.TProtocol OutputProtocol thrift.TProtocol SeqId int32 }
func NewTCollectorClientFactory ¶
func NewTCollectorClientFactory(t thrift.TTransport, f thrift.TProtocolFactory) *TCollectorClient
func NewTCollectorClientProtocol ¶
func NewTCollectorClientProtocol(t thrift.TTransport, iprot thrift.TProtocol, oprot thrift.TProtocol) *TCollectorClient
func (*TCollectorClient) MultiSubmit ¶
func (p *TCollectorClient) MultiSubmit(spans []*Span) (r []*Response, err error)
Parameters:
- Spans
type TCollectorProcessor ¶
type TCollectorProcessor struct {
// contains filtered or unexported fields
}
func NewTCollectorProcessor ¶
func NewTCollectorProcessor(handler TCollector) *TCollectorProcessor
func (*TCollectorProcessor) AddToProcessorMap ¶
func (p *TCollectorProcessor) AddToProcessorMap(key string, processor thrift.TProcessorFunction)
func (*TCollectorProcessor) GetProcessorFunction ¶
func (p *TCollectorProcessor) GetProcessorFunction(key string) (processor thrift.TProcessorFunction, ok bool)
func (*TCollectorProcessor) Process ¶
func (p *TCollectorProcessor) Process(iprot, oprot thrift.TProtocol) (success bool, err thrift.TException)
func (*TCollectorProcessor) ProcessorMap ¶
func (p *TCollectorProcessor) ProcessorMap() map[string]thrift.TProcessorFunction
Click to show internal directories.
Click to hide internal directories.