server

package
v0.0.0-...-fd11f28 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2020 License: MIT Imports: 16 Imported by: 0

Documentation

Overview

Package server ...

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

type API struct {
	Mux *chi.Mux
	// contains filtered or unexported fields
}

API is a structure that orchestrates our http layer, database, and the communication between the them.

func New

func New(db storage.TodoRepository) *API

New takes a storage.Repository and set's up an API server, using that store.

Jump to

Keyboard shortcuts

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