api

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2018 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Start

func Start() *http.Server

Start begins serving the API

Types

type Config

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

Config represents the configuration of this API

func (*Config) InitDB

func (cfg *Config) InitDB() error

InitDB get a connection to the database

func (*Config) SetupDB

func (cfg *Config) SetupDB() error

SetupDB setup the database for the first time

Jump to

Keyboard shortcuts

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