route

package
v0.0.0-...-eef89a0 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2019 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StartServer

func StartServer(db *sql.DB)

StartServer starts server

Types

type Response

type Response struct {
	Error string         `json:"error,omitempty"`
	Value *database.Item `json:"value,omitempty"`
}

Response is a struct returned as a response

func (*Response) Serialize

func (res *Response) Serialize() []byte

Serialize returns the json encoding of 'Response'

Jump to

Keyboard shortcuts

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