common

package
v2.1.2+incompatible Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2017 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// DefaultClientPortHTTP is the port where the client (controller) runs
	DefaultClientPortHTTP = "8080"

	// DefaultServerPortHTTP is the port where HTTP server runs
	DefaultServerPortHTTP = "8081"

	// DefaultServerPortTChannel is the port where TChannel server runs
	DefaultServerPortTChannel = "8082"

	// DefaultServiceName is the service name used by TChannel server
	DefaultServiceName = "go"

	// DefaultTracerServiceName is the service name used by the tracer
	DefaultTracerServiceName = "crossdock-go"
)

Variables

This section is empty.

Functions

func PostJSON

func PostJSON(ctx context.Context, url string, req interface{}) (*tracetest.TraceResponse, error)

PostJSON sends a POST request to `url` with body containing JSON-serialized `req`. It injects tracing span into the headers (if found in the context). It returns parsed TraceResponse, or error.

Types

This section is empty.

Jump to

Keyboard shortcuts

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