v1

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2022 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Cache map[string]map[int]MapDataCache
)

Functions

This section is empty.

Types

type HttpEndpoints

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

func NewHTTPHandler

func NewHTTPHandler(
	contentDB *contentdb.ContentDBService,
	readOnlyAPIKeys []string,
	readWriteAPIKeys []string,
	instanceIDs []string,
	mapDataStoringDuration int,
	assetsDir string,
) *HttpEndpoints

func (*HttpEndpoints) AddContentAPI

func (h *HttpEndpoints) AddContentAPI(rg *gin.RouterGroup)

func (*HttpEndpoints) AddContentManagementAPI

func (h *HttpEndpoints) AddContentManagementAPI(rg *gin.RouterGroup)

type MapDataCache added in v0.3.0

type MapDataCache struct {
	LastUpdated int64
	Data        types.ReportMapData
}

Jump to

Keyboard shortcuts

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