package server

import "github.com/uber/jaeger-client-go/crossdock/server"

Index

Constants

const BaggageKey = "crossdock-baggage-key"

BaggageKey is the key used to pass baggage item

Types

type Server

type Server struct {
	HostPortHTTP      string
	HostPortTChannel  string
	AgentHostPort     string
	SamplingServerURL string
	Tracer            opentracing.Tracer
	// contains filtered or unexported fields
}

Server implements S1-S3 servers

func (*Server) Close

func (s *Server) Close() error

Close stops the server

func (*Server) GetPortHTTP

func (s *Server) GetPortHTTP() string

GetPortHTTP returns the network port the server listens to.

func (*Server) GetPortTChannel

func (s *Server) GetPortTChannel() string

GetPortTChannel returns the actual port the server listens to

func (*Server) JoinTrace

func (s *Server) JoinTrace(ctx thrift.Context, request *tracetest.JoinTraceRequest) (*tracetest.TraceResponse, error)

JoinTrace implements JoinTrace() of TChanTracedService

func (*Server) Start

func (s *Server) Start() error

Start starts the test server called by the Client and other upstream servers.

func (*Server) StartTrace

func (s *Server) StartTrace(ctx thrift.Context, request *tracetest.StartTraceRequest) (*tracetest.TraceResponse, error)

StartTrace implements StartTrace() of TChanTracedService

func (*Server) URL

func (s *Server) URL() string

URL returns URL of the HTTP server

Source Files

constants.go server.go tchannel.go trace.go

Version
v2.10.0+incompatible
Published
Nov 14, 2017
Platform
darwin/amd64
Imports
19 packages
Last checked
59 seconds ago

Tools for package owners.