api

package
v0.0.0-...-2f63414 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

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

Server contains a db and router

func NewServer

func NewServer(db *sql.DB) *Server

NewServer returns an api server instance

func (*Server) Serve

func (s *Server) Serve(addr string)

Serve serves the api server on the given address:port

Jump to

Keyboard shortcuts

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