components

package
v0.0.0-...-7fe122b Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2018 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetResponseMessage

func GetResponseMessage(res ApiResponse) string

func LogRequest

func LogRequest(logChan chan Log)

LogRequest logs the request to dynamodb on aws

func ParseApiResponse

func ParseApiResponse(apiResponse ApiResponse) (response map[string]interface{})

Types

type ApiResponse

type ApiResponse struct {
	Headers    map[string]string
	StatusCode int
	Message    string
	Data       interface{}
	Error      error
	Stack      []byte
}

type Log

type Log struct {
	HandlerName string
	RouteName   string
	Request     http.Request
	When        time.Time
	Response    ApiResponse
}

Jump to

Keyboard shortcuts

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