api

package
v0.0.0-...-c8a71a6 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HasAccessExternalApi

func HasAccessExternalApi() (bool, error)

func ProcessQueries

func ProcessQueries(params map[string][]string) map[string]string

func SendErrorResponse

func SendErrorResponse(w http.ResponseWriter, message string, statusCode int)

Types

type Server

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

func NewServer

func NewServer(addr string, db *database.Database) (*Server, error)

func (*Server) CreateQuote

func (s *Server) CreateQuote(w http.ResponseWriter, r *http.Request)

func (*Server) CreateRoutes

func (s *Server) CreateRoutes(router *mux.Router, db *database.Database)

func (*Server) GetMetrics

func (s *Server) GetMetrics(w http.ResponseWriter, r *http.Request)

func (*Server) Ping

func (s *Server) Ping(w http.ResponseWriter, r *http.Request)

func (*Server) Run

func (s *Server) Run() error

Jump to

Keyboard shortcuts

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