debugapp

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2019 License: GPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AppEnv struct {
	Dummy string
}

AppEnv contains variables from env

View Source
var AppFlag struct {
	HTTPPort  int
	HTTPSPort int
}

AppFlag contains variables from command-line flags

Functions

func RegisterFlags

func RegisterFlags()

RegisterFlags creates flags.

func RunHTTPServer

func RunHTTPServer(ctx context.Context)

RunHTTPServer runs HTTP and HTTPS goroutines and blocks.

Types

type Response

type Response struct {
	Host        string              `json:"host"`
	Method      string              `json:"method"`
	URI         string              `json:"uri"`
	HTTPVersion string              `json:"httpVersion"`
	Time        time.Time           `json:"time"`
	RemoteAddr  string              `json:"remoteAddr"`
	TLS         bool                `json:"tls"`
	Header      map[string][]string `json:"header"`
	Msg         string              `json:"message"`
}

Response is the structure returned by the echo server.

Jump to

Keyboard shortcuts

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