proxy

package
v3.0.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2019 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Overview

Package proxy provides an http server to act as a signing proxy for SDKs calling AWS X-Ray APIs

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server struct {
	*http.Server
}

Server represents HTTP server.

func NewServer

func NewServer(cfg *cfg.Config, awsCfg *aws.Config, sess *session.Session) (*Server, error)

NewServer returns a proxy server listening on the given address. Requests are forwarded to the endpoint in the given config. Requests are signed using credentials from the given config.

func (*Server) Close

func (s *Server) Close()

Close stops server.

func (*Server) Serve

func (s *Server) Serve()

Serve starts server.

Jump to

Keyboard shortcuts

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