restapi

package
v0.0.0-...-430e8a6 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2019 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(l Logger, a auth.Authenticator, checkSchedule chan<- bool, userRepo usecase.UserRepo, taskRepo usecase.TaskRepo, scheduleRepo usecase.ScheduleRepo) (api http.Handler)

New creates a REST API server

func Serve

func Serve(l Logger, api http.Handler) (closed <-chan bool)

Serve starts an API server

Types

type Logger

type Logger interface {
	Printf(format string, v ...interface{})
}

Logger interface needed for log messages

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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