api

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2017 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option func(*Server)

func DataSources

func DataSources(ds db.DataSources) Option

func Debug

func Debug(debug bool) Option

func Port

func Port(port int) Option

func Storage

func Storage(storage *storage.Storage) Option

type Server

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

func NewServer

func NewServer(options []Option) *Server

func (*Server) Start

func (s *Server) Start()

Start starts an api server according to the cfg configuration

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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