server

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

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

Go to latest
Published: Nov 13, 2018 License: MIT Imports: 8 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 holds dependencies for the todo server such as the store.

func New

func New(sto store.Service) *Server

New creates a new server from a store and populates the handler

func (*Server) Run

func (s *Server) Run(addr string) error

Run starts the server listening on what address is specified

Jump to

Keyboard shortcuts

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