httpd

package
v0.0.0-...-4106910 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2016 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BindQuery

func BindQuery(values url.Values, structType reflect.Type, structValue reflect.Value) error

func BindQueryForInterface

func BindQueryForInterface(values url.Values, target interface{}) error

Types

type Config

type Config struct {
	Enabled     bool
	BindAddress string
	Url         string
}

type HTTPHandler

type HTTPHandler func(http.ResponseWriter, *http.Request)

type Handler

type Handler struct {
	Version    string
	AWSService *aws.Service
	// contains filtered or unexported fields
}

func NewHandler

func NewHandler() *Handler

func (*Handler) ServeHTTP

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

func (*Handler) SetRoutes

func (h *Handler) SetRoutes(routes []route)

type Service

type Service struct {
	Config *Config

	Handler *Handler
	// contains filtered or unexported fields
}

func NewService

func NewService(c Config) *Service

func (*Service) Close

func (s *Service) Close() error

func (*Service) Open

func (s *Service) Open() error

Jump to

Keyboard shortcuts

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