server

package
v0.0.0-...-c75db07 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2019 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Error

func Error(w http.ResponseWriter, code int, message string)

func Json

func Json(w http.ResponseWriter, code int, payload interface{})

func NewNoteRouter

func NewNoteRouter(ns root.NoteService, router *mux.Router) *mux.Router

Types

type Server

type Server struct {
	// contains filtered or unexported fields
}

func NewServer

func NewServer(
	ns root.NoteService,

) *Server

func (*Server) Start

func (s *Server) Start()

Jump to

Keyboard shortcuts

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