bbpd_route

package
v0.0.0-...-e5b5ba0 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2015 License: BSD-2-Clause Imports: 39 Imported by: 0

Documentation

Overview

The core configuration of the http proxy.

Index

Constants

View Source
const (
	URI_PATH_SEP           = "/"
	STATUSPATH             = URI_PATH_SEP + "Status"
	STATUSTABLEPATH        = URI_PATH_SEP + "StatusTable" + URI_PATH_SEP
	RAWPOSTPATH            = URI_PATH_SEP + "RawPost" + URI_PATH_SEP
	DESCRIBETABLEPATH      = URI_PATH_SEP + desc.ENDPOINT_NAME
	DESCRIBETABLEGETPATH   = URI_PATH_SEP + desc.ENDPOINT_NAME + URI_PATH_SEP
	DELETETABLEPATH        = URI_PATH_SEP + delete_table.ENDPOINT_NAME
	DELETETABLEGETPATH     = URI_PATH_SEP + delete_table.ENDPOINT_NAME + URI_PATH_SEP
	LISTTABLESPATH         = URI_PATH_SEP + list.ENDPOINT_NAME
	CREATETABLEPATH        = URI_PATH_SEP + create.ENDPOINT_NAME
	UPDATETABLEPATH        = URI_PATH_SEP + update_table.ENDPOINT_NAME
	PUTITEMPATH            = URI_PATH_SEP + put.ENDPOINT_NAME
	PUTITEMJSONPATH        = URI_PATH_SEP + put.JSON_ENDPOINT_NAME
	GETITEMPATH            = URI_PATH_SEP + get.ENDPOINT_NAME
	GETITEMJSONPATH        = URI_PATH_SEP + get.JSON_ENDPOINT_NAME
	BATCHGETITEMPATH       = URI_PATH_SEP + bgi.ENDPOINT_NAME
	BATCHGETITEMJSONPATH   = URI_PATH_SEP + bgi.JSON_ENDPOINT_NAME
	BATCHWRITEITEMPATH     = URI_PATH_SEP + bwi.ENDPOINT_NAME
	BATCHWRITEITEMJSONPATH = URI_PATH_SEP + bwi.JSON_ENDPOINT_NAME
	DELETEITEMPATH         = URI_PATH_SEP + delete_item.ENDPOINT_NAME
	UPDATEITEMPATH         = URI_PATH_SEP + update_item.ENDPOINT_NAME
	QUERYPATH              = URI_PATH_SEP + query.ENDPOINT_NAME
	SCANPATH               = URI_PATH_SEP + scan.ENDPOINT_NAME
	COMPATPATH             = URI_PATH_SEP
)

Variables

This section is empty.

Functions

func CompatHandler

func CompatHandler(w http.ResponseWriter, req *http.Request)

CompatHandler allows bbpd to act as a partial pass-through proxy. Users can provide their own body and endpoint target header, but other headers are ignored. To use this, set headers with your http client. For example, with curl: curl -H "X-Amz-Target: DynamoDB_20120810.DescribeTable" -X POST -d '{"TableName":"mytable"}' http://localhost:12333/ or alternately curl -H "X-Amz-Target: DescribeTable" -X POST -d '{"TableName":"mytable"}' http://localhost:12333/ if you wish to just use the default API version string.

func Get_port

func Get_port() int

func StartBBPD

func StartBBPD(requestedPorts []int) error

StartBBPD is where the proxy http server is started. The requestedPort is a *int so it can be nil'able. passing 0 as an implied null value could result in a dial that takes any available port, as is implied by the go docs.

func StopBBPD

func StopBBPD() error

Types

type Status_Struct

type Status_Struct struct {
	Status            string
	AvailableHandlers []string
	Args              map[string]string
	Summary           bbpd_stats.Summary
}

Jump to

Keyboard shortcuts

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