servers

package
v0.0.0-...-4ea9c30 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2019 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseFileHandler

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

type DownloadFileHandler

type DownloadFileHandler struct {
	BaseFileHandler
}

func (*DownloadFileHandler) ServeHTTP

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

type Server

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

func NewHTTPServer

func NewHTTPServer(logger *log.Logger, config *config.Config, inputPort ports.ServerInputPort) *Server

func (*Server) Listen

func (s *Server) Listen() error

type UploadFileHandler

type UploadFileHandler struct {
	BaseFileHandler
}

func (*UploadFileHandler) ServeHTTP

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

Jump to

Keyboard shortcuts

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