rest

package
v0.0.0-...-e2f90f4 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2021 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IncreaseRestRequests

func IncreaseRestRequests(method string)

func ObserveRestRequestsTime

func ObserveRestRequestsTime(method string, timing float64)

func RegisterCustomMetrics

func RegisterCustomMetrics()

Types

type Server

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

func New

func New(dbInterface *sql.DB) (*Server, error)

func (*Server) GetProductsEndpoint

func (s *Server) GetProductsEndpoint() string

func (*Server) GetRestHost

func (s *Server) GetRestHost() string

func (*Server) GetRestPort

func (s *Server) GetRestPort() int

func (*Server) GetRestRouter

func (s *Server) GetRestRouter() *mux.Router

func (*Server) Shutdown

func (s *Server) Shutdown(timeout time.Duration)

func (*Server) Start

func (s *Server) Start() error

Jump to

Keyboard shortcuts

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