http

package
v0.0.0-...-2471ed3 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2021 License: MIT Imports: 20 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 defines the HTTP server serving the app.

func NewServer

func NewServer(
	port int,
	siteURL string,
	cookieSecret string,
	oauthClientID string,
	oauthClientSecret string,
	repo babynames.Repository,
) *Server

NewServer creates a new HTTP server.

func (*Server) Run

func (s *Server) Run()

Run starts the HTTP server.

Jump to

Keyboard shortcuts

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