http

package
v0.0.0-...-b02ac2a Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2020 License: Apache-2.0 Imports: 12 Imported by: 0

README

HTTP Binding Implementation

This package is the implementation for communicating with the eva-client-service over http.

To use this package include it as a blind dependency:

import (
	
	// ... other dependencies.
	
	"github.com/Workiva/eva-client-go/eva"
	_ "github.com/Workiva/eva-client-go/eva/http"
)

Usage

This package is used to facilitate http interaction with eva, and is not intended to be used directly. That said, users will need to configure the eva package to use this http implementation.

{
    "source": {
        "type":    "http",                // required to enable the http implementation
        "server":  "<server>[?:<port>]",  // required for this package
        "retries": "<tries>[?@<pause>]",  // optional retry logic for connections to the eva client service
        "mime":    <serializer-type>,     // optional way to set the serializer. See the eva package for details.
        
        // optional certificate to call eva with, the eva client service will need to know how to resolve this cert.
        "cert": "-----BEGIN CERTIFICATE-----\n ... cert ...  \n-----END CERTIFICATE-----"
    },

  "category": "<category>"  // required by the eva package
}

Documentation

Index

Constants

View Source
const (

	// XFormContentType defines the form encoding mime type.
	XFormContentType = "application/x-www-form-urlencoded"

	ErrUnsupportedType = edn.ErrorMessage("Unsupported type")

	// ErrNoServiceImpl defines a service implementation error.
	ErrNoServiceImpl = edn.ErrorMessage("No service implementation")

	// ErrInvalidCertificate defines an invalid certificate.
	ErrInvalidCertificate = edn.ErrorMessage("Invalid certificate")

	// SourceName defines the http source type name.
	SourceName = "http"
)
View Source
const (

	// ErrServiceError defines a service error.
	ErrServiceError = edn.ErrorMessage("Service call failed")
)

Variables

This section is empty.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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