web

package
v0.0.0-...-75a2702 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2022 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	// the cayenne channel used for gps messages
	Channel int

	// the Key for mapbox or self hosted
	TilesKey string

	// Set to false if using MapBox
	SelfHostedMap bool

	// the URL where to point to get tiles if not using MapBox
	TilesURL string
}

type Server

type Server struct {
	FileHandler http.Handler
	Box         *packr.Box
	// contains filtered or unexported fields
}

func NewServer

func NewServer(appName string, logger log.Logger, geoDB storage.Indexer, cfg Config) *Server

func (*Server) DataQuery

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

func (*Server) DevicesQuery

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

func (*Server) RectQuery

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

func (*Server) ServeHTTP

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

Jump to

Keyboard shortcuts

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