common

package
v2.15.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2018 License: Apache-2.0 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"

	// 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