zipkin

package
Version: v1.0.0-...-bcb789f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 28, 2015 License: Apache-2.0 Imports: 3 Imported by: 8

Documentation

Index

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) Read

func (p *Annotation) Read(iprot thrift.TProtocol) error

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

func (*Annotation) Write

func (p *Annotation) Write(oprot thrift.TProtocol) error

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) Read

func (p *BinaryAnnotation) Read(iprot thrift.TProtocol) error

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

func (*BinaryAnnotation) Write

func (p *BinaryAnnotation) Write(oprot thrift.TProtocol) error

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) GetIpv4

func (p *Endpoint) GetIpv4() int32

func (*Endpoint) GetPort

func (p *Endpoint) GetPort() int16

func (*Endpoint) GetServiceName

func (p *Endpoint) GetServiceName() string

func (*Endpoint) Read

func (p *Endpoint) Read(iprot thrift.TProtocol) error

func (*Endpoint) ReadField1

func (p *Endpoint) ReadField1(iprot thrift.TProtocol) error

func (*Endpoint) ReadField2

func (p *Endpoint) ReadField2(iprot thrift.TProtocol) error

func (*Endpoint) ReadField3

func (p *Endpoint) ReadField3(iprot thrift.TProtocol) error

func (*Endpoint) String

func (p *Endpoint) String() string

func (*Endpoint) Write

func (p *Endpoint) Write(oprot thrift.TProtocol) error

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 NewSpan

func NewSpan() *Span

func (*Span) GetAnnotations

func (p *Span) GetAnnotations() []*Annotation

func (*Span) GetBinaryAnnotations

func (p *Span) GetBinaryAnnotations() []*BinaryAnnotation

func (*Span) GetDebug

func (p *Span) GetDebug() bool

func (*Span) GetId

func (p *Span) GetId() int64

func (*Span) GetName

func (p *Span) GetName() string

func (*Span) GetParentId

func (p *Span) GetParentId() int64

func (*Span) GetTraceId

func (p *Span) GetTraceId() int64

func (*Span) IsSetDebug

func (p *Span) IsSetDebug() bool

func (*Span) IsSetParentId

func (p *Span) IsSetParentId() bool

func (*Span) Read

func (p *Span) Read(iprot thrift.TProtocol) error

func (*Span) ReadField1

func (p *Span) ReadField1(iprot thrift.TProtocol) error

func (*Span) ReadField3

func (p *Span) ReadField3(iprot thrift.TProtocol) error

func (*Span) ReadField4

func (p *Span) ReadField4(iprot thrift.TProtocol) error

func (*Span) ReadField5

func (p *Span) ReadField5(iprot thrift.TProtocol) error

func (*Span) ReadField6

func (p *Span) ReadField6(iprot thrift.TProtocol) error

func (*Span) ReadField8

func (p *Span) ReadField8(iprot thrift.TProtocol) error

func (*Span) ReadField9

func (p *Span) ReadField9(iprot thrift.TProtocol) error

func (*Span) String

func (p *Span) String() string

func (*Span) Write

func (p *Span) Write(oprot thrift.TProtocol) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL