handlers

package
v0.0.0-...-c429fb2 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2020 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HTTPServer

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

func NewHTTPServer

func NewHTTPServer(opt Options) *HTTPServer

func (*HTTPServer) Start

func (s *HTTPServer) Start() error

Start the main HTTP Server entry

type Options

type Options struct {
	WFSURL        string
	MongoDBName   string
	MongoAddress  string
	MongoUsername string
	MongoPassword string
	MongoSession  *mgo.Session
}

type View

type View struct {
	Name              *string            `json:"name,omitempty" bson:"name,omitempty"`
	Collection        string             `json:"collection,omitempty" bson:"collection,omitempty"`
	DefaultTime       *string            `json:"defaultTime,omitempty" bson:"defaultTime,omitempty"`
	MaxTimeRange      *string            `json:"maxTimeRange,omitempty" bson:"maxTimeRange,omitempty"`
	DefaultLimit      *int               `json:"defaultLimit,omitempty" bson:"defaultLimit,omitempty"`
	MaxLimit          *int               `json:"maxLimit,omitempty" bson:"maxLimit,omitempty"`
	DefaultBBox       *[]float64         `json:"defaultBbox,omitempty" bson:"defaultBbox,omitempty"`
	MaxBBox           *[]float64         `json:"maxBbox,omitempty" bson:"maxBbox,omitempty"`
	DefaultFilterAttr *map[string]string `json:"defaultFilterAttr,omitempty" bson:"defaultFilterAttr,omitempty"`
	LastUpdate        time.Time          `json:"lastUpdate,omitempty" bson:"lastUpdate,omitempty"`
}

Jump to

Keyboard shortcuts

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