piquant

package
v0.0.0-...-9ea7be0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetPiquantConfigVersions

func GetPiquantConfigVersions(svcs *services.APIServices, configName string) []string

GetPiquantConfigVersions - retrieves all available versions of a given named PIQUANT config eg. Returns all versions for config called PIXL or Breadboard...

Types

type PiquantConfig

type PiquantConfig struct {
	Description         string `json:"description"`
	ConfigFile          string `json:"configFile"`
	OpticEfficiencyFile string `json:"opticEfficiencyFile"`
	CalibrationFile     string `json:"calibrationFile"`
	StandardsFile       string `json:"standardsFile"`
}

func GetPIQUANTConfig

func GetPIQUANTConfig(svcs *services.APIServices, configName string, version string) (PiquantConfig, error)

type PiquantVersionConfig

type PiquantVersionConfig struct {
	Version            string            `json:"version"`
	ChangedUnixTimeSec int64             `json:"changedUnixTimeSec"`
	Creator            pixlUser.UserInfo `json:"creator"`
}

Version config item

func GetPiquantVersion

func GetPiquantVersion(svcs *services.APIServices) (PiquantVersionConfig, error)

GetPiquantVersion - retrieves currently active PIQUANT version NOTE: If this is not in S3, we read the API config value, but this allows users to override it with S3

Jump to

Keyboard shortcuts

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