serving

package
v0.0.0-...-7ff6187 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2021 License: MIT Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssetHandler

func AssetHandler(prefix, root string) http.Handler

AssetHandler returns an http.Handler that will serve files from the Assets embed.FS.

func StartAdmin

func StartAdmin(globalCfg *config.GlobalConfig, ctrl *controlling.Controller)

StartAdmin starts serving administration API requests.

func StartMetrics

func StartMetrics(cfg *config.HTTPConfig)

StartMetrics starts serving metrics for prometheus server scrape.

Types

type DeviceTemplateDownloader

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

func NewDeviceTemplateDownloader

func NewDeviceTemplateDownloader(target *models.SimulationTarget) *DeviceTemplateDownloader

func (*DeviceTemplateDownloader) DownloadModels

func (d *DeviceTemplateDownloader) DownloadModels() ([]*models.DeviceModel, error)

Jump to

Keyboard shortcuts

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