server

package
v0.0.0-...-fe1fd9d Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2021 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

Package server provides the HTTP server to render the "vote" web page.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server struct {
	Router    *mux.Router
	SNSClient *sns.SNS
	TopicARN  string
}

Server is the Vote server.

func NewServer

func NewServer() (*Server, error)

NewServer inits a new Server struct.

func (*Server) ServeHTTP

func (s *Server) 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