localbackendapi

package
v0.0.0-...-9714d35 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2023 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LocalBackendStore

type LocalBackendStore struct {
	PlotData         []R2dbePlotData
	UpdateTime       int64 // unix time, compatible with time.Unix()
	LocalObservatory string
}

func NewLocalBackendStore

func NewLocalBackendStore(local string) *LocalBackendStore

func (*LocalBackendStore) GetHandle

func (store *LocalBackendStore) GetHandle(w http.ResponseWriter, r *http.Request, params httprouter.Params)

func (*LocalBackendStore) PostHandle

func (store *LocalBackendStore) PostHandle(w http.ResponseWriter, r *http.Request, params httprouter.Params)

type R2dbePlotData

type R2dbePlotData struct {
	EightBitStateCounts0    [256]int
	EightBitStateCounts1    [256]int
	TwoBitStateCounts0      [4]int
	TwoBitStateCounts1      [4]int
	EightBitSpectrum0       [2048]float32
	EightBitSpectrum1       [2048]float32
	TwoBitSpectrum0         [2048]float32
	TwoBitSpectrum1         [2048]float32
	BDCAttenuatorParameter0 string
	BDCAttenuatorParameter1 string
	RecorderPrefix0         string
	RecorderPrefix1         string
	RecorderSubgroupValue0  string
	RecorderSubgroupValue1  string
}

Jump to

Keyboard shortcuts

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