http

package
v1.8.1-gphat1 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2017 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PostHelper

func PostHelper(ctx context.Context, httpClient *http.Client, stats *statsd.Client, tc *trace.Client, endpoint string, bodyObject interface{}, action string, compress bool, log *logrus.Logger) error

shared code for POSTing to an endpoint, that consumes JSON, that is zlib- compressed, that returns 202 on success, that has a small response action is a string used for statsd metric names and log messages emitted from this function - probably a static string for each callsite you can disable compression with compress=false for endpoints that don't support it

Types

This section is empty.

Jump to

Keyboard shortcuts

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