http

package
v0.0.0-...-a64fb18 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2020 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

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

Server exposes the app through the HTTP protocol

func NewServer

func NewServer(logger *log.Logger, storage *sql.DB, port int) *Server

NewServer creates a Server struct with its dependencies

func (Server) Listen

func (s Server) Listen()

Listen exposes the HTTP server running in the port 8080

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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