Documentation ¶
Index ¶
- func AddDB(domain, connectionInfo string) error
- func GetDB(domain string) (*sql.DB, error)
- func GetDomains() []string
- func GetMigrations() embed.FS
- func PingDB(conn *sql.DB) error
- func PingDomain(domain string) error
- func RemoveDB(domain string) error
- type AccountState
- type AddTokenToUserParams
- type AddUserToGroupParams
- type Alert
- type AlertSeverity
- type AlertStatus
- type CheckUserTokenHasAccessManyParams
- type CheckUserTokenHasAccessParams
- type CreateAlertParams
- type CreateCodeRevisionParams
- type CreateCodeRevisionRow
- type CreateDatasetParams
- type CreateDatasetRow
- type CreatePolicyParams
- type CreateProgramParams
- type CreateProgramRow
- type CreateThingParams
- type CreateThingRow
- type CreateTimeseriesParams
- type CreateTimeseriesRow
- type CreateTsDataParams
- type CreateUserRow
- type CreateUserTokenParams
- type DBConnection
- type DBTX
- type Dataset
- type DeleteProgramCodeRevisionParams
- type DeleteTokenFromUserParams
- type DeleteTsDataRangeParams
- type DomainDB
- type FindAlertsParams
- type FindAlertsRow
- type FindAllModulesRow
- type FindAllRoutineRevisionsRow
- type FindDatasetByThingRow
- type FindDatasetByUUIDRow
- type FindDatasetsByTagsParams
- type FindDatasetsByTagsRow
- type FindDatasetsParams
- type FindDatasetsRow
- type FindGroupsParams
- type FindPoliciesParams
- type FindPoliciesRow
- type FindProgramCodeRevisionsRow
- type FindProgramsByTagsParams
- type FindProgramsParams
- type FindThingsByTagsParams
- type FindThingsParams
- type FindTimeseriesByTagsParams
- type FindTimeseriesParams
- type FindTokensByUserRow
- type FindUsersParams
- type FindUsersRow
- type GetDatasetContentByUUIDRow
- type GetNamedModuleCodeAtHeadParams
- type GetNamedModuleCodeAtRevisionParams
- type GetProgramCodeAtHeadRow
- type GetProgramCodeAtRevisionParams
- type GetSignedProgramCodeAtHeadRow
- type GetTsDataRangeAggParams
- type GetTsDataRangeAggRow
- type GetTsDataRangeParams
- type GetTsDataRangeRow
- type Group
- type GroupPolicy
- type PolicyAction
- type PolicyEffect
- type Program
- type ProgramCodeRevision
- type Queries
- func (q *Queries) AddTokenToUser(ctx context.Context, arg AddTokenToUserParams) (UserToken, error)
- func (q *Queries) AddUserToGroup(ctx context.Context, arg AddUserToGroupParams) error
- func (q *Queries) CheckUserTokenHasAccess(ctx context.Context, arg CheckUserTokenHasAccessParams) (bool, error)
- func (q *Queries) CheckUserTokenHasAccessMany(ctx context.Context, arg CheckUserTokenHasAccessManyParams) (bool, error)
- func (q *Queries) Close() error
- func (q *Queries) CreateAlert(ctx context.Context, arg CreateAlertParams) (uuid.UUID, error)
- func (q *Queries) CreateCodeRevision(ctx context.Context, arg CreateCodeRevisionParams) (CreateCodeRevisionRow, error)
- func (q *Queries) CreateDataset(ctx context.Context, arg CreateDatasetParams) (CreateDatasetRow, error)
- func (q *Queries) CreateGroup(ctx context.Context, name string) (Group, error)
- func (q *Queries) CreatePolicy(ctx context.Context, arg CreatePolicyParams) (GroupPolicy, error)
- func (q *Queries) CreateProgram(ctx context.Context, arg CreateProgramParams) (CreateProgramRow, error)
- func (q *Queries) CreateThing(ctx context.Context, arg CreateThingParams) (CreateThingRow, error)
- func (q *Queries) CreateTimeseries(ctx context.Context, arg CreateTimeseriesParams) (CreateTimeseriesRow, error)
- func (q *Queries) CreateTsData(ctx context.Context, arg CreateTsDataParams) (int64, error)
- func (q *Queries) CreateUser(ctx context.Context, name string) (CreateUserRow, error)
- func (q *Queries) CreateUserToken(ctx context.Context, arg CreateUserTokenParams) (UserToken, error)
- func (q *Queries) DeleteAlert(ctx context.Context, uuid uuid.UUID) (int64, error)
- func (q *Queries) DeleteAllTsData(ctx context.Context, tsUuid uuid.UUID) (int64, error)
- func (q *Queries) DeleteDataset(ctx context.Context, uuid uuid.UUID) (int64, error)
- func (q *Queries) DeleteGroup(ctx context.Context, uuid uuid.UUID) (int64, error)
- func (q *Queries) DeletePolicyByUUID(ctx context.Context, uuid uuid.UUID) (int64, error)
- func (q *Queries) DeleteProgram(ctx context.Context, uuid uuid.UUID) (int64, error)
- func (q *Queries) DeleteProgramCodeRevision(ctx context.Context, arg DeleteProgramCodeRevisionParams) (int64, error)
- func (q *Queries) DeleteThing(ctx context.Context, uuid uuid.UUID) (int64, error)
- func (q *Queries) DeleteTimeseries(ctx context.Context, uuid uuid.UUID) (int64, error)
- func (q *Queries) DeleteTokenFromUser(ctx context.Context, arg DeleteTokenFromUserParams) (int64, error)
- func (q *Queries) DeleteTsDataRange(ctx context.Context, arg DeleteTsDataRangeParams) (int64, error)
- func (q *Queries) DeleteUser(ctx context.Context, uuid uuid.UUID) (int64, error)
- func (q *Queries) ExistsAlert(ctx context.Context, uuid uuid.UUID) (int64, error)
- func (q *Queries) ExistsDataset(ctx context.Context, uuid uuid.UUID) (int64, error)
- func (q *Queries) ExistsGroup(ctx context.Context, uuid uuid.UUID) (int64, error)
- func (q *Queries) ExistsPolicy(ctx context.Context, uuid uuid.UUID) (int64, error)
- func (q *Queries) ExistsProgram(ctx context.Context, uuid uuid.UUID) (int64, error)
- func (q *Queries) ExistsThing(ctx context.Context, uuid uuid.UUID) (int64, error)
- func (q *Queries) ExistsTimeseries(ctx context.Context, uuid uuid.UUID) (int64, error)
- func (q *Queries) ExistsUser(ctx context.Context, uuid uuid.UUID) (int64, error)
- func (q *Queries) FindAlertByUUID(ctx context.Context, uuid uuid.UUID) (VAlert, error)
- func (q *Queries) FindAlerts(ctx context.Context, arg FindAlertsParams) ([]FindAlertsRow, error)
- func (q *Queries) FindAllModules(ctx context.Context) ([]FindAllModulesRow, error)
- func (q *Queries) FindAllRoutineRevisions(ctx context.Context) ([]FindAllRoutineRevisionsRow, error)
- func (q *Queries) FindDatasetByThing(ctx context.Context, thingUuid uuid.UUID) ([]FindDatasetByThingRow, error)
- func (q *Queries) FindDatasetByUUID(ctx context.Context, uuid uuid.UUID) (FindDatasetByUUIDRow, error)
- func (q *Queries) FindDatasets(ctx context.Context, arg FindDatasetsParams) ([]FindDatasetsRow, error)
- func (q *Queries) FindDatasetsByTags(ctx context.Context, arg FindDatasetsByTagsParams) ([]FindDatasetsByTagsRow, error)
- func (q *Queries) FindGroupByUuid(ctx context.Context, uuid uuid.UUID) (Group, error)
- func (q *Queries) FindGroups(ctx context.Context, arg FindGroupsParams) ([]Group, error)
- func (q *Queries) FindGroupsByUser(ctx context.Context, uuid uuid.UUID) ([]Group, error)
- func (q *Queries) FindPolicies(ctx context.Context, arg FindPoliciesParams) ([]FindPoliciesRow, error)
- func (q *Queries) FindPoliciesByGroup(ctx context.Context, uuid uuid.UUID) ([]GroupPolicy, error)
- func (q *Queries) FindPoliciesByUser(ctx context.Context, uuid uuid.UUID) ([]GroupPolicy, error)
- func (q *Queries) FindPolicyByUUID(ctx context.Context, uuid uuid.UUID) (GroupPolicy, error)
- func (q *Queries) FindProgramByUUID(ctx context.Context, uuid uuid.UUID) (Program, error)
- func (q *Queries) FindProgramCodeRevisions(ctx context.Context, programUuid uuid.UUID) ([]FindProgramCodeRevisionsRow, error)
- func (q *Queries) FindPrograms(ctx context.Context, arg FindProgramsParams) ([]Program, error)
- func (q *Queries) FindProgramsByTags(ctx context.Context, arg FindProgramsByTagsParams) ([]Program, error)
- func (q *Queries) FindThingByUUID(ctx context.Context, uuid uuid.UUID) (Thing, error)
- func (q *Queries) FindThings(ctx context.Context, arg FindThingsParams) ([]Thing, error)
- func (q *Queries) FindThingsByTags(ctx context.Context, arg FindThingsByTagsParams) ([]Thing, error)
- func (q *Queries) FindTimeseries(ctx context.Context, arg FindTimeseriesParams) ([]Timeseries, error)
- func (q *Queries) FindTimeseriesByTags(ctx context.Context, arg FindTimeseriesByTagsParams) ([]Timeseries, error)
- func (q *Queries) FindTimeseriesByThing(ctx context.Context, thingUuid interface{}) ([]Timeseries, error)
- func (q *Queries) FindTimeseriesByUUID(ctx context.Context, tsUuid interface{}) (Timeseries, error)
- func (q *Queries) FindTokensByUser(ctx context.Context, uuid uuid.UUID) ([]FindTokensByUserRow, error)
- func (q *Queries) FindUserByUUID(ctx context.Context, uuid uuid.UUID) (User, error)
- func (q *Queries) FindUsers(ctx context.Context, arg FindUsersParams) ([]FindUsersRow, error)
- func (q *Queries) GetDatasetContentByUUID(ctx context.Context, uuid uuid.UUID) (GetDatasetContentByUUIDRow, error)
- func (q *Queries) GetNamedModuleCodeAtHead(ctx context.Context, arg GetNamedModuleCodeAtHeadParams) ([]byte, error)
- func (q *Queries) GetNamedModuleCodeAtRevision(ctx context.Context, arg GetNamedModuleCodeAtRevisionParams) ([]byte, error)
- func (q *Queries) GetProgramCodeAtHead(ctx context.Context, programUuid uuid.UUID) (GetProgramCodeAtHeadRow, error)
- func (q *Queries) GetProgramCodeAtRevision(ctx context.Context, arg GetProgramCodeAtRevisionParams) ([]byte, error)
- func (q *Queries) GetSignedProgramCodeAtHead(ctx context.Context, programUuid uuid.UUID) (GetSignedProgramCodeAtHeadRow, error)
- func (q *Queries) GetTimeseriesByUUID(ctx context.Context, uuid uuid.UUID) (Timeseries, error)
- func (q *Queries) GetTsDataRange(ctx context.Context, arg GetTsDataRangeParams) ([]GetTsDataRangeRow, error)
- func (q *Queries) GetTsDataRangeAgg(ctx context.Context, arg GetTsDataRangeAggParams) ([]GetTsDataRangeAggRow, error)
- func (q *Queries) GetUnitFromTimeseries(ctx context.Context, uuid uuid.UUID) (string, error)
- func (q *Queries) GetUserUuidFromToken(ctx context.Context, token []byte) (uuid.UUID, error)
- func (q *Queries) RemoveUserFromAllGroups(ctx context.Context, userUuid uuid.UUID) (int64, error)
- func (q *Queries) RemoveUserFromGroups(ctx context.Context, arg RemoveUserFromGroupsParams) (int64, error)
- func (q *Queries) SetDatasetContentByUUID(ctx context.Context, arg SetDatasetContentByUUIDParams) (int64, error)
- func (q *Queries) SetDatasetFormatByUUID(ctx context.Context, arg SetDatasetFormatByUUIDParams) (int64, error)
- func (q *Queries) SetDatasetNameByUUID(ctx context.Context, arg SetDatasetNameByUUIDParams) (int64, error)
- func (q *Queries) SetDatasetTags(ctx context.Context, arg SetDatasetTagsParams) (int64, error)
- func (q *Queries) SetDatasetThingByUUID(ctx context.Context, arg SetDatasetThingByUUIDParams) (int64, error)
- func (q *Queries) SetGroupNameByUUID(ctx context.Context, arg SetGroupNameByUUIDParams) (int64, error)
- func (q *Queries) SetPolicyAction(ctx context.Context, arg SetPolicyActionParams) (int64, error)
- func (q *Queries) SetPolicyEffect(ctx context.Context, arg SetPolicyEffectParams) (int64, error)
- func (q *Queries) SetPolicyGroup(ctx context.Context, arg SetPolicyGroupParams) (int64, error)
- func (q *Queries) SetPolicyPriority(ctx context.Context, arg SetPolicyPriorityParams) (int64, error)
- func (q *Queries) SetPolicyResource(ctx context.Context, arg SetPolicyResourceParams) (int64, error)
- func (q *Queries) SetProgramDeadlineByUUID(ctx context.Context, arg SetProgramDeadlineByUUIDParams) (int64, error)
- func (q *Queries) SetProgramLanguageByUUID(ctx context.Context, arg SetProgramLanguageByUUIDParams) (int64, error)
- func (q *Queries) SetProgramNameByUUID(ctx context.Context, arg SetProgramNameByUUIDParams) (int64, error)
- func (q *Queries) SetProgramScheduleByUUID(ctx context.Context, arg SetProgramScheduleByUUIDParams) (int64, error)
- func (q *Queries) SetProgramStateByUUID(ctx context.Context, arg SetProgramStateByUUIDParams) (int64, error)
- func (q *Queries) SetProgramTags(ctx context.Context, arg SetProgramTagsParams) (int64, error)
- func (q *Queries) SetProgramTypeByUUID(ctx context.Context, arg SetProgramTypeByUUIDParams) (int64, error)
- func (q *Queries) SetThingNameByUUID(ctx context.Context, arg SetThingNameByUUIDParams) (int64, error)
- func (q *Queries) SetThingStateByUUID(ctx context.Context, arg SetThingStateByUUIDParams) (int64, error)
- func (q *Queries) SetThingTags(ctx context.Context, arg SetThingTagsParams) (int64, error)
- func (q *Queries) SetThingTypeByUUID(ctx context.Context, arg SetThingTypeByUUIDParams) (int64, error)
- func (q *Queries) SetTimeseriesLowerBound(ctx context.Context, arg SetTimeseriesLowerBoundParams) (int64, error)
- func (q *Queries) SetTimeseriesName(ctx context.Context, arg SetTimeseriesNameParams) (int64, error)
- func (q *Queries) SetTimeseriesSiUnit(ctx context.Context, arg SetTimeseriesSiUnitParams) (int64, error)
- func (q *Queries) SetTimeseriesTags(ctx context.Context, arg SetTimeseriesTagsParams) (int64, error)
- func (q *Queries) SetTimeseriesThing(ctx context.Context, arg SetTimeseriesThingParams) (int64, error)
- func (q *Queries) SetTimeseriesUpperBound(ctx context.Context, arg SetTimeseriesUpperBoundParams) (int64, error)
- func (q *Queries) SetUserName(ctx context.Context, arg SetUserNameParams) (int64, error)
- func (q *Queries) SignProgramCodeRevision(ctx context.Context, arg SignProgramCodeRevisionParams) (int64, error)
- func (q *Queries) UpdateAlertIncDuplicate(ctx context.Context, uuid uuid.UUID) (int64, error)
- func (q *Queries) UpdateAlertSetDescription(ctx context.Context, arg UpdateAlertSetDescriptionParams) (int64, error)
- func (q *Queries) UpdateAlertSetEnvironment(ctx context.Context, arg UpdateAlertSetEnvironmentParams) (int64, error)
- func (q *Queries) UpdateAlertSetEvent(ctx context.Context, arg UpdateAlertSetEventParams) (int64, error)
- func (q *Queries) UpdateAlertSetLastReceivedTime(ctx context.Context, uuid uuid.UUID) (int64, error)
- func (q *Queries) UpdateAlertSetOrigin(ctx context.Context, arg UpdateAlertSetOriginParams) (int64, error)
- func (q *Queries) UpdateAlertSetRawdata(ctx context.Context, arg UpdateAlertSetRawdataParams) (int64, error)
- func (q *Queries) UpdateAlertSetResource(ctx context.Context, arg UpdateAlertSetResourceParams) (int64, error)
- func (q *Queries) UpdateAlertSetService(ctx context.Context, arg UpdateAlertSetServiceParams) (int64, error)
- func (q *Queries) UpdateAlertSetSeverity(ctx context.Context, arg UpdateAlertSetSeverityParams) (int64, error)
- func (q *Queries) UpdateAlertSetStatus(ctx context.Context, arg UpdateAlertSetStatusParams) (int64, error)
- func (q *Queries) UpdateAlertSetTags(ctx context.Context, arg UpdateAlertSetTagsParams) (int64, error)
- func (q *Queries) UpdateAlertSetTimeout(ctx context.Context, arg UpdateAlertSetTimeoutParams) (int64, error)
- func (q *Queries) UpdateAlertSetValue(ctx context.Context, arg UpdateAlertSetValueParams) (int64, error)
- func (q *Queries) WithTx(tx *sql.Tx) *Queries
- type RemoveUserFromGroupsParams
- type SetDatasetContentByUUIDParams
- type SetDatasetFormatByUUIDParams
- type SetDatasetNameByUUIDParams
- type SetDatasetTagsParams
- type SetDatasetThingByUUIDParams
- type SetGroupNameByUUIDParams
- type SetPolicyActionParams
- type SetPolicyEffectParams
- type SetPolicyGroupParams
- type SetPolicyPriorityParams
- type SetPolicyResourceParams
- type SetProgramDeadlineByUUIDParams
- type SetProgramLanguageByUUIDParams
- type SetProgramNameByUUIDParams
- type SetProgramScheduleByUUIDParams
- type SetProgramStateByUUIDParams
- type SetProgramTagsParams
- type SetProgramTypeByUUIDParams
- type SetThingNameByUUIDParams
- type SetThingStateByUUIDParams
- type SetThingTagsParams
- type SetThingTypeByUUIDParams
- type SetTimeseriesLowerBoundParams
- type SetTimeseriesNameParams
- type SetTimeseriesSiUnitParams
- type SetTimeseriesTagsParams
- type SetTimeseriesThingParams
- type SetTimeseriesUpperBoundParams
- type SetUserNameParams
- type SignProgramCodeRevisionParams
- type Thing
- type ThingDep
- type ThingState
- type Timeseries
- type Tsdata0
- type Tsdata1
- type Tsdata10
- type Tsdata100
- type Tsdata101
- type Tsdata102
- type Tsdata103
- type Tsdata104
- type Tsdata105
- type Tsdata106
- type Tsdata107
- type Tsdata108
- type Tsdata109
- type Tsdata11
- type Tsdata110
- type Tsdata111
- type Tsdata112
- type Tsdata113
- type Tsdata114
- type Tsdata115
- type Tsdata116
- type Tsdata117
- type Tsdata118
- type Tsdata119
- type Tsdata12
- type Tsdata120
- type Tsdata121
- type Tsdata122
- type Tsdata123
- type Tsdata124
- type Tsdata125
- type Tsdata126
- type Tsdata127
- type Tsdata128
- type Tsdata129
- type Tsdata13
- type Tsdata130
- type Tsdata131
- type Tsdata132
- type Tsdata133
- type Tsdata134
- type Tsdata135
- type Tsdata136
- type Tsdata137
- type Tsdata138
- type Tsdata139
- type Tsdata14
- type Tsdata140
- type Tsdata141
- type Tsdata142
- type Tsdata143
- type Tsdata144
- type Tsdata145
- type Tsdata146
- type Tsdata147
- type Tsdata148
- type Tsdata149
- type Tsdata15
- type Tsdata150
- type Tsdata151
- type Tsdata152
- type Tsdata153
- type Tsdata154
- type Tsdata155
- type Tsdata156
- type Tsdata157
- type Tsdata158
- type Tsdata159
- type Tsdata16
- type Tsdata160
- type Tsdata161
- type Tsdata162
- type Tsdata163
- type Tsdata164
- type Tsdata165
- type Tsdata166
- type Tsdata167
- type Tsdata168
- type Tsdata169
- type Tsdata17
- type Tsdata170
- type Tsdata171
- type Tsdata172
- type Tsdata173
- type Tsdata174
- type Tsdata175
- type Tsdata176
- type Tsdata177
- type Tsdata178
- type Tsdata179
- type Tsdata18
- type Tsdata180
- type Tsdata181
- type Tsdata182
- type Tsdata183
- type Tsdata184
- type Tsdata185
- type Tsdata186
- type Tsdata187
- type Tsdata188
- type Tsdata189
- type Tsdata19
- type Tsdata190
- type Tsdata191
- type Tsdata192
- type Tsdata193
- type Tsdata194
- type Tsdata195
- type Tsdata196
- type Tsdata197
- type Tsdata198
- type Tsdata199
- type Tsdata2
- type Tsdata20
- type Tsdata200
- type Tsdata201
- type Tsdata202
- type Tsdata203
- type Tsdata204
- type Tsdata205
- type Tsdata206
- type Tsdata207
- type Tsdata208
- type Tsdata209
- type Tsdata21
- type Tsdata210
- type Tsdata211
- type Tsdata212
- type Tsdata213
- type Tsdata214
- type Tsdata215
- type Tsdata216
- type Tsdata217
- type Tsdata218
- type Tsdata219
- type Tsdata22
- type Tsdata220
- type Tsdata221
- type Tsdata222
- type Tsdata223
- type Tsdata224
- type Tsdata225
- type Tsdata226
- type Tsdata227
- type Tsdata228
- type Tsdata229
- type Tsdata23
- type Tsdata230
- type Tsdata231
- type Tsdata232
- type Tsdata233
- type Tsdata234
- type Tsdata235
- type Tsdata236
- type Tsdata237
- type Tsdata238
- type Tsdata239
- type Tsdata24
- type Tsdata240
- type Tsdata241
- type Tsdata242
- type Tsdata243
- type Tsdata244
- type Tsdata245
- type Tsdata246
- type Tsdata247
- type Tsdata248
- type Tsdata249
- type Tsdata25
- type Tsdata250
- type Tsdata251
- type Tsdata252
- type Tsdata253
- type Tsdata254
- type Tsdata255
- type Tsdata26
- type Tsdata27
- type Tsdata28
- type Tsdata29
- type Tsdata3
- type Tsdata30
- type Tsdata31
- type Tsdata32
- type Tsdata33
- type Tsdata34
- type Tsdata35
- type Tsdata36
- type Tsdata37
- type Tsdata38
- type Tsdata39
- type Tsdata4
- type Tsdata40
- type Tsdata41
- type Tsdata42
- type Tsdata43
- type Tsdata44
- type Tsdata45
- type Tsdata46
- type Tsdata47
- type Tsdata48
- type Tsdata49
- type Tsdata5
- type Tsdata50
- type Tsdata51
- type Tsdata52
- type Tsdata53
- type Tsdata54
- type Tsdata55
- type Tsdata56
- type Tsdata57
- type Tsdata58
- type Tsdata59
- type Tsdata6
- type Tsdata60
- type Tsdata61
- type Tsdata62
- type Tsdata63
- type Tsdata64
- type Tsdata65
- type Tsdata66
- type Tsdata67
- type Tsdata68
- type Tsdata69
- type Tsdata7
- type Tsdata70
- type Tsdata71
- type Tsdata72
- type Tsdata73
- type Tsdata74
- type Tsdata75
- type Tsdata76
- type Tsdata77
- type Tsdata78
- type Tsdata79
- type Tsdata8
- type Tsdata80
- type Tsdata81
- type Tsdata82
- type Tsdata83
- type Tsdata84
- type Tsdata85
- type Tsdata86
- type Tsdata87
- type Tsdata88
- type Tsdata89
- type Tsdata9
- type Tsdata90
- type Tsdata91
- type Tsdata92
- type Tsdata93
- type Tsdata94
- type Tsdata95
- type Tsdata96
- type Tsdata97
- type Tsdata98
- type Tsdata99
- type Tsdatum
- type UpdateAlertSetDescriptionParams
- type UpdateAlertSetEnvironmentParams
- type UpdateAlertSetEventParams
- type UpdateAlertSetOriginParams
- type UpdateAlertSetRawdataParams
- type UpdateAlertSetResourceParams
- type UpdateAlertSetServiceParams
- type UpdateAlertSetSeverityParams
- type UpdateAlertSetStatusParams
- type UpdateAlertSetTagsParams
- type UpdateAlertSetTimeoutParams
- type UpdateAlertSetValueParams
- type User
- type UserGroup
- type UserToken
- type VAlert
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetDomains ¶
func GetDomains() []string
func GetMigrations ¶
func PingDomain ¶
Types ¶
type AccountState ¶
type AccountState string
const ( AccountStateActive AccountState = "active" AccountStateInactive AccountState = "inactive" AccountStateArchived AccountState = "archived" )
func (*AccountState) Scan ¶
func (e *AccountState) Scan(src interface{}) error
type AddTokenToUserParams ¶
type AddUserToGroupParams ¶
type Alert ¶ added in v0.1.2
type Alert struct { Uuid uuid.UUID Resource string Environment string Event string Severity AlertSeverity Status AlertStatus Service []string Value string Description string Origin string Tags []string Created time.Time Timeout int32 Rawdata []byte Duplicate int32 PreviousSeverity AlertSeverity LastReceiveTime sql.NullTime }
type AlertSeverity ¶ added in v0.1.2
type AlertSeverity string
const ( AlertSeveritySecurity AlertSeverity = "security" AlertSeverityCritical AlertSeverity = "critical" AlertSeverityMajor AlertSeverity = "major" AlertSeverityMinor AlertSeverity = "minor" AlertSeverityWarning AlertSeverity = "warning" AlertSeverityInformational AlertSeverity = "informational" AlertSeverityDebug AlertSeverity = "debug" AlertSeverityTrace AlertSeverity = "trace" AlertSeverityIndeterminate AlertSeverity = "indeterminate" )
func (*AlertSeverity) Scan ¶ added in v0.1.2
func (e *AlertSeverity) Scan(src interface{}) error
type AlertStatus ¶ added in v0.1.2
type AlertStatus string
const ( AlertStatusOpen AlertStatus = "open" AlertStatusClose AlertStatus = "close" AlertStatusExpire AlertStatus = "expire" AlertStatusShelve AlertStatus = "shelve" AlertStatusAcknowledge AlertStatus = "acknowledge" AlertStatusUnknown AlertStatus = "unknown" )
func (*AlertStatus) Scan ¶ added in v0.1.2
func (e *AlertStatus) Scan(src interface{}) error
type CheckUserTokenHasAccessManyParams ¶ added in v0.1.1
type CheckUserTokenHasAccessManyParams struct { Token []byte Action PolicyAction Resources []string }
type CheckUserTokenHasAccessParams ¶
type CheckUserTokenHasAccessParams struct { Action PolicyAction Resource string Token []byte }
type CreateAlertParams ¶ added in v0.1.2
type CreateCodeRevisionRow ¶
type CreateDatasetParams ¶
type CreateDatasetRow ¶
type CreatePolicyParams ¶
type CreatePolicyParams struct { GroupUuid uuid.UUID Priority int32 Effect PolicyEffect Action PolicyAction Resource string }
type CreateProgramParams ¶
type CreateProgramRow ¶
type CreateThingParams ¶
type CreateThingRow ¶
type CreateThingRow struct { Uuid uuid.UUID Name string Type sql.NullString State ThingState CreatedBy uuid.UUID Tags []string }
type CreateTimeseriesParams ¶
type CreateTimeseriesRow ¶
type CreateTsDataParams ¶
type CreateUserRow ¶
type CreateUserRow struct { Uuid uuid.UUID Name string State AccountState }
type CreateUserTokenParams ¶
type DBConnection ¶
type DBConnection struct { sync.RWMutex C *sql.DB Domain string ConnectionString string // contains filtered or unexported fields }
func (*DBConnection) Close ¶
func (c *DBConnection) Close()
func (*DBConnection) Connect ¶
func (c *DBConnection) Connect()
func (*DBConnection) Equals ¶
func (c *DBConnection) Equals(d *DBConnection) bool
type DeleteTsDataRangeParams ¶
type FindAlertsParams ¶ added in v0.1.2
type FindAlertsRow ¶ added in v0.1.2
type FindAlertsRow struct { Created time.Time Description string Duplicate int32 Environment string Event string LastReceiveTime sql.NullTime Origin string PreviousSeverity AlertSeverity Rawdata []byte Resource string Service []string Severity AlertSeverity Status AlertStatus Tags []string Timeout int32 Uuid uuid.UUID Value string }
type FindAllModulesRow ¶
type FindDatasetByThingRow ¶
type FindDatasetByUUIDRow ¶
type FindDatasetsByTagsRow ¶
type FindDatasetsParams ¶
type FindDatasetsRow ¶
type FindGroupsParams ¶
type FindPoliciesParams ¶
type FindPoliciesRow ¶
type FindPoliciesRow struct { Uuid uuid.UUID GroupUuid uuid.UUID Priority int32 Effect PolicyEffect Action PolicyAction Resource string }
type FindProgramsParams ¶
type FindThingsByTagsParams ¶
type FindThingsParams ¶
type FindTimeseriesParams ¶
type FindTokensByUserRow ¶
type FindUsersParams ¶
type FindUsersRow ¶
type FindUsersRow struct { Uuid uuid.UUID Name string State AccountState Groups string }
type GetProgramCodeAtHeadRow ¶
type GetTsDataRangeAggParams ¶ added in v0.1.1
type GetTsDataRangeAggRow ¶ added in v0.1.1
type GetTsDataRangeParams ¶
type GetTsDataRangeRow ¶
type GroupPolicy ¶
type GroupPolicy struct { Uuid uuid.UUID GroupUuid uuid.UUID Priority int32 Effect PolicyEffect Action PolicyAction Resource string }
type PolicyAction ¶
type PolicyAction string
const ( PolicyActionCreate PolicyAction = "create" PolicyActionRead PolicyAction = "read" PolicyActionUpdate PolicyAction = "update" PolicyActionDelete PolicyAction = "delete" )
func (*PolicyAction) Scan ¶
func (e *PolicyAction) Scan(src interface{}) error
type PolicyEffect ¶
type PolicyEffect string
const ( PolicyEffectAllow PolicyEffect = "allow" PolicyEffectDeny PolicyEffect = "deny" )
func (*PolicyEffect) Scan ¶
func (e *PolicyEffect) Scan(src interface{}) error
type ProgramCodeRevision ¶
type Queries ¶
type Queries struct {
// contains filtered or unexported fields
}
func (*Queries) AddTokenToUser ¶
func (*Queries) AddUserToGroup ¶
func (q *Queries) AddUserToGroup(ctx context.Context, arg AddUserToGroupParams) error
func (*Queries) CheckUserTokenHasAccess ¶
func (*Queries) CheckUserTokenHasAccessMany ¶ added in v0.1.1
func (*Queries) CreateAlert ¶ added in v0.1.2
func (*Queries) CreateCodeRevision ¶
func (q *Queries) CreateCodeRevision(ctx context.Context, arg CreateCodeRevisionParams) (CreateCodeRevisionRow, error)
func (*Queries) CreateDataset ¶
func (q *Queries) CreateDataset(ctx context.Context, arg CreateDatasetParams) (CreateDatasetRow, error)
func (*Queries) CreateGroup ¶
func (*Queries) CreatePolicy ¶
func (q *Queries) CreatePolicy(ctx context.Context, arg CreatePolicyParams) (GroupPolicy, error)
func (*Queries) CreateProgram ¶
func (q *Queries) CreateProgram(ctx context.Context, arg CreateProgramParams) (CreateProgramRow, error)
func (*Queries) CreateThing ¶
func (q *Queries) CreateThing(ctx context.Context, arg CreateThingParams) (CreateThingRow, error)
func (*Queries) CreateTimeseries ¶
func (q *Queries) CreateTimeseries(ctx context.Context, arg CreateTimeseriesParams) (CreateTimeseriesRow, error)
func (*Queries) CreateTsData ¶
func (*Queries) CreateUser ¶
func (*Queries) CreateUserToken ¶
func (*Queries) DeleteAlert ¶ added in v0.1.2
func (*Queries) DeleteAllTsData ¶
func (*Queries) DeleteDataset ¶
func (*Queries) DeleteGroup ¶
func (*Queries) DeletePolicyByUUID ¶
func (*Queries) DeleteProgram ¶
func (*Queries) DeleteProgramCodeRevision ¶
func (*Queries) DeleteThing ¶
func (*Queries) DeleteTimeseries ¶
func (*Queries) DeleteTokenFromUser ¶
func (*Queries) DeleteTsDataRange ¶
func (*Queries) DeleteUser ¶
func (*Queries) ExistsAlert ¶ added in v0.1.2
func (*Queries) ExistsDataset ¶
func (*Queries) ExistsGroup ¶
func (*Queries) ExistsPolicy ¶
func (*Queries) ExistsProgram ¶
func (*Queries) ExistsThing ¶
func (*Queries) ExistsTimeseries ¶
func (*Queries) ExistsUser ¶
func (*Queries) FindAlertByUUID ¶ added in v0.1.2
func (*Queries) FindAlerts ¶ added in v0.1.2
func (q *Queries) FindAlerts(ctx context.Context, arg FindAlertsParams) ([]FindAlertsRow, error)
func (*Queries) FindAllModules ¶
func (q *Queries) FindAllModules(ctx context.Context) ([]FindAllModulesRow, error)
func (*Queries) FindAllRoutineRevisions ¶
func (q *Queries) FindAllRoutineRevisions(ctx context.Context) ([]FindAllRoutineRevisionsRow, error)
func (*Queries) FindDatasetByThing ¶
func (*Queries) FindDatasetByUUID ¶
func (*Queries) FindDatasets ¶
func (q *Queries) FindDatasets(ctx context.Context, arg FindDatasetsParams) ([]FindDatasetsRow, error)
func (*Queries) FindDatasetsByTags ¶
func (q *Queries) FindDatasetsByTags(ctx context.Context, arg FindDatasetsByTagsParams) ([]FindDatasetsByTagsRow, error)
func (*Queries) FindGroupByUuid ¶
func (*Queries) FindGroups ¶
func (*Queries) FindGroupsByUser ¶
func (*Queries) FindPolicies ¶
func (q *Queries) FindPolicies(ctx context.Context, arg FindPoliciesParams) ([]FindPoliciesRow, error)
func (*Queries) FindPoliciesByGroup ¶
func (*Queries) FindPoliciesByUser ¶
func (*Queries) FindPolicyByUUID ¶
func (*Queries) FindProgramByUUID ¶
func (*Queries) FindProgramCodeRevisions ¶
func (*Queries) FindPrograms ¶
func (*Queries) FindProgramsByTags ¶
func (*Queries) FindThingByUUID ¶
func (*Queries) FindThings ¶
func (*Queries) FindThingsByTags ¶
func (*Queries) FindTimeseries ¶
func (q *Queries) FindTimeseries(ctx context.Context, arg FindTimeseriesParams) ([]Timeseries, error)
func (*Queries) FindTimeseriesByTags ¶
func (q *Queries) FindTimeseriesByTags(ctx context.Context, arg FindTimeseriesByTagsParams) ([]Timeseries, error)
func (*Queries) FindTimeseriesByThing ¶
func (q *Queries) FindTimeseriesByThing(ctx context.Context, thingUuid interface{}) ([]Timeseries, error)
func (*Queries) FindTimeseriesByUUID ¶
func (q *Queries) FindTimeseriesByUUID(ctx context.Context, tsUuid interface{}) (Timeseries, error)
func (*Queries) FindTokensByUser ¶
func (*Queries) FindUserByUUID ¶
func (*Queries) FindUsers ¶
func (q *Queries) FindUsers(ctx context.Context, arg FindUsersParams) ([]FindUsersRow, error)
func (*Queries) GetDatasetContentByUUID ¶
func (*Queries) GetNamedModuleCodeAtHead ¶
func (*Queries) GetNamedModuleCodeAtRevision ¶
func (*Queries) GetProgramCodeAtHead ¶
func (*Queries) GetProgramCodeAtRevision ¶
func (*Queries) GetSignedProgramCodeAtHead ¶
func (*Queries) GetTimeseriesByUUID ¶
func (*Queries) GetTsDataRange ¶
func (q *Queries) GetTsDataRange(ctx context.Context, arg GetTsDataRangeParams) ([]GetTsDataRangeRow, error)
func (*Queries) GetTsDataRangeAgg ¶ added in v0.1.1
func (q *Queries) GetTsDataRangeAgg(ctx context.Context, arg GetTsDataRangeAggParams) ([]GetTsDataRangeAggRow, error)
func (*Queries) GetUnitFromTimeseries ¶
func (*Queries) GetUserUuidFromToken ¶
func (*Queries) RemoveUserFromAllGroups ¶
func (*Queries) RemoveUserFromGroups ¶
func (*Queries) SetDatasetContentByUUID ¶
func (*Queries) SetDatasetFormatByUUID ¶
func (*Queries) SetDatasetNameByUUID ¶
func (*Queries) SetDatasetTags ¶
func (*Queries) SetDatasetThingByUUID ¶ added in v0.1.4
func (*Queries) SetGroupNameByUUID ¶
func (*Queries) SetPolicyAction ¶
func (*Queries) SetPolicyEffect ¶
func (*Queries) SetPolicyGroup ¶
func (*Queries) SetPolicyPriority ¶
func (*Queries) SetPolicyResource ¶
func (*Queries) SetProgramDeadlineByUUID ¶
func (*Queries) SetProgramLanguageByUUID ¶
func (*Queries) SetProgramNameByUUID ¶
func (*Queries) SetProgramScheduleByUUID ¶
func (*Queries) SetProgramStateByUUID ¶
func (*Queries) SetProgramTags ¶
func (*Queries) SetProgramTypeByUUID ¶
func (*Queries) SetThingNameByUUID ¶
func (*Queries) SetThingStateByUUID ¶
func (*Queries) SetThingTags ¶
func (*Queries) SetThingTypeByUUID ¶
func (*Queries) SetTimeseriesLowerBound ¶
func (*Queries) SetTimeseriesName ¶
func (*Queries) SetTimeseriesSiUnit ¶
func (*Queries) SetTimeseriesTags ¶
func (*Queries) SetTimeseriesThing ¶
func (*Queries) SetTimeseriesUpperBound ¶
func (*Queries) SetUserName ¶
func (*Queries) SignProgramCodeRevision ¶
func (*Queries) UpdateAlertIncDuplicate ¶ added in v0.1.2
func (*Queries) UpdateAlertSetDescription ¶ added in v0.1.2
func (*Queries) UpdateAlertSetEnvironment ¶ added in v0.1.2
func (*Queries) UpdateAlertSetEvent ¶ added in v0.1.2
func (*Queries) UpdateAlertSetLastReceivedTime ¶ added in v0.1.2
func (*Queries) UpdateAlertSetOrigin ¶ added in v0.1.2
func (*Queries) UpdateAlertSetRawdata ¶ added in v0.1.2
func (*Queries) UpdateAlertSetResource ¶ added in v0.1.2
func (*Queries) UpdateAlertSetService ¶ added in v0.1.2
func (*Queries) UpdateAlertSetSeverity ¶ added in v0.1.2
func (*Queries) UpdateAlertSetStatus ¶ added in v0.1.2
func (*Queries) UpdateAlertSetTags ¶ added in v0.1.2
func (*Queries) UpdateAlertSetTimeout ¶ added in v0.1.2
func (*Queries) UpdateAlertSetValue ¶ added in v0.1.2
type SetDatasetTagsParams ¶
type SetDatasetThingByUUIDParams ¶ added in v0.1.4
type SetPolicyActionParams ¶
type SetPolicyActionParams struct { Action PolicyAction Uuid uuid.UUID }
type SetPolicyEffectParams ¶
type SetPolicyEffectParams struct { Effect PolicyEffect Uuid uuid.UUID }
type SetPolicyPriorityParams ¶
type SetPolicyResourceParams ¶
type SetProgramTagsParams ¶
type SetThingStateByUUIDParams ¶
type SetThingStateByUUIDParams struct { State ThingState Uuid uuid.UUID }
type SetThingTagsParams ¶
type SetThingTypeByUUIDParams ¶
type SetThingTypeByUUIDParams struct { Type sql.NullString Uuid uuid.UUID }
type SetTimeseriesLowerBoundParams ¶
type SetTimeseriesLowerBoundParams struct { LowerBound sql.NullFloat64 Uuid uuid.UUID }
type SetTimeseriesNameParams ¶
type SetTimeseriesTagsParams ¶
type SetTimeseriesUpperBoundParams ¶
type SetTimeseriesUpperBoundParams struct { UpperBound sql.NullFloat64 Uuid uuid.UUID }
type SetUserNameParams ¶
type Thing ¶
type Thing struct { Uuid uuid.UUID Name string Type sql.NullString State ThingState CreatedBy uuid.UUID Tags []string }
type ThingState ¶
type ThingState string
const ( ThingStateActive ThingState = "active" ThingStateInactive ThingState = "inactive" ThingStatePassive ThingState = "passive" ThingStateArchived ThingState = "archived" )
func (*ThingState) Scan ¶
func (e *ThingState) Scan(src interface{}) error
type Timeseries ¶
type UpdateAlertSetDescriptionParams ¶ added in v0.1.2
type UpdateAlertSetEnvironmentParams ¶ added in v0.1.2
type UpdateAlertSetEventParams ¶ added in v0.1.2
type UpdateAlertSetOriginParams ¶ added in v0.1.2
type UpdateAlertSetRawdataParams ¶ added in v0.1.2
type UpdateAlertSetResourceParams ¶ added in v0.1.2
type UpdateAlertSetServiceParams ¶ added in v0.1.2
type UpdateAlertSetSeverityParams ¶ added in v0.1.2
type UpdateAlertSetSeverityParams struct { Uuid uuid.UUID Severity AlertSeverity }
type UpdateAlertSetStatusParams ¶ added in v0.1.2
type UpdateAlertSetStatusParams struct { Status AlertStatus Uuid uuid.UUID }
type UpdateAlertSetTagsParams ¶ added in v0.1.2
type UpdateAlertSetTimeoutParams ¶ added in v0.1.2
type UpdateAlertSetValueParams ¶ added in v0.1.2
type VAlert ¶ added in v0.1.2
type VAlert struct { Uuid uuid.UUID Resource string Environment string Event string Severity AlertSeverity PreviousSeverity AlertSeverity Status AlertStatus Description string Value string Origin string Created time.Time LastReceiveTime sql.NullTime Timeout int32 Duplicate int32 Service []string Tags []string Rawdata []byte }
Click to show internal directories.
Click to hide internal directories.