api

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2018 License: MIT Imports: 11 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

func (*Server) Stop added in v0.2.0

func (s *Server) Stop(ctx context.Context)

Stop shuts down the running API server

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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