Documentation ¶
Index ¶
- Variables
- type Downstream
- func (p *Downstream) Equals(other *Downstream) bool
- func (p *Downstream) GetDownstream() *Downstream
- func (p *Downstream) GetHost() string
- func (p *Downstream) GetPort() string
- func (p *Downstream) GetServerRole() string
- func (p *Downstream) GetServiceName() string
- func (p *Downstream) GetTransport() Transport
- func (p *Downstream) IsSetDownstream() bool
- func (p *Downstream) Read(ctx context.Context, iprot thrift.TProtocol) error
- func (p *Downstream) ReadField1(ctx context.Context, iprot thrift.TProtocol) error
- func (p *Downstream) ReadField2(ctx context.Context, iprot thrift.TProtocol) error
- func (p *Downstream) ReadField3(ctx context.Context, iprot thrift.TProtocol) error
- func (p *Downstream) ReadField4(ctx context.Context, iprot thrift.TProtocol) error
- func (p *Downstream) ReadField5(ctx context.Context, iprot thrift.TProtocol) error
- func (p *Downstream) ReadField6(ctx context.Context, iprot thrift.TProtocol) error
- func (p *Downstream) String() string
- func (p *Downstream) Write(ctx context.Context, oprot thrift.TProtocol) error
- type JoinTraceRequest
- func (p *JoinTraceRequest) Equals(other *JoinTraceRequest) bool
- func (p *JoinTraceRequest) GetDownstream() *Downstream
- func (p *JoinTraceRequest) GetServerRole() string
- func (p *JoinTraceRequest) IsSetDownstream() bool
- func (p *JoinTraceRequest) Read(ctx context.Context, iprot thrift.TProtocol) error
- func (p *JoinTraceRequest) ReadField1(ctx context.Context, iprot thrift.TProtocol) error
- func (p *JoinTraceRequest) ReadField2(ctx context.Context, iprot thrift.TProtocol) error
- func (p *JoinTraceRequest) String() string
- func (p *JoinTraceRequest) Write(ctx context.Context, oprot thrift.TProtocol) error
- type ObservedSpan
- func (p *ObservedSpan) Equals(other *ObservedSpan) bool
- func (p *ObservedSpan) GetBaggage() string
- func (p *ObservedSpan) GetSampled() bool
- func (p *ObservedSpan) GetTraceId() string
- func (p *ObservedSpan) Read(ctx context.Context, iprot thrift.TProtocol) error
- func (p *ObservedSpan) ReadField1(ctx context.Context, iprot thrift.TProtocol) error
- func (p *ObservedSpan) ReadField2(ctx context.Context, iprot thrift.TProtocol) error
- func (p *ObservedSpan) ReadField3(ctx context.Context, iprot thrift.TProtocol) error
- func (p *ObservedSpan) String() string
- func (p *ObservedSpan) Write(ctx context.Context, oprot thrift.TProtocol) error
- type StartTraceRequest
- func (p *StartTraceRequest) Equals(other *StartTraceRequest) bool
- func (p *StartTraceRequest) GetBaggage() string
- func (p *StartTraceRequest) GetDownstream() *Downstream
- func (p *StartTraceRequest) GetSampled() bool
- func (p *StartTraceRequest) GetServerRole() string
- func (p *StartTraceRequest) IsSetDownstream() bool
- func (p *StartTraceRequest) Read(ctx context.Context, iprot thrift.TProtocol) error
- func (p *StartTraceRequest) ReadField1(ctx context.Context, iprot thrift.TProtocol) error
- func (p *StartTraceRequest) ReadField2(ctx context.Context, iprot thrift.TProtocol) error
- func (p *StartTraceRequest) ReadField3(ctx context.Context, iprot thrift.TProtocol) error
- func (p *StartTraceRequest) ReadField4(ctx context.Context, iprot thrift.TProtocol) error
- func (p *StartTraceRequest) String() string
- func (p *StartTraceRequest) Write(ctx context.Context, oprot thrift.TProtocol) error
- type TraceResponse
- func (p *TraceResponse) Equals(other *TraceResponse) bool
- func (p *TraceResponse) GetDownstream() *TraceResponse
- func (p *TraceResponse) GetNotImplementedError() string
- func (p *TraceResponse) GetSpan() *ObservedSpan
- func (p *TraceResponse) IsSetDownstream() bool
- func (p *TraceResponse) IsSetSpan() bool
- func (p *TraceResponse) Read(ctx context.Context, iprot thrift.TProtocol) error
- func (p *TraceResponse) ReadField1(ctx context.Context, iprot thrift.TProtocol) error
- func (p *TraceResponse) ReadField2(ctx context.Context, iprot thrift.TProtocol) error
- func (p *TraceResponse) ReadField3(ctx context.Context, iprot thrift.TProtocol) error
- func (p *TraceResponse) String() string
- func (p *TraceResponse) Write(ctx context.Context, oprot thrift.TProtocol) error
- type TracedService
- type TracedServiceClient
- func (p *TracedServiceClient) Client_() thrift.TClient
- func (p *TracedServiceClient) JoinTrace(ctx context.Context, request *JoinTraceRequest) (_r *TraceResponse, _err error)
- func (p *TracedServiceClient) LastResponseMeta_() thrift.ResponseMeta
- func (p *TracedServiceClient) SetLastResponseMeta_(meta thrift.ResponseMeta)
- func (p *TracedServiceClient) StartTrace(ctx context.Context, request *StartTraceRequest) (_r *TraceResponse, _err error)
- type TracedServiceJoinTraceArgs
- func (p *TracedServiceJoinTraceArgs) GetRequest() *JoinTraceRequest
- func (p *TracedServiceJoinTraceArgs) IsSetRequest() bool
- func (p *TracedServiceJoinTraceArgs) Read(ctx context.Context, iprot thrift.TProtocol) error
- func (p *TracedServiceJoinTraceArgs) ReadField1(ctx context.Context, iprot thrift.TProtocol) error
- func (p *TracedServiceJoinTraceArgs) String() string
- func (p *TracedServiceJoinTraceArgs) Write(ctx context.Context, oprot thrift.TProtocol) error
- type TracedServiceJoinTraceResult
- func (p *TracedServiceJoinTraceResult) GetSuccess() *TraceResponse
- func (p *TracedServiceJoinTraceResult) IsSetSuccess() bool
- func (p *TracedServiceJoinTraceResult) Read(ctx context.Context, iprot thrift.TProtocol) error
- func (p *TracedServiceJoinTraceResult) ReadField0(ctx context.Context, iprot thrift.TProtocol) error
- func (p *TracedServiceJoinTraceResult) String() string
- func (p *TracedServiceJoinTraceResult) Write(ctx context.Context, oprot thrift.TProtocol) error
- type TracedServiceProcessor
- func (p *TracedServiceProcessor) AddToProcessorMap(key string, processor thrift.TProcessorFunction)
- func (p *TracedServiceProcessor) GetProcessorFunction(key string) (processor thrift.TProcessorFunction, ok bool)
- func (p *TracedServiceProcessor) Process(ctx context.Context, iprot, oprot thrift.TProtocol) (success bool, err thrift.TException)
- func (p *TracedServiceProcessor) ProcessorMap() map[string]thrift.TProcessorFunction
- type TracedServiceStartTraceArgs
- func (p *TracedServiceStartTraceArgs) GetRequest() *StartTraceRequest
- func (p *TracedServiceStartTraceArgs) IsSetRequest() bool
- func (p *TracedServiceStartTraceArgs) Read(ctx context.Context, iprot thrift.TProtocol) error
- func (p *TracedServiceStartTraceArgs) ReadField1(ctx context.Context, iprot thrift.TProtocol) error
- func (p *TracedServiceStartTraceArgs) String() string
- func (p *TracedServiceStartTraceArgs) Write(ctx context.Context, oprot thrift.TProtocol) error
- type TracedServiceStartTraceResult
- func (p *TracedServiceStartTraceResult) GetSuccess() *TraceResponse
- func (p *TracedServiceStartTraceResult) IsSetSuccess() bool
- func (p *TracedServiceStartTraceResult) Read(ctx context.Context, iprot thrift.TProtocol) error
- func (p *TracedServiceStartTraceResult) ReadField0(ctx context.Context, iprot thrift.TProtocol) error
- func (p *TracedServiceStartTraceResult) String() string
- func (p *TracedServiceStartTraceResult) Write(ctx context.Context, oprot thrift.TProtocol) error
- type Transport
Constants ¶
This section is empty.
Variables ¶
View Source
var GoUnusedProtection__ int
Functions ¶
This section is empty.
Types ¶
type Downstream ¶
type Downstream struct { ServiceName string `thrift:"serviceName,1,required" db:"serviceName" json:"serviceName"` ServerRole string `thrift:"serverRole,2,required" db:"serverRole" json:"serverRole"` Host string `thrift:"host,3,required" db:"host" json:"host"` Port string `thrift:"port,4,required" db:"port" json:"port"` Transport Transport `thrift:"transport,5,required" db:"transport" json:"transport"` Downstream *Downstream `thrift:"downstream,6" db:"downstream" json:"downstream,omitempty"` }
Attributes:
- ServiceName
- ServerRole
- Host
- Port
- Transport
- Downstream
var Downstream_Downstream_DEFAULT *Downstream
var JoinTraceRequest_Downstream_DEFAULT *Downstream
var StartTraceRequest_Downstream_DEFAULT *Downstream
func NewDownstream ¶
func NewDownstream() *Downstream
func (*Downstream) Equals ¶
func (p *Downstream) Equals(other *Downstream) bool
func (*Downstream) GetDownstream ¶
func (p *Downstream) GetDownstream() *Downstream
func (*Downstream) GetHost ¶
func (p *Downstream) GetHost() string
func (*Downstream) GetPort ¶
func (p *Downstream) GetPort() string
func (*Downstream) GetServerRole ¶
func (p *Downstream) GetServerRole() string
func (*Downstream) GetServiceName ¶
func (p *Downstream) GetServiceName() string
func (*Downstream) GetTransport ¶
func (p *Downstream) GetTransport() Transport
func (*Downstream) IsSetDownstream ¶
func (p *Downstream) IsSetDownstream() bool
func (*Downstream) ReadField1 ¶
func (*Downstream) ReadField2 ¶
func (*Downstream) ReadField3 ¶
func (*Downstream) ReadField4 ¶
func (*Downstream) ReadField5 ¶
func (*Downstream) ReadField6 ¶
func (*Downstream) String ¶
func (p *Downstream) String() string
type JoinTraceRequest ¶
type JoinTraceRequest struct { ServerRole string `thrift:"serverRole,1,required" db:"serverRole" json:"serverRole"` Downstream *Downstream `thrift:"downstream,2" db:"downstream" json:"downstream,omitempty"` }
Attributes:
- ServerRole
- Downstream
var TracedServiceJoinTraceArgs_Request_DEFAULT *JoinTraceRequest
func NewJoinTraceRequest ¶
func NewJoinTraceRequest() *JoinTraceRequest
func (*JoinTraceRequest) Equals ¶
func (p *JoinTraceRequest) Equals(other *JoinTraceRequest) bool
func (*JoinTraceRequest) GetDownstream ¶
func (p *JoinTraceRequest) GetDownstream() *Downstream
func (*JoinTraceRequest) GetServerRole ¶
func (p *JoinTraceRequest) GetServerRole() string
func (*JoinTraceRequest) IsSetDownstream ¶
func (p *JoinTraceRequest) IsSetDownstream() bool
func (*JoinTraceRequest) ReadField1 ¶
func (*JoinTraceRequest) ReadField2 ¶
func (*JoinTraceRequest) String ¶
func (p *JoinTraceRequest) String() string
type ObservedSpan ¶
type ObservedSpan struct { TraceId string `thrift:"traceId,1,required" db:"traceId" json:"traceId"` Sampled bool `thrift:"sampled,2,required" db:"sampled" json:"sampled"` Baggage string `thrift:"baggage,3,required" db:"baggage" json:"baggage"` }
Attributes:
- TraceId
- Sampled
- Baggage
var TraceResponse_Span_DEFAULT *ObservedSpan
func NewObservedSpan ¶
func NewObservedSpan() *ObservedSpan
func (*ObservedSpan) Equals ¶
func (p *ObservedSpan) Equals(other *ObservedSpan) bool
func (*ObservedSpan) GetBaggage ¶
func (p *ObservedSpan) GetBaggage() string
func (*ObservedSpan) GetSampled ¶
func (p *ObservedSpan) GetSampled() bool
func (*ObservedSpan) GetTraceId ¶
func (p *ObservedSpan) GetTraceId() string
func (*ObservedSpan) ReadField1 ¶
func (*ObservedSpan) ReadField2 ¶
func (*ObservedSpan) ReadField3 ¶
func (*ObservedSpan) String ¶
func (p *ObservedSpan) String() string
type StartTraceRequest ¶
type StartTraceRequest struct { ServerRole string `thrift:"serverRole,1,required" db:"serverRole" json:"serverRole"` Sampled bool `thrift:"sampled,2,required" db:"sampled" json:"sampled"` Baggage string `thrift:"baggage,3,required" db:"baggage" json:"baggage"` Downstream *Downstream `thrift:"downstream,4,required" db:"downstream" json:"downstream"` }
Attributes:
- ServerRole
- Sampled
- Baggage
- Downstream
var TracedServiceStartTraceArgs_Request_DEFAULT *StartTraceRequest
func NewStartTraceRequest ¶
func NewStartTraceRequest() *StartTraceRequest
func (*StartTraceRequest) Equals ¶
func (p *StartTraceRequest) Equals(other *StartTraceRequest) bool
func (*StartTraceRequest) GetBaggage ¶
func (p *StartTraceRequest) GetBaggage() string
func (*StartTraceRequest) GetDownstream ¶
func (p *StartTraceRequest) GetDownstream() *Downstream
func (*StartTraceRequest) GetSampled ¶
func (p *StartTraceRequest) GetSampled() bool
func (*StartTraceRequest) GetServerRole ¶
func (p *StartTraceRequest) GetServerRole() string
func (*StartTraceRequest) IsSetDownstream ¶
func (p *StartTraceRequest) IsSetDownstream() bool
func (*StartTraceRequest) ReadField1 ¶
func (*StartTraceRequest) ReadField2 ¶
func (*StartTraceRequest) ReadField3 ¶
func (*StartTraceRequest) ReadField4 ¶
func (*StartTraceRequest) String ¶
func (p *StartTraceRequest) String() string
type TraceResponse ¶
type TraceResponse struct { Span *ObservedSpan `thrift:"span,1" db:"span" json:"span,omitempty"` Downstream *TraceResponse `thrift:"downstream,2" db:"downstream" json:"downstream,omitempty"` NotImplementedError string `thrift:"notImplementedError,3,required" db:"notImplementedError" json:"notImplementedError"` }
Each server must include the information about the span it observed. It can only be omitted from the response if notImplementedError field is not empty. If the server was instructed to make a downstream call, it must embed the downstream response in its own response.
Attributes:
- Span
- Downstream
- NotImplementedError
var TraceResponse_Downstream_DEFAULT *TraceResponse
var TracedServiceJoinTraceResult_Success_DEFAULT *TraceResponse
var TracedServiceStartTraceResult_Success_DEFAULT *TraceResponse
func NewTraceResponse ¶
func NewTraceResponse() *TraceResponse
func (*TraceResponse) Equals ¶
func (p *TraceResponse) Equals(other *TraceResponse) bool
func (*TraceResponse) GetDownstream ¶
func (p *TraceResponse) GetDownstream() *TraceResponse
func (*TraceResponse) GetNotImplementedError ¶
func (p *TraceResponse) GetNotImplementedError() string
func (*TraceResponse) GetSpan ¶
func (p *TraceResponse) GetSpan() *ObservedSpan
func (*TraceResponse) IsSetDownstream ¶
func (p *TraceResponse) IsSetDownstream() bool
func (*TraceResponse) IsSetSpan ¶
func (p *TraceResponse) IsSetSpan() bool
func (*TraceResponse) ReadField1 ¶
func (*TraceResponse) ReadField2 ¶
func (*TraceResponse) ReadField3 ¶
func (*TraceResponse) String ¶
func (p *TraceResponse) String() string
type TracedService ¶
type TracedService interface { // Parameters: // - Request StartTrace(ctx context.Context, request *StartTraceRequest) (_r *TraceResponse, _err error) // Parameters: // - Request JoinTrace(ctx context.Context, request *JoinTraceRequest) (_r *TraceResponse, _err error) }
type TracedServiceClient ¶
type TracedServiceClient struct {
// contains filtered or unexported fields
}
func NewTracedServiceClient ¶
func NewTracedServiceClient(c thrift.TClient) *TracedServiceClient
func NewTracedServiceClientFactory ¶
func NewTracedServiceClientFactory(t thrift.TTransport, f thrift.TProtocolFactory) *TracedServiceClient
func NewTracedServiceClientProtocol ¶
func NewTracedServiceClientProtocol(t thrift.TTransport, iprot thrift.TProtocol, oprot thrift.TProtocol) *TracedServiceClient
func (*TracedServiceClient) Client_ ¶
func (p *TracedServiceClient) Client_() thrift.TClient
func (*TracedServiceClient) JoinTrace ¶
func (p *TracedServiceClient) JoinTrace(ctx context.Context, request *JoinTraceRequest) (_r *TraceResponse, _err error)
Parameters:
- Request
func (*TracedServiceClient) LastResponseMeta_ ¶
func (p *TracedServiceClient) LastResponseMeta_() thrift.ResponseMeta
func (*TracedServiceClient) SetLastResponseMeta_ ¶
func (p *TracedServiceClient) SetLastResponseMeta_(meta thrift.ResponseMeta)
func (*TracedServiceClient) StartTrace ¶
func (p *TracedServiceClient) StartTrace(ctx context.Context, request *StartTraceRequest) (_r *TraceResponse, _err error)
Parameters:
- Request
type TracedServiceJoinTraceArgs ¶
type TracedServiceJoinTraceArgs struct {
Request *JoinTraceRequest `thrift:"request,1" db:"request" json:"request"`
}
Attributes:
- Request
func NewTracedServiceJoinTraceArgs ¶
func NewTracedServiceJoinTraceArgs() *TracedServiceJoinTraceArgs
func (*TracedServiceJoinTraceArgs) GetRequest ¶
func (p *TracedServiceJoinTraceArgs) GetRequest() *JoinTraceRequest
func (*TracedServiceJoinTraceArgs) IsSetRequest ¶
func (p *TracedServiceJoinTraceArgs) IsSetRequest() bool
func (*TracedServiceJoinTraceArgs) ReadField1 ¶
func (*TracedServiceJoinTraceArgs) String ¶
func (p *TracedServiceJoinTraceArgs) String() string
type TracedServiceJoinTraceResult ¶
type TracedServiceJoinTraceResult struct {
Success *TraceResponse `thrift:"success,0" db:"success" json:"success,omitempty"`
}
Attributes:
- Success
func NewTracedServiceJoinTraceResult ¶
func NewTracedServiceJoinTraceResult() *TracedServiceJoinTraceResult
func (*TracedServiceJoinTraceResult) GetSuccess ¶
func (p *TracedServiceJoinTraceResult) GetSuccess() *TraceResponse
func (*TracedServiceJoinTraceResult) IsSetSuccess ¶
func (p *TracedServiceJoinTraceResult) IsSetSuccess() bool
func (*TracedServiceJoinTraceResult) ReadField0 ¶
func (*TracedServiceJoinTraceResult) String ¶
func (p *TracedServiceJoinTraceResult) String() string
type TracedServiceProcessor ¶
type TracedServiceProcessor struct {
// contains filtered or unexported fields
}
func NewTracedServiceProcessor ¶
func NewTracedServiceProcessor(handler TracedService) *TracedServiceProcessor
func (*TracedServiceProcessor) AddToProcessorMap ¶
func (p *TracedServiceProcessor) AddToProcessorMap(key string, processor thrift.TProcessorFunction)
func (*TracedServiceProcessor) GetProcessorFunction ¶
func (p *TracedServiceProcessor) GetProcessorFunction(key string) (processor thrift.TProcessorFunction, ok bool)
func (*TracedServiceProcessor) Process ¶
func (p *TracedServiceProcessor) Process(ctx context.Context, iprot, oprot thrift.TProtocol) (success bool, err thrift.TException)
func (*TracedServiceProcessor) ProcessorMap ¶
func (p *TracedServiceProcessor) ProcessorMap() map[string]thrift.TProcessorFunction
type TracedServiceStartTraceArgs ¶
type TracedServiceStartTraceArgs struct {
Request *StartTraceRequest `thrift:"request,1" db:"request" json:"request"`
}
Attributes:
- Request
func NewTracedServiceStartTraceArgs ¶
func NewTracedServiceStartTraceArgs() *TracedServiceStartTraceArgs
func (*TracedServiceStartTraceArgs) GetRequest ¶
func (p *TracedServiceStartTraceArgs) GetRequest() *StartTraceRequest
func (*TracedServiceStartTraceArgs) IsSetRequest ¶
func (p *TracedServiceStartTraceArgs) IsSetRequest() bool
func (*TracedServiceStartTraceArgs) ReadField1 ¶
func (*TracedServiceStartTraceArgs) String ¶
func (p *TracedServiceStartTraceArgs) String() string
type TracedServiceStartTraceResult ¶
type TracedServiceStartTraceResult struct {
Success *TraceResponse `thrift:"success,0" db:"success" json:"success,omitempty"`
}
Attributes:
- Success
func NewTracedServiceStartTraceResult ¶
func NewTracedServiceStartTraceResult() *TracedServiceStartTraceResult
func (*TracedServiceStartTraceResult) GetSuccess ¶
func (p *TracedServiceStartTraceResult) GetSuccess() *TraceResponse
func (*TracedServiceStartTraceResult) IsSetSuccess ¶
func (p *TracedServiceStartTraceResult) IsSetSuccess() bool
func (*TracedServiceStartTraceResult) ReadField0 ¶
func (*TracedServiceStartTraceResult) String ¶
func (p *TracedServiceStartTraceResult) String() string
type Transport ¶
type Transport int64
func TransportFromString ¶
func TransportPtr ¶
func (Transport) MarshalText ¶
func (*Transport) UnmarshalText ¶
Click to show internal directories.
Click to hide internal directories.