awsutil

package
v0.10.1 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2016 License: BSD-2-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cycle

type Cycle struct {
	Request  Request
	Response Response
}

Cycle represents a request-response cycle.

type Handler

type Handler struct {
	// contains filtered or unexported fields
}

Handler is an http.Handler that will play back cycles.

func NewHandler

func NewHandler(c []Cycle) *Handler

NewHandler returns a new Handler instance.

func (*Handler) ServeHTTP

func (h *Handler) ServeHTTP(w http.ResponseWriter, r *http.Request)

type Request

type Request struct {
	RequestURI string
	Operation  string
	Body       string
}

Request represents an expected AWS API Operation.

func (*Request) String

func (r *Request) String() string

type Response

type Response struct {
	StatusCode int
	Body       string
}

Response represents a predefined response.

Jump to

Keyboard shortcuts

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