Documentation ¶
Index ¶
- func AddProjectMemberRole(db *sqlx.DB) echo.HandlerFunc
- func AddTimeseriesToCollectionGroup(db *sqlx.DB) echo.HandlerFunc
- func ComputedTimeseries(db *sqlx.DB) echo.HandlerFunc
- func CreateCollectionGroup(db *sqlx.DB) echo.HandlerFunc
- func CreateInstrumentAlertConfigs(db *sqlx.DB) echo.HandlerFunc
- func CreateInstrumentConstants(db *sqlx.DB) echo.HandlerFunc
- func CreateInstrumentGroup(db *sqlx.DB) echo.HandlerFunc
- func CreateInstrumentGroupInstruments(db *sqlx.DB) echo.HandlerFunc
- func CreateInstrumentNote(db *sqlx.DB) echo.HandlerFunc
- func CreateInstruments(db *sqlx.DB) echo.HandlerFunc
- func CreateOrUpdateInstrumentStatus(db *sqlx.DB) echo.HandlerFunc
- func CreateOrUpdateProjectInclinometerMeasurements(db *sqlx.DB) echo.HandlerFunc
- func CreateOrUpdateProjectTimeseriesMeasurements(db *sqlx.DB) echo.HandlerFunc
- func CreateOrUpdateTimeseriesMeasurements(db *sqlx.DB) echo.HandlerFunc
- func CreatePlotConfiguration(db *sqlx.DB) echo.HandlerFunc
- func CreateProfile(db *sqlx.DB) echo.HandlerFunc
- func CreateProjectBulk(db *sqlx.DB) echo.HandlerFunc
- func CreateProjectTimeseries(db *sqlx.DB) echo.HandlerFunc
- func CreateTimeseries(db *sqlx.DB) echo.HandlerFunc
- func CreateToken(db *sqlx.DB) echo.HandlerFunc
- func DeleteCollectionGroup(db *sqlx.DB) echo.HandlerFunc
- func DeleteFlagInstrument(db *sqlx.DB) echo.HandlerFunc
- func DeleteFlagInstrumentGroup(db *sqlx.DB) echo.HandlerFunc
- func DeleteFlagProject(db *sqlx.DB) echo.HandlerFunc
- func DeleteInclinometerMeasurements(db *sqlx.DB) echo.HandlerFunc
- func DeleteInstrumentAlertConfig(db *sqlx.DB) echo.HandlerFunc
- func DeleteInstrumentConstant(db *sqlx.DB) echo.HandlerFunc
- func DeleteInstrumentGroupInstruments(db *sqlx.DB) echo.HandlerFunc
- func DeleteInstrumentNote(db *sqlx.DB) echo.HandlerFunc
- func DeleteInstrumentStatus(db *sqlx.DB) echo.HandlerFunc
- func DeletePlotConfiguration(db *sqlx.DB) echo.HandlerFunc
- func DeleteProjectTimeseries(db *sqlx.DB) echo.HandlerFunc
- func DeleteTimeserieMeasurements(db *sqlx.DB) echo.HandlerFunc
- func DeleteTimeseries(db *sqlx.DB) echo.HandlerFunc
- func DeleteToken(db *sqlx.DB) echo.HandlerFunc
- func DoAlertRead(db *sqlx.DB) echo.HandlerFunc
- func DoAlertUnread(db *sqlx.DB) echo.HandlerFunc
- func DoHeartbeat(db *sqlx.DB) echo.HandlerFunc
- func GetAlertConfig(db *sqlx.DB) echo.HandlerFunc
- func GetCollectionGroupDetails(db *sqlx.DB) echo.HandlerFunc
- func GetDomains(db *sqlx.DB) echo.HandlerFunc
- func GetHome(db *sqlx.DB) echo.HandlerFunc
- func GetInstrument(db *sqlx.DB) echo.HandlerFunc
- func GetInstrumentCount(db *sqlx.DB) echo.HandlerFunc
- func GetInstrumentGroup(db *sqlx.DB) echo.HandlerFunc
- func GetInstrumentNote(db *sqlx.DB) echo.HandlerFunc
- func GetInstrumentStatus(db *sqlx.DB) echo.HandlerFunc
- func GetLatestHeartbeat(db *sqlx.DB) echo.HandlerFunc
- func GetMedia(awsCfg *aws.Config, bucket *string, bucketPrefix string, routePrefix *string) echo.HandlerFunc
- func GetMyProfile(db *sqlx.DB) echo.HandlerFunc
- func GetPlotConfiguration(db *sqlx.DB) echo.HandlerFunc
- func GetProject(db *sqlx.DB) echo.HandlerFunc
- func GetProjectCount(db *sqlx.DB) echo.HandlerFunc
- func GetTimeseries(db *sqlx.DB) echo.HandlerFunc
- func ListAlertsForInstrument(db *sqlx.DB) echo.HandlerFunc
- func ListAwareParameters(db *sqlx.DB) echo.HandlerFunc
- func ListAwarePlatformParameterConfig(db *sqlx.DB) echo.HandlerFunc
- func ListCollectionGroups(db *sqlx.DB) echo.HandlerFunc
- func ListEmailAutocomplete(db *sqlx.DB) echo.HandlerFunc
- func ListHeartbeats(db *sqlx.DB) echo.HandlerFunc
- func ListInclinometerMeasurements(db *sqlx.DB) echo.HandlerFunc
- func ListInstrumentAlertConfigs(db *sqlx.DB) echo.HandlerFunc
- func ListInstrumentConstants(db *sqlx.DB) echo.HandlerFunc
- func ListInstrumentGroupInstruments(db *sqlx.DB) echo.HandlerFunc
- func ListInstrumentGroupTimeseries(db *sqlx.DB) echo.HandlerFunc
- func ListInstrumentGroups(db *sqlx.DB) echo.HandlerFunc
- func ListInstrumentInstrumentNotes(db *sqlx.DB) echo.HandlerFunc
- func ListInstrumentNotes(db *sqlx.DB) echo.HandlerFunc
- func ListInstrumentStatus(db *sqlx.DB) echo.HandlerFunc
- func ListInstrumentTimeseries(db *sqlx.DB) echo.HandlerFunc
- func ListInstruments(db *sqlx.DB) echo.HandlerFunc
- func ListMyAlertSubscriptions(db *sqlx.DB) echo.HandlerFunc
- func ListMyAlerts(db *sqlx.DB) echo.HandlerFunc
- func ListMyProjects(db *sqlx.DB) echo.HandlerFunc
- func ListOpendcsSites(db *sqlx.DB) echo.HandlerFunc
- func ListPlotConfigurations(db *sqlx.DB) echo.HandlerFunc
- func ListProjectInstrumentGroups(db *sqlx.DB) echo.HandlerFunc
- func ListProjectInstrumentNames(db *sqlx.DB) echo.HandlerFunc
- func ListProjectInstruments(db *sqlx.DB) echo.HandlerFunc
- func ListProjectMembers(db *sqlx.DB) echo.HandlerFunc
- func ListProjectTimeseries(db *sqlx.DB) echo.HandlerFunc
- func ListProjects(db *sqlx.DB) echo.HandlerFunc
- func ListTimeseries(db *sqlx.DB) echo.HandlerFunc
- func ListTimeseriesMeasurements(db *sqlx.DB) echo.HandlerFunc
- func ListUnits(db *sqlx.DB) echo.HandlerFunc
- func PostExplorer(db *sqlx.DB) echo.HandlerFunc
- func PostInclinometerExplorer(db *sqlx.DB) echo.HandlerFunc
- func RemoveProjectMemberRole(db *sqlx.DB) echo.HandlerFunc
- func RemoveTimeseriesFromCollectionGroup(db *sqlx.DB) echo.HandlerFunc
- func Search(db *sqlx.DB) echo.HandlerFunc
- func SubscribeProfileToAlerts(db *sqlx.DB) echo.HandlerFunc
- func UnsubscribeProfileToAlerts(db *sqlx.DB) echo.HandlerFunc
- func UpdateCollectionGroup(db *sqlx.DB) echo.HandlerFunc
- func UpdateInstrument(db *sqlx.DB) echo.HandlerFunc
- func UpdateInstrumentAlertConfig(db *sqlx.DB) echo.HandlerFunc
- func UpdateInstrumentGeometry(db *sqlx.DB) echo.HandlerFunc
- func UpdateInstrumentGroup(db *sqlx.DB) echo.HandlerFunc
- func UpdateInstrumentNote(db *sqlx.DB) echo.HandlerFunc
- func UpdateMyAlertSubscription(db *sqlx.DB) echo.HandlerFunc
- func UpdatePlotConfiguration(db *sqlx.DB) echo.HandlerFunc
- func UpdateProject(db *sqlx.DB) echo.HandlerFunc
- func UpdateTimeseries(db *sqlx.DB) echo.HandlerFunc
- type ExplorerRow
- type Filter
- type Home
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddProjectMemberRole ¶
func AddTimeseriesToCollectionGroup ¶
AddTimeseriesToCollectionGroup adds a timeseries from a collection group
func ComputedTimeseries ¶
ComputedTimeseries returns computed timeseries for a given instrument This is an endpoint for debugging at this time
func CreateCollectionGroup ¶
CreateCollectionGroup creates a new collection group
func CreateInstrumentAlertConfigs ¶
CreateInstrumentAlertConfigs creates one or more alerts
func CreateInstrumentConstants ¶
CreateInstrumentConstants creates instrument constants (i.e. timeseries)
func CreateInstrumentGroup ¶
CreateInstrumentGroup accepts an array of instruments for bulk upload to the database
func CreateInstrumentGroupInstruments ¶
CreateInstrumentGroupInstruments adds an instrument to an instrument group
func CreateInstrumentNote ¶
CreateInstrumentNote creates instrument notes
func CreateInstruments ¶
CreateInstruments accepts an array of instruments for bulk upload to the database
func CreateOrUpdateInstrumentStatus ¶
CreateOrUpdateInstrumentStatus creates a Status for an instrument
func CreateOrUpdateProjectInclinometerMeasurements ¶
CreateOrUpdateProjectInclinometerMeasurements Creates or Updates a InclinometerMeasurement object or array of objects All timeseries must belong to the same project
func CreateOrUpdateProjectTimeseriesMeasurements ¶
CreateOrUpdateProjectTimeseriesMeasurements Creates or Updates a TimeseriesMeasurement object or array of objects All timeseries must belong to the same project
func CreateOrUpdateTimeseriesMeasurements ¶
CreateOrUpdateTimeseriesMeasurements Creates or Updates a TimeseriesMeasurement object or array of objects Timeseries may belong to one or more projects
func CreatePlotConfiguration ¶
CreatePlotConfiguration add plot configuration for a project
func CreateProfile ¶
CreateProfile creates a user profile
func CreateProjectBulk ¶
CreateProjectBulk accepts an array of instruments for bulk upload to the database
func CreateProjectTimeseries ¶
CreateProjectTimeseries exposes a timeseries at the project level
func CreateTimeseries ¶
CreateTimeseries accepts a timeseries object or array of timeseries objects Can handle objects with or without TimeseriesMeasurements
func CreateToken ¶
CreateToken returns a list of all products
func DeleteCollectionGroup ¶
DeleteCollectionGroup deletes a collection group using the id of the collection group
func DeleteFlagInstrument ¶
DeleteFlagInstrument changes deleted flag true for an instrument
func DeleteFlagInstrumentGroup ¶
DeleteFlagInstrumentGroup sets the instrument group deleted flag true
func DeleteFlagProject ¶
DeleteFlagProject sets the instrument group deleted flag true
func DeleteInclinometerMeasurements ¶
DeleteInclinometerMeasurements deletes a single inclinometer measurement
func DeleteInstrumentAlertConfig ¶
DeleteInstrumentAlertConfig Deletes an Alert
func DeleteInstrumentConstant ¶
DeleteInstrumentConstant removes a timeseries as an Instrument Constant
func DeleteInstrumentGroupInstruments ¶
DeleteInstrumentGroupInstruments removes an instrument from an instrument group
func DeleteInstrumentNote ¶
DeleteInstrumentNote deletes an instrument note
func DeleteInstrumentStatus ¶
DeleteInstrumentStatus deletes a Status for an instrument
func DeletePlotConfiguration ¶
DeletePlotConfiguration delete plot configuration for a project
func DeleteProjectTimeseries ¶
DeleteProjectTimeseries removes a timeseries from the project level
func DeleteTimeserieMeasurements ¶
DeleteTimeserieMeasurements deletes a single timeseries measurement
func DeleteTimeseries ¶
DeleteTimeseries deletes a single timeseries
func DoAlertRead ¶
DoAlertRead marks an alert as read for a profile
func DoAlertUnread ¶
DoAlertUnread marks an alert as unread for a profile
func DoHeartbeat ¶
DoHeartbeat triggers regular-interval tasks
func GetAlertConfig ¶
GetAlertConfig gets a single alert
func GetCollectionGroupDetails ¶
GetCollectionGroupDetails gets all data needed to render collection group form
func GetDomains ¶
GetDomains returns all database domains in a single endpoint
func GetInstrument ¶
GetInstrument returns a single instrument
func GetInstrumentCount ¶
GetInstrumentCount returns the total number of non deleted instruments in the system
func GetInstrumentGroup ¶
GetInstrumentGroup returns single instrument group
func GetInstrumentNote ¶
GetInstrumentNote returns a single instrument note
func GetInstrumentStatus ¶
GetInstrumentStatus returns a single Status
func GetLatestHeartbeat ¶
GetLatestHeartbeat returns the latest heartbeat entry
func GetMedia ¶
func GetMedia(awsCfg *aws.Config, bucket *string, bucketPrefix string, routePrefix *string) echo.HandlerFunc
GetMedia serves media, files, etc for a given project
func GetMyProfile ¶
GetMyProfile returns profile for current authenticated user or 404
func GetPlotConfiguration ¶
GetPlotConfiguration returns single instrument group
func GetProjectCount ¶
GetProjectCount returns the total number of non deleted projects in the system
func GetTimeseries ¶
GetTimeseries returns a single timeseries
func ListAlertsForInstrument ¶
ListAlertsForInstrument lists alerts for a single instrument
func ListAwareParameters ¶
func ListCollectionGroups ¶
ListCollectionGroups returns instrument groups
func ListEmailAutocomplete ¶
ListEmailAutocomplete lists results of email autocomplete
func ListHeartbeats ¶
ListHeartbeats returns all heartbeats
func ListInclinometerMeasurements ¶
ListInclinometerMeasurements returns a timeseries with inclinometer measurements
func ListInstrumentAlertConfigs ¶
ListInstrumentAlertConfigs lists alerts for a single instrument
func ListInstrumentConstants ¶
ListInstrumentConstants lists constants for a given instrument
func ListInstrumentGroupInstruments ¶
ListInstrumentGroupInstruments returns a list of instruments for a provided instrument group
func ListInstrumentGroupTimeseries ¶
ListInstrumentGroupTimeseries lists timeseries for instruments in an instrument group
func ListInstrumentGroups ¶
ListInstrumentGroups returns instrument groups
func ListInstrumentInstrumentNotes ¶
ListInstrumentInstrumentNotes returns instrument notes for a single instrument
func ListInstrumentNotes ¶
ListInstrumentNotes returns instrument notes
func ListInstrumentStatus ¶
ListInstrumentStatus lists all Status for an instrument
func ListInstrumentTimeseries ¶
ListInstrumentTimeseries lists timeseries for an instrument
func ListInstruments ¶
ListInstruments returns instruments
func ListMyAlertSubscriptions ¶
ListMyAlertSubscriptions returns all alerts you are subscribed to and settings
func ListMyAlerts ¶
ListMyAlerts returns all alerts a profile is subscribed to
func ListMyProjects ¶
func ListOpendcsSites ¶
ListOpendcsSites returns all Instruments, represented as Opendcs Sites
func ListPlotConfigurations ¶
ListPlotConfigurations returns plot groups
func ListProjectInstrumentGroups ¶
ListProjectInstrumentGroups returns instrument groups associated with a project
func ListProjectInstrumentNames ¶
ListProjectInstrumentNames returns names of all instruments associated with a project
func ListProjectInstruments ¶
ListProjectInstruments returns instruments associated with a project
func ListProjectMembers ¶
ListProjectMembers returns project members and their role information
func ListProjectTimeseries ¶
ListProjectTimeseries lists all timeseries for a single project
func ListTimeseries ¶
ListTimeseries returns an array of timeseries
func ListTimeseriesMeasurements ¶
ListTimeseriesMeasurements returns a timeseries with measurements
func PostExplorer ¶
PostExplorer retrieves timeseries information for the explorer app component
func RemoveProjectMemberRole ¶
func RemoveTimeseriesFromCollectionGroup ¶
RemoveTimeseriesFromCollectionGroup removes a timeseries from a collection group
func SubscribeProfileToAlerts ¶
SubscribeProfileToAlerts subscribes a profile to an alert
func UnsubscribeProfileToAlerts ¶
UnsubscribeProfileToAlerts unsubscribes a profile to an alert
func UpdateCollectionGroup ¶
UpdateCollectionGroup updates an existing collection group
func UpdateInstrument ¶
UpdateInstrument modifies an existing instrument
func UpdateInstrumentAlertConfig ¶
UpdateInstrumentAlertConfig updates an existing alert
func UpdateInstrumentGeometry ¶
UpdateInstrumentGeometry updates only the geometry property of an instrument
func UpdateInstrumentGroup ¶
UpdateInstrumentGroup modifies an existing instrument_group
func UpdateInstrumentNote ¶
UpdateInstrumentNote updates an instrument note
func UpdateMyAlertSubscription ¶
UpdateMyAlertSubscription updates settings for an alert subscription
func UpdatePlotConfiguration ¶
UpdatePlotConfiguration updates a plot configuration for a project
func UpdateProject ¶
UpdateProject updates an existing project
func UpdateTimeseries ¶
UpdateTimeseries updates a single timeseries
Types ¶
type ExplorerRow ¶
type ExplorerRow struct { InstrumentID uuid.UUID `db:"instrument_id"` TimeseriesID uuid.UUID `db:"timeseries_id"` ParameterID uuid.UUID `db:"parameter_id"` UnitID uuid.UUID `db:"unit_id"` Time time.Time `db:"time"` Value float32 `db:"value"` }
ExplorerRow is used for sql scanning
type Filter ¶
type Filter struct { InstrumentID []uuid.UUID ParameterID []uuid.UUID TimeWindow models.TimeWindow }
Filter encapsulates SQL query filters from a request that are used to build SQL
type Home ¶
type Home struct { InstrumentCount int `json:"instrument_count" db:"instrument_count"` InstrumetGroupCount int `json:"instrument_group_count" db:"instrument_group_count"` ProjectCount int `json:"project_count" db:"project_count"` NewInstruments7D int `json:"new_instruments_7d" db:"new_instruments_7d"` NewMeasurements2H int `json:"new_measurements_2h" db:"new_measurements_2h"` }
Home is information for the homepage (landing page)
Source Files ¶
- alert_config.go
- alert_subscription.go
- alerts.go
- autocomplete.go
- aware.go
- collection_groups.go
- computations.go
- domains.go
- explorer.go
- heartbeat.go
- home.go
- inclinometer measurements.go
- instrument_constants.go
- instrument_groups.go
- instrument_notes.go
- instrument_status.go
- instruments.go
- media.go
- opendcs.go
- plot_configuration.go
- profile.go
- project_roles.go
- projects.go
- search.go
- timeseries measurements.go
- timeseries.go
- unit.go