postgres

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2021 License: GPL-3.0 Imports: 10 Imported by: 0

README

README

Requirements

go install -tags 'postgres' github.com/golang-migrate/migrate/v4/cmd/migrate@v4.14.1

Local PostgreSQL

docker run \
  -d \
  -e POSTGRES_HOST_AUTH_METHOD=trust \
  -e POSTGRES_USER=user \
  -e POSTGRES_PASSWORD=password \
  -e POSTGRES_DB=dbname \
  -p 5432:5432 \
  postgres:12.5-alpine

Migrations

Create a new up/down set:

NOTE: Transactions must be wrapped in BEGIN COMMIT.

BEGIN;

CREATE TYPE enum_mood AS ENUM (
	'happy',
	'sad',
	'neutral'
);
ALTER TABLE users ADD COLUMN mood enum_mood;

COMMIT;
migrate create -ext sql -dir pkg/db/migrations/ <migration name>

Run:

migrate -path pkg/db/migrations/ -database postgres://user:password@localhost:5432/dbname?sslmode=disable up

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddDB

func AddDB(domain, connectionInfo string) error

func GetDB

func GetDB(domain string) (*sql.DB, error)

func GetDomains

func GetDomains() []string

func GetMigrations

func GetMigrations() embed.FS

func PingDB

func PingDB(conn *sql.DB) error

func PingDomain

func PingDomain(domain string) error

func RemoveDB

func RemoveDB(domain string) error

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 AddTokenToUserParams struct {
	UserUuid uuid.UUID
	Name     string
	Secret   []byte
}

type AddUserToGroupParams

type AddUserToGroupParams struct {
	UserUuid  uuid.UUID
	GroupUuid uuid.UUID
}

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 CreateAlertParams struct {
	Resource    string
	Environment string
	Event       string
	Origin      string
	Severity    AlertSeverity
	Status      AlertStatus
	Service     []string
	Value       string
	Description string
	Tags        []string
	Timeout     int32
	Rawdata     []byte
}

type CreateCodeRevisionParams

type CreateCodeRevisionParams struct {
	ProgramUuid uuid.UUID
	CreatedBy   uuid.UUID
	Code        []byte
}

type CreateCodeRevisionRow

type CreateCodeRevisionRow struct {
	ProgramUuid uuid.UUID
	Revision    int32
	Created     time.Time
	CreatedBy   uuid.UUID
	Signed      sql.NullTime
	SignedBy    uuid.UUID
	Checksum    string
}

type CreateDatasetParams

type CreateDatasetParams struct {
	Name      string
	Format    string
	Content   []byte
	BelongsTo uuid.UUID
	CreatedBy uuid.UUID
	Tags      []string
}

type CreateDatasetRow

type CreateDatasetRow struct {
	Uuid      uuid.UUID
	Name      string
	Format    string
	Checksum  string
	Size      int32
	BelongsTo uuid.UUID
	Created   time.Time
	Updated   time.Time
	CreatedBy uuid.UUID
	UpdatedBy uuid.UUID
	Tags      []string
}

type CreatePolicyParams

type CreatePolicyParams struct {
	GroupUuid uuid.UUID
	Priority  int32
	Effect    PolicyEffect
	Action    PolicyAction
	Resource  string
}

type CreateProgramParams

type CreateProgramParams struct {
	Name      string
	Type      string
	State     string
	Schedule  string
	Deadline  int32
	Language  string
	Tags      []string
	CreatedBy uuid.UUID
}

type CreateProgramRow

type CreateProgramRow struct {
	Uuid     uuid.UUID
	Name     string
	Type     string
	State    string
	Schedule string
	Deadline int32
	Language string
	Tags     []string
}

type CreateThingParams

type CreateThingParams struct {
	Name      string
	Type      sql.NullString
	CreatedBy uuid.UUID
	Tags      []string
}

type CreateThingRow

type CreateThingRow struct {
	Uuid      uuid.UUID
	Name      string
	Type      sql.NullString
	State     ThingState
	CreatedBy uuid.UUID
	Tags      []string
}

type CreateTimeseriesParams

type CreateTimeseriesParams struct {
	ThingUuid  uuid.UUID
	Name       string
	SiUnit     string
	LowerBound sql.NullFloat64
	UpperBound sql.NullFloat64
	CreatedBy  uuid.UUID
	Tags       []string
}

type CreateTimeseriesRow

type CreateTimeseriesRow struct {
	Uuid       uuid.UUID
	ThingUuid  uuid.UUID
	Name       string
	SiUnit     string
	LowerBound sql.NullFloat64
	UpperBound sql.NullFloat64
	CreatedBy  uuid.UUID
	Tags       []string
}

type CreateTsDataParams

type CreateTsDataParams struct {
	TsUuid    uuid.UUID
	Value     float64
	Ts        time.Time
	CreatedBy uuid.UUID
}

type CreateUserRow

type CreateUserRow struct {
	Uuid  uuid.UUID
	Name  string
	State AccountState
}

type CreateUserTokenParams

type CreateUserTokenParams struct {
	UserUuid uuid.UUID
	Name     string
	Token    []byte
}

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 DBTX

type DBTX interface {
	ExecContext(context.Context, string, ...interface{}) (sql.Result, error)
	PrepareContext(context.Context, string) (*sql.Stmt, error)
	QueryContext(context.Context, string, ...interface{}) (*sql.Rows, error)
	QueryRowContext(context.Context, string, ...interface{}) *sql.Row
}

type Dataset

type Dataset struct {
	Uuid      uuid.UUID
	Name      string
	Format    string
	Content   []byte
	Checksum  []byte
	Size      int32
	BelongsTo uuid.UUID
	Created   time.Time
	Updated   time.Time
	CreatedBy uuid.UUID
	UpdatedBy uuid.UUID
	Tags      []string
}

type DeleteProgramCodeRevisionParams

type DeleteProgramCodeRevisionParams struct {
	ProgramUuid uuid.UUID
	Revision    int32
}

type DeleteTokenFromUserParams

type DeleteTokenFromUserParams struct {
	TokenUuid uuid.UUID
	UserUuid  uuid.UUID
}

type DeleteTsDataRangeParams

type DeleteTsDataRangeParams struct {
	TsUuids []uuid.UUID
	Start   time.Time
	Stop    time.Time
	GeNull  bool
	Ge      float64
	LeNull  bool
	Le      float64
}

type DomainDB

type DomainDB struct {
	Domain string
	DB     *sql.DB
}

func GetAllDB

func GetAllDB() []DomainDB

type FindAlertsParams added in v0.1.2

type FindAlertsParams struct {
	Resource    string
	Environment string
	Event       string
	Origin      string
	Status      string
	SeverityLe  string
	SeverityGe  string
	SeverityEq  string
	Service     []string
	Tags        []string
	ArgOffset   int64
	ArgLimit    int64
}

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 FindAllModulesRow struct {
	Name        string
	ProgramUuid uuid.UUID
	Type        string
	Schedule    string
	Deadline    int32
	Language    string
	Revision    int32
	Code        []byte
	Checksum    string
}

type FindAllRoutineRevisionsRow

type FindAllRoutineRevisionsRow struct {
	Name        string
	ProgramUuid uuid.UUID
	Type        string
	Schedule    string
	Deadline    int32
	Language    string
	Revision    int32
	Code        []byte
	Checksum    string
}

type FindDatasetByThingRow

type FindDatasetByThingRow struct {
	Uuid      uuid.UUID
	Name      string
	Format    string
	Checksum  string
	Size      int32
	BelongsTo uuid.UUID
	Created   time.Time
	Updated   time.Time
	CreatedBy uuid.UUID
	UpdatedBy uuid.UUID
	Tags      []string
}

type FindDatasetByUUIDRow

type FindDatasetByUUIDRow struct {
	Uuid      uuid.UUID
	Name      string
	Format    string
	Checksum  string
	Size      int32
	BelongsTo uuid.UUID
	Created   time.Time
	Updated   time.Time
	CreatedBy uuid.UUID
	UpdatedBy uuid.UUID
	Tags      []string
}

type FindDatasetsByTagsParams

type FindDatasetsByTagsParams struct {
	ArgOffset int64
	ArgLimit  int64
	Token     []byte
	Tags      interface{}
}

type FindDatasetsByTagsRow

type FindDatasetsByTagsRow struct {
	Uuid      uuid.UUID
	Name      string
	Format    string
	Checksum  string
	Size      int32
	BelongsTo uuid.UUID
	Created   time.Time
	Updated   time.Time
	CreatedBy uuid.UUID
	UpdatedBy uuid.UUID
	Tags      []string
}

type FindDatasetsParams

type FindDatasetsParams struct {
	ArgOffset int64
	ArgLimit  int64
	Token     []byte
}

type FindDatasetsRow

type FindDatasetsRow struct {
	Uuid      uuid.UUID
	Name      string
	Format    string
	Checksum  string
	Size      int32
	BelongsTo uuid.UUID
	Created   time.Time
	Updated   time.Time
	CreatedBy uuid.UUID
	UpdatedBy uuid.UUID
	Tags      []string
}

type FindGroupsParams

type FindGroupsParams struct {
	ArgOffset int64
	ArgLimit  int64
	Token     []byte
}

type FindPoliciesParams

type FindPoliciesParams struct {
	ArgOffset  int64
	ArgLimit   int64
	Token      []byte
	GroupUuids []uuid.UUID
}

type FindPoliciesRow

type FindPoliciesRow struct {
	Uuid      uuid.UUID
	GroupUuid uuid.UUID
	Priority  int32
	Effect    PolicyEffect
	Action    PolicyAction
	Resource  string
}

type FindProgramCodeRevisionsRow

type FindProgramCodeRevisionsRow struct {
	Revision  int32
	Created   time.Time
	CreatedBy uuid.UUID
	Signed    sql.NullTime
	SignedBy  uuid.UUID
	Checksum  string
}

type FindProgramsByTagsParams

type FindProgramsByTagsParams struct {
	ArgOffset int64
	ArgLimit  int64
	Token     []byte
	Tags      interface{}
}

type FindProgramsParams

type FindProgramsParams struct {
	ArgOffset int64
	ArgLimit  int64
	Token     []byte
}

type FindThingsByTagsParams

type FindThingsByTagsParams struct {
	ArgOffset int64
	ArgLimit  int64
	Token     []byte
	Tags      interface{}
}

type FindThingsParams

type FindThingsParams struct {
	ArgOffset int64
	ArgLimit  int64
	Token     []byte
}

type FindTimeseriesByTagsParams

type FindTimeseriesByTagsParams struct {
	ArgOffset int64
	ArgLimit  int64
	Token     []byte
	Tags      interface{}
}

type FindTimeseriesParams

type FindTimeseriesParams struct {
	ArgOffset int64
	ArgLimit  int64
	Token     []byte
}

type FindTokensByUserRow

type FindTokensByUserRow struct {
	Uuid    uuid.UUID
	Name    string
	Created time.Time
}

type FindUsersParams

type FindUsersParams struct {
	Token     []byte
	ArgOffset int64
	ArgLimit  int64
}

type FindUsersRow

type FindUsersRow struct {
	Uuid   uuid.UUID
	Name   string
	State  AccountState
	Groups string
}

type GetDatasetContentByUUIDRow

type GetDatasetContentByUUIDRow struct {
	Format   string
	Content  []byte
	Checksum string
}

type GetNamedModuleCodeAtHeadParams

type GetNamedModuleCodeAtHeadParams struct {
	Name     string
	Language string
}

type GetNamedModuleCodeAtRevisionParams

type GetNamedModuleCodeAtRevisionParams struct {
	Name     string
	Language string
	Revision int32
}

type GetProgramCodeAtHeadRow

type GetProgramCodeAtHeadRow struct {
	Code     []byte
	Revision int32
}

type GetProgramCodeAtRevisionParams

type GetProgramCodeAtRevisionParams struct {
	ProgramUuid uuid.UUID
	Revision    int32
}

type GetSignedProgramCodeAtHeadRow

type GetSignedProgramCodeAtHeadRow struct {
	Code     []byte
	Revision int32
}

type GetTsDataRangeAggParams added in v0.1.1

type GetTsDataRangeAggParams struct {
	Aggregate string
	Truncate  string
	Timezone  string
	TsUuids   []uuid.UUID
	Start     time.Time
	Stop      time.Time
}

type GetTsDataRangeAggRow added in v0.1.1

type GetTsDataRangeAggRow struct {
	TsUuid uuid.UUID
	Value  float64
	Ts     time.Time
}

type GetTsDataRangeParams

type GetTsDataRangeParams struct {
	TsUuids []uuid.UUID
	Start   time.Time
	Stop    time.Time
}

type GetTsDataRangeRow

type GetTsDataRangeRow struct {
	TsUuid uuid.UUID
	Value  float64
	Ts     time.Time
}

type Group

type Group struct {
	Uuid uuid.UUID
	Name string
}

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 Program

type Program struct {
	Uuid     uuid.UUID
	Name     string
	Type     string
	State    string
	Schedule string
	Deadline int32
	Language string
	Tags     []string
}

type ProgramCodeRevision

type ProgramCodeRevision struct {
	ProgramUuid uuid.UUID
	Revision    int32
	Created     time.Time
	Signed      sql.NullTime
	CreatedBy   uuid.UUID
	SignedBy    uuid.UUID
	Code        []byte
	Checksum    []byte
}

type Queries

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

func New

func New(db DBTX) *Queries

func Prepare

func Prepare(ctx context.Context, db DBTX) (*Queries, error)

func (*Queries) AddTokenToUser

func (q *Queries) AddTokenToUser(ctx context.Context, arg AddTokenToUserParams) (UserToken, error)

func (*Queries) AddUserToGroup

func (q *Queries) AddUserToGroup(ctx context.Context, arg AddUserToGroupParams) error

func (*Queries) CheckUserTokenHasAccess

func (q *Queries) CheckUserTokenHasAccess(ctx context.Context, arg CheckUserTokenHasAccessParams) (bool, error)

func (*Queries) CheckUserTokenHasAccessMany added in v0.1.1

func (q *Queries) CheckUserTokenHasAccessMany(ctx context.Context, arg CheckUserTokenHasAccessManyParams) (bool, error)

func (*Queries) Close

func (q *Queries) Close() error

func (*Queries) CreateAlert added in v0.1.2

func (q *Queries) CreateAlert(ctx context.Context, arg CreateAlertParams) (uuid.UUID, error)

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 (q *Queries) CreateGroup(ctx context.Context, name string) (Group, error)

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 (q *Queries) CreateTsData(ctx context.Context, arg CreateTsDataParams) (int64, error)

func (*Queries) CreateUser

func (q *Queries) CreateUser(ctx context.Context, name string) (CreateUserRow, error)

func (*Queries) CreateUserToken

func (q *Queries) CreateUserToken(ctx context.Context, arg CreateUserTokenParams) (UserToken, error)

func (*Queries) DeleteAlert added in v0.1.2

func (q *Queries) DeleteAlert(ctx context.Context, uuid uuid.UUID) (int64, error)

func (*Queries) DeleteAllTsData

func (q *Queries) DeleteAllTsData(ctx context.Context, tsUuid uuid.UUID) (int64, error)

func (*Queries) DeleteDataset

func (q *Queries) DeleteDataset(ctx context.Context, uuid uuid.UUID) (int64, error)

func (*Queries) DeleteGroup

func (q *Queries) DeleteGroup(ctx context.Context, uuid uuid.UUID) (int64, error)

func (*Queries) DeletePolicyByUUID

func (q *Queries) DeletePolicyByUUID(ctx context.Context, uuid uuid.UUID) (int64, error)

func (*Queries) DeleteProgram

func (q *Queries) DeleteProgram(ctx context.Context, uuid uuid.UUID) (int64, error)

func (*Queries) DeleteProgramCodeRevision

func (q *Queries) DeleteProgramCodeRevision(ctx context.Context, arg DeleteProgramCodeRevisionParams) (int64, error)

func (*Queries) DeleteThing

func (q *Queries) DeleteThing(ctx context.Context, uuid uuid.UUID) (int64, error)

func (*Queries) DeleteTimeseries

func (q *Queries) DeleteTimeseries(ctx context.Context, uuid uuid.UUID) (int64, error)

func (*Queries) DeleteTokenFromUser

func (q *Queries) DeleteTokenFromUser(ctx context.Context, arg DeleteTokenFromUserParams) (int64, error)

func (*Queries) DeleteTsDataRange

func (q *Queries) DeleteTsDataRange(ctx context.Context, arg DeleteTsDataRangeParams) (int64, error)

func (*Queries) DeleteUser

func (q *Queries) DeleteUser(ctx context.Context, uuid uuid.UUID) (int64, error)

func (*Queries) ExistsAlert added in v0.1.2

func (q *Queries) ExistsAlert(ctx context.Context, uuid uuid.UUID) (int64, error)

func (*Queries) ExistsDataset

func (q *Queries) ExistsDataset(ctx context.Context, uuid uuid.UUID) (int64, error)

func (*Queries) ExistsGroup

func (q *Queries) ExistsGroup(ctx context.Context, uuid uuid.UUID) (int64, error)

func (*Queries) ExistsPolicy

func (q *Queries) ExistsPolicy(ctx context.Context, uuid uuid.UUID) (int64, error)

func (*Queries) ExistsProgram

func (q *Queries) ExistsProgram(ctx context.Context, uuid uuid.UUID) (int64, error)

func (*Queries) ExistsThing

func (q *Queries) ExistsThing(ctx context.Context, uuid uuid.UUID) (int64, error)

func (*Queries) ExistsTimeseries

func (q *Queries) ExistsTimeseries(ctx context.Context, uuid uuid.UUID) (int64, error)

func (*Queries) ExistsUser

func (q *Queries) ExistsUser(ctx context.Context, uuid uuid.UUID) (int64, error)

func (*Queries) FindAlertByUUID added in v0.1.2

func (q *Queries) FindAlertByUUID(ctx context.Context, uuid uuid.UUID) (VAlert, error)

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 (q *Queries) FindDatasetByThing(ctx context.Context, thingUuid uuid.UUID) ([]FindDatasetByThingRow, error)

func (*Queries) FindDatasetByUUID

func (q *Queries) FindDatasetByUUID(ctx context.Context, uuid uuid.UUID) (FindDatasetByUUIDRow, error)

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 (q *Queries) FindGroupByUuid(ctx context.Context, uuid uuid.UUID) (Group, error)

func (*Queries) FindGroups

func (q *Queries) FindGroups(ctx context.Context, arg FindGroupsParams) ([]Group, error)

func (*Queries) FindGroupsByUser

func (q *Queries) FindGroupsByUser(ctx context.Context, uuid uuid.UUID) ([]Group, error)

func (*Queries) FindPolicies

func (q *Queries) FindPolicies(ctx context.Context, arg FindPoliciesParams) ([]FindPoliciesRow, error)

func (*Queries) FindPoliciesByGroup

func (q *Queries) FindPoliciesByGroup(ctx context.Context, uuid uuid.UUID) ([]GroupPolicy, error)

func (*Queries) FindPoliciesByUser

func (q *Queries) FindPoliciesByUser(ctx context.Context, uuid uuid.UUID) ([]GroupPolicy, error)

func (*Queries) FindPolicyByUUID

func (q *Queries) FindPolicyByUUID(ctx context.Context, uuid uuid.UUID) (GroupPolicy, error)

func (*Queries) FindProgramByUUID

func (q *Queries) FindProgramByUUID(ctx context.Context, uuid uuid.UUID) (Program, error)

func (*Queries) FindProgramCodeRevisions

func (q *Queries) FindProgramCodeRevisions(ctx context.Context, programUuid uuid.UUID) ([]FindProgramCodeRevisionsRow, error)

func (*Queries) FindPrograms

func (q *Queries) FindPrograms(ctx context.Context, arg FindProgramsParams) ([]Program, error)

func (*Queries) FindProgramsByTags

func (q *Queries) FindProgramsByTags(ctx context.Context, arg FindProgramsByTagsParams) ([]Program, error)

func (*Queries) FindThingByUUID

func (q *Queries) FindThingByUUID(ctx context.Context, uuid uuid.UUID) (Thing, error)

func (*Queries) FindThings

func (q *Queries) FindThings(ctx context.Context, arg FindThingsParams) ([]Thing, error)

func (*Queries) FindThingsByTags

func (q *Queries) FindThingsByTags(ctx context.Context, arg FindThingsByTagsParams) ([]Thing, error)

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 (q *Queries) FindTokensByUser(ctx context.Context, uuid uuid.UUID) ([]FindTokensByUserRow, error)

func (*Queries) FindUserByUUID

func (q *Queries) FindUserByUUID(ctx context.Context, uuid uuid.UUID) (User, error)

func (*Queries) FindUsers

func (q *Queries) FindUsers(ctx context.Context, arg FindUsersParams) ([]FindUsersRow, error)

func (*Queries) GetDatasetContentByUUID

func (q *Queries) GetDatasetContentByUUID(ctx context.Context, uuid uuid.UUID) (GetDatasetContentByUUIDRow, error)

func (*Queries) GetNamedModuleCodeAtHead

func (q *Queries) GetNamedModuleCodeAtHead(ctx context.Context, arg GetNamedModuleCodeAtHeadParams) ([]byte, error)

func (*Queries) GetNamedModuleCodeAtRevision

func (q *Queries) GetNamedModuleCodeAtRevision(ctx context.Context, arg GetNamedModuleCodeAtRevisionParams) ([]byte, error)

func (*Queries) GetProgramCodeAtHead

func (q *Queries) GetProgramCodeAtHead(ctx context.Context, programUuid uuid.UUID) (GetProgramCodeAtHeadRow, error)

func (*Queries) GetProgramCodeAtRevision

func (q *Queries) GetProgramCodeAtRevision(ctx context.Context, arg GetProgramCodeAtRevisionParams) ([]byte, error)

func (*Queries) GetSignedProgramCodeAtHead

func (q *Queries) GetSignedProgramCodeAtHead(ctx context.Context, programUuid uuid.UUID) (GetSignedProgramCodeAtHeadRow, error)

func (*Queries) GetTimeseriesByUUID

func (q *Queries) GetTimeseriesByUUID(ctx context.Context, uuid uuid.UUID) (Timeseries, error)

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 (q *Queries) GetUnitFromTimeseries(ctx context.Context, uuid uuid.UUID) (string, error)

func (*Queries) GetUserUuidFromToken

func (q *Queries) GetUserUuidFromToken(ctx context.Context, token []byte) (uuid.UUID, error)

func (*Queries) RemoveUserFromAllGroups

func (q *Queries) RemoveUserFromAllGroups(ctx context.Context, userUuid uuid.UUID) (int64, error)

func (*Queries) RemoveUserFromGroups

func (q *Queries) RemoveUserFromGroups(ctx context.Context, arg RemoveUserFromGroupsParams) (int64, error)

func (*Queries) SetDatasetContentByUUID

func (q *Queries) SetDatasetContentByUUID(ctx context.Context, arg SetDatasetContentByUUIDParams) (int64, error)

func (*Queries) SetDatasetFormatByUUID

func (q *Queries) SetDatasetFormatByUUID(ctx context.Context, arg SetDatasetFormatByUUIDParams) (int64, error)

func (*Queries) SetDatasetNameByUUID

func (q *Queries) SetDatasetNameByUUID(ctx context.Context, arg SetDatasetNameByUUIDParams) (int64, error)

func (*Queries) SetDatasetTags

func (q *Queries) SetDatasetTags(ctx context.Context, arg SetDatasetTagsParams) (int64, error)

func (*Queries) SetDatasetThingByUUID added in v0.1.4

func (q *Queries) SetDatasetThingByUUID(ctx context.Context, arg SetDatasetThingByUUIDParams) (int64, error)

func (*Queries) SetGroupNameByUUID

func (q *Queries) SetGroupNameByUUID(ctx context.Context, arg SetGroupNameByUUIDParams) (int64, error)

func (*Queries) SetPolicyAction

func (q *Queries) SetPolicyAction(ctx context.Context, arg SetPolicyActionParams) (int64, error)

func (*Queries) SetPolicyEffect

func (q *Queries) SetPolicyEffect(ctx context.Context, arg SetPolicyEffectParams) (int64, error)

func (*Queries) SetPolicyGroup

func (q *Queries) SetPolicyGroup(ctx context.Context, arg SetPolicyGroupParams) (int64, error)

func (*Queries) SetPolicyPriority

func (q *Queries) SetPolicyPriority(ctx context.Context, arg SetPolicyPriorityParams) (int64, error)

func (*Queries) SetPolicyResource

func (q *Queries) SetPolicyResource(ctx context.Context, arg SetPolicyResourceParams) (int64, error)

func (*Queries) SetProgramDeadlineByUUID

func (q *Queries) SetProgramDeadlineByUUID(ctx context.Context, arg SetProgramDeadlineByUUIDParams) (int64, error)

func (*Queries) SetProgramLanguageByUUID

func (q *Queries) SetProgramLanguageByUUID(ctx context.Context, arg SetProgramLanguageByUUIDParams) (int64, error)

func (*Queries) SetProgramNameByUUID

func (q *Queries) SetProgramNameByUUID(ctx context.Context, arg SetProgramNameByUUIDParams) (int64, error)

func (*Queries) SetProgramScheduleByUUID

func (q *Queries) SetProgramScheduleByUUID(ctx context.Context, arg SetProgramScheduleByUUIDParams) (int64, error)

func (*Queries) SetProgramStateByUUID

func (q *Queries) SetProgramStateByUUID(ctx context.Context, arg SetProgramStateByUUIDParams) (int64, error)

func (*Queries) SetProgramTags

func (q *Queries) SetProgramTags(ctx context.Context, arg SetProgramTagsParams) (int64, error)

func (*Queries) SetProgramTypeByUUID

func (q *Queries) SetProgramTypeByUUID(ctx context.Context, arg SetProgramTypeByUUIDParams) (int64, error)

func (*Queries) SetThingNameByUUID

func (q *Queries) SetThingNameByUUID(ctx context.Context, arg SetThingNameByUUIDParams) (int64, error)

func (*Queries) SetThingStateByUUID

func (q *Queries) SetThingStateByUUID(ctx context.Context, arg SetThingStateByUUIDParams) (int64, error)

func (*Queries) SetThingTags

func (q *Queries) SetThingTags(ctx context.Context, arg SetThingTagsParams) (int64, error)

func (*Queries) SetThingTypeByUUID

func (q *Queries) SetThingTypeByUUID(ctx context.Context, arg SetThingTypeByUUIDParams) (int64, error)

func (*Queries) SetTimeseriesLowerBound

func (q *Queries) SetTimeseriesLowerBound(ctx context.Context, arg SetTimeseriesLowerBoundParams) (int64, error)

func (*Queries) SetTimeseriesName

func (q *Queries) SetTimeseriesName(ctx context.Context, arg SetTimeseriesNameParams) (int64, error)

func (*Queries) SetTimeseriesSiUnit

func (q *Queries) SetTimeseriesSiUnit(ctx context.Context, arg SetTimeseriesSiUnitParams) (int64, error)

func (*Queries) SetTimeseriesTags

func (q *Queries) SetTimeseriesTags(ctx context.Context, arg SetTimeseriesTagsParams) (int64, error)

func (*Queries) SetTimeseriesThing

func (q *Queries) SetTimeseriesThing(ctx context.Context, arg SetTimeseriesThingParams) (int64, error)

func (*Queries) SetTimeseriesUpperBound

func (q *Queries) SetTimeseriesUpperBound(ctx context.Context, arg SetTimeseriesUpperBoundParams) (int64, error)

func (*Queries) SetUserName

func (q *Queries) SetUserName(ctx context.Context, arg SetUserNameParams) (int64, error)

func (*Queries) SignProgramCodeRevision

func (q *Queries) SignProgramCodeRevision(ctx context.Context, arg SignProgramCodeRevisionParams) (int64, error)

func (*Queries) UpdateAlertIncDuplicate added in v0.1.2

func (q *Queries) UpdateAlertIncDuplicate(ctx context.Context, uuid uuid.UUID) (int64, error)

func (*Queries) UpdateAlertSetDescription added in v0.1.2

func (q *Queries) UpdateAlertSetDescription(ctx context.Context, arg UpdateAlertSetDescriptionParams) (int64, error)

func (*Queries) UpdateAlertSetEnvironment added in v0.1.2

func (q *Queries) UpdateAlertSetEnvironment(ctx context.Context, arg UpdateAlertSetEnvironmentParams) (int64, error)

func (*Queries) UpdateAlertSetEvent added in v0.1.2

func (q *Queries) UpdateAlertSetEvent(ctx context.Context, arg UpdateAlertSetEventParams) (int64, error)

func (*Queries) UpdateAlertSetLastReceivedTime added in v0.1.2

func (q *Queries) UpdateAlertSetLastReceivedTime(ctx context.Context, uuid uuid.UUID) (int64, error)

func (*Queries) UpdateAlertSetOrigin added in v0.1.2

func (q *Queries) UpdateAlertSetOrigin(ctx context.Context, arg UpdateAlertSetOriginParams) (int64, error)

func (*Queries) UpdateAlertSetRawdata added in v0.1.2

func (q *Queries) UpdateAlertSetRawdata(ctx context.Context, arg UpdateAlertSetRawdataParams) (int64, error)

func (*Queries) UpdateAlertSetResource added in v0.1.2

func (q *Queries) UpdateAlertSetResource(ctx context.Context, arg UpdateAlertSetResourceParams) (int64, error)

func (*Queries) UpdateAlertSetService added in v0.1.2

func (q *Queries) UpdateAlertSetService(ctx context.Context, arg UpdateAlertSetServiceParams) (int64, error)

func (*Queries) UpdateAlertSetSeverity added in v0.1.2

func (q *Queries) UpdateAlertSetSeverity(ctx context.Context, arg UpdateAlertSetSeverityParams) (int64, error)

func (*Queries) UpdateAlertSetStatus added in v0.1.2

func (q *Queries) UpdateAlertSetStatus(ctx context.Context, arg UpdateAlertSetStatusParams) (int64, error)

func (*Queries) UpdateAlertSetTags added in v0.1.2

func (q *Queries) UpdateAlertSetTags(ctx context.Context, arg UpdateAlertSetTagsParams) (int64, error)

func (*Queries) UpdateAlertSetTimeout added in v0.1.2

func (q *Queries) UpdateAlertSetTimeout(ctx context.Context, arg UpdateAlertSetTimeoutParams) (int64, error)

func (*Queries) UpdateAlertSetValue added in v0.1.2

func (q *Queries) UpdateAlertSetValue(ctx context.Context, arg UpdateAlertSetValueParams) (int64, error)

func (*Queries) WithTx

func (q *Queries) WithTx(tx *sql.Tx) *Queries

type RemoveUserFromGroupsParams

type RemoveUserFromGroupsParams struct {
	UserUuid   uuid.UUID
	GroupUuids []uuid.UUID
}

type SetDatasetContentByUUIDParams

type SetDatasetContentByUUIDParams struct {
	Content []byte
	Uuid    uuid.UUID
}

type SetDatasetFormatByUUIDParams

type SetDatasetFormatByUUIDParams struct {
	Format string
	Uuid   uuid.UUID
}

type SetDatasetNameByUUIDParams

type SetDatasetNameByUUIDParams struct {
	Name string
	Uuid uuid.UUID
}

type SetDatasetTagsParams

type SetDatasetTagsParams struct {
	Tags []string
	Uuid uuid.UUID
}

type SetDatasetThingByUUIDParams added in v0.1.4

type SetDatasetThingByUUIDParams struct {
	ThingUuid uuid.UUID
	Uuid      uuid.UUID
}

type SetGroupNameByUUIDParams

type SetGroupNameByUUIDParams struct {
	Name string
	Uuid uuid.UUID
}

type SetPolicyActionParams

type SetPolicyActionParams struct {
	Action PolicyAction
	Uuid   uuid.UUID
}

type SetPolicyEffectParams

type SetPolicyEffectParams struct {
	Effect PolicyEffect
	Uuid   uuid.UUID
}

type SetPolicyGroupParams

type SetPolicyGroupParams struct {
	GroupUuid uuid.UUID
	Uuid      uuid.UUID
}

type SetPolicyPriorityParams

type SetPolicyPriorityParams struct {
	Priority int32
	Uuid     uuid.UUID
}

type SetPolicyResourceParams

type SetPolicyResourceParams struct {
	Resource string
	Uuid     uuid.UUID
}

type SetProgramDeadlineByUUIDParams

type SetProgramDeadlineByUUIDParams struct {
	Deadline int32
	Uuid     uuid.UUID
}

type SetProgramLanguageByUUIDParams

type SetProgramLanguageByUUIDParams struct {
	Language string
	Uuid     uuid.UUID
}

type SetProgramNameByUUIDParams

type SetProgramNameByUUIDParams struct {
	Name string
	Uuid uuid.UUID
}

type SetProgramScheduleByUUIDParams

type SetProgramScheduleByUUIDParams struct {
	Schedule string
	Uuid     uuid.UUID
}

type SetProgramStateByUUIDParams

type SetProgramStateByUUIDParams struct {
	State string
	Uuid  uuid.UUID
}

type SetProgramTagsParams

type SetProgramTagsParams struct {
	Tags []string
	Uuid uuid.UUID
}

type SetProgramTypeByUUIDParams

type SetProgramTypeByUUIDParams struct {
	Type string
	Uuid uuid.UUID
}

type SetThingNameByUUIDParams

type SetThingNameByUUIDParams struct {
	Name string
	Uuid uuid.UUID
}

type SetThingStateByUUIDParams

type SetThingStateByUUIDParams struct {
	State ThingState
	Uuid  uuid.UUID
}

type SetThingTagsParams

type SetThingTagsParams struct {
	Tags []string
	Uuid uuid.UUID
}

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 SetTimeseriesNameParams struct {
	Name string
	Uuid uuid.UUID
}

type SetTimeseriesSiUnitParams

type SetTimeseriesSiUnitParams struct {
	SiUnit string
	Uuid   uuid.UUID
}

type SetTimeseriesTagsParams

type SetTimeseriesTagsParams struct {
	Tags []string
	Uuid uuid.UUID
}

type SetTimeseriesThingParams

type SetTimeseriesThingParams struct {
	ThingUuid uuid.UUID
	Uuid      uuid.UUID
}

type SetTimeseriesUpperBoundParams

type SetTimeseriesUpperBoundParams struct {
	UpperBound sql.NullFloat64
	Uuid       uuid.UUID
}

type SetUserNameParams

type SetUserNameParams struct {
	Name string
	Uuid uuid.UUID
}

type SignProgramCodeRevisionParams

type SignProgramCodeRevisionParams struct {
	SignedBy    uuid.UUID
	ProgramUuid uuid.UUID
	Revision    int32
}

type Thing

type Thing struct {
	Uuid      uuid.UUID
	Name      string
	Type      sql.NullString
	State     ThingState
	CreatedBy uuid.UUID
	Tags      []string
}

type ThingDep

type ThingDep struct {
	Parent uuid.UUID
	Child  uuid.UUID
}

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 Timeseries struct {
	Uuid       uuid.UUID
	ThingUuid  uuid.UUID
	Name       string
	SiUnit     string
	LowerBound sql.NullFloat64
	UpperBound sql.NullFloat64
	CreatedBy  uuid.UUID
	Tags       []string
}

type Tsdata0 added in v0.1.2

type Tsdata0 struct {
}

type Tsdata1 added in v0.1.2

type Tsdata1 struct {
}

type Tsdata10 added in v0.1.2

type Tsdata10 struct {
}

type Tsdata100 added in v0.1.2

type Tsdata100 struct {
}

type Tsdata101 added in v0.1.2

type Tsdata101 struct {
}

type Tsdata102 added in v0.1.2

type Tsdata102 struct {
}

type Tsdata103 added in v0.1.2

type Tsdata103 struct {
}

type Tsdata104 added in v0.1.2

type Tsdata104 struct {
}

type Tsdata105 added in v0.1.2

type Tsdata105 struct {
}

type Tsdata106 added in v0.1.2

type Tsdata106 struct {
}

type Tsdata107 added in v0.1.2

type Tsdata107 struct {
}

type Tsdata108 added in v0.1.2

type Tsdata108 struct {
}

type Tsdata109 added in v0.1.2

type Tsdata109 struct {
}

type Tsdata11 added in v0.1.2

type Tsdata11 struct {
}

type Tsdata110 added in v0.1.2

type Tsdata110 struct {
}

type Tsdata111 added in v0.1.2

type Tsdata111 struct {
}

type Tsdata112 added in v0.1.2

type Tsdata112 struct {
}

type Tsdata113 added in v0.1.2

type Tsdata113 struct {
}

type Tsdata114 added in v0.1.2

type Tsdata114 struct {
}

type Tsdata115 added in v0.1.2

type Tsdata115 struct {
}

type Tsdata116 added in v0.1.2

type Tsdata116 struct {
}

type Tsdata117 added in v0.1.2

type Tsdata117 struct {
}

type Tsdata118 added in v0.1.2

type Tsdata118 struct {
}

type Tsdata119 added in v0.1.2

type Tsdata119 struct {
}

type Tsdata12 added in v0.1.2

type Tsdata12 struct {
}

type Tsdata120 added in v0.1.2

type Tsdata120 struct {
}

type Tsdata121 added in v0.1.2

type Tsdata121 struct {
}

type Tsdata122 added in v0.1.2

type Tsdata122 struct {
}

type Tsdata123 added in v0.1.2

type Tsdata123 struct {
}

type Tsdata124 added in v0.1.2

type Tsdata124 struct {
}

type Tsdata125 added in v0.1.2

type Tsdata125 struct {
}

type Tsdata126 added in v0.1.2

type Tsdata126 struct {
}

type Tsdata127 added in v0.1.2

type Tsdata127 struct {
}

type Tsdata128 added in v0.1.2

type Tsdata128 struct {
}

type Tsdata129 added in v0.1.2

type Tsdata129 struct {
}

type Tsdata13 added in v0.1.2

type Tsdata13 struct {
}

type Tsdata130 added in v0.1.2

type Tsdata130 struct {
}

type Tsdata131 added in v0.1.2

type Tsdata131 struct {
}

type Tsdata132 added in v0.1.2

type Tsdata132 struct {
}

type Tsdata133 added in v0.1.2

type Tsdata133 struct {
}

type Tsdata134 added in v0.1.2

type Tsdata134 struct {
}

type Tsdata135 added in v0.1.2

type Tsdata135 struct {
}

type Tsdata136 added in v0.1.2

type Tsdata136 struct {
}

type Tsdata137 added in v0.1.2

type Tsdata137 struct {
}

type Tsdata138 added in v0.1.2

type Tsdata138 struct {
}

type Tsdata139 added in v0.1.2

type Tsdata139 struct {
}

type Tsdata14 added in v0.1.2

type Tsdata14 struct {
}

type Tsdata140 added in v0.1.2

type Tsdata140 struct {
}

type Tsdata141 added in v0.1.2

type Tsdata141 struct {
}

type Tsdata142 added in v0.1.2

type Tsdata142 struct {
}

type Tsdata143 added in v0.1.2

type Tsdata143 struct {
}

type Tsdata144 added in v0.1.2

type Tsdata144 struct {
}

type Tsdata145 added in v0.1.2

type Tsdata145 struct {
}

type Tsdata146 added in v0.1.2

type Tsdata146 struct {
}

type Tsdata147 added in v0.1.2

type Tsdata147 struct {
}

type Tsdata148 added in v0.1.2

type Tsdata148 struct {
}

type Tsdata149 added in v0.1.2

type Tsdata149 struct {
}

type Tsdata15 added in v0.1.2

type Tsdata15 struct {
}

type Tsdata150 added in v0.1.2

type Tsdata150 struct {
}

type Tsdata151 added in v0.1.2

type Tsdata151 struct {
}

type Tsdata152 added in v0.1.2

type Tsdata152 struct {
}

type Tsdata153 added in v0.1.2

type Tsdata153 struct {
}

type Tsdata154 added in v0.1.2

type Tsdata154 struct {
}

type Tsdata155 added in v0.1.2

type Tsdata155 struct {
}

type Tsdata156 added in v0.1.2

type Tsdata156 struct {
}

type Tsdata157 added in v0.1.2

type Tsdata157 struct {
}

type Tsdata158 added in v0.1.2

type Tsdata158 struct {
}

type Tsdata159 added in v0.1.2

type Tsdata159 struct {
}

type Tsdata16 added in v0.1.2

type Tsdata16 struct {
}

type Tsdata160 added in v0.1.2

type Tsdata160 struct {
}

type Tsdata161 added in v0.1.2

type Tsdata161 struct {
}

type Tsdata162 added in v0.1.2

type Tsdata162 struct {
}

type Tsdata163 added in v0.1.2

type Tsdata163 struct {
}

type Tsdata164 added in v0.1.2

type Tsdata164 struct {
}

type Tsdata165 added in v0.1.2

type Tsdata165 struct {
}

type Tsdata166 added in v0.1.2

type Tsdata166 struct {
}

type Tsdata167 added in v0.1.2

type Tsdata167 struct {
}

type Tsdata168 added in v0.1.2

type Tsdata168 struct {
}

type Tsdata169 added in v0.1.2

type Tsdata169 struct {
}

type Tsdata17 added in v0.1.2

type Tsdata17 struct {
}

type Tsdata170 added in v0.1.2

type Tsdata170 struct {
}

type Tsdata171 added in v0.1.2

type Tsdata171 struct {
}

type Tsdata172 added in v0.1.2

type Tsdata172 struct {
}

type Tsdata173 added in v0.1.2

type Tsdata173 struct {
}

type Tsdata174 added in v0.1.2

type Tsdata174 struct {
}

type Tsdata175 added in v0.1.2

type Tsdata175 struct {
}

type Tsdata176 added in v0.1.2

type Tsdata176 struct {
}

type Tsdata177 added in v0.1.2

type Tsdata177 struct {
}

type Tsdata178 added in v0.1.2

type Tsdata178 struct {
}

type Tsdata179 added in v0.1.2

type Tsdata179 struct {
}

type Tsdata18 added in v0.1.2

type Tsdata18 struct {
}

type Tsdata180 added in v0.1.2

type Tsdata180 struct {
}

type Tsdata181 added in v0.1.2

type Tsdata181 struct {
}

type Tsdata182 added in v0.1.2

type Tsdata182 struct {
}

type Tsdata183 added in v0.1.2

type Tsdata183 struct {
}

type Tsdata184 added in v0.1.2

type Tsdata184 struct {
}

type Tsdata185 added in v0.1.2

type Tsdata185 struct {
}

type Tsdata186 added in v0.1.2

type Tsdata186 struct {
}

type Tsdata187 added in v0.1.2

type Tsdata187 struct {
}

type Tsdata188 added in v0.1.2

type Tsdata188 struct {
}

type Tsdata189 added in v0.1.2

type Tsdata189 struct {
}

type Tsdata19 added in v0.1.2

type Tsdata19 struct {
}

type Tsdata190 added in v0.1.2

type Tsdata190 struct {
}

type Tsdata191 added in v0.1.2

type Tsdata191 struct {
}

type Tsdata192 added in v0.1.2

type Tsdata192 struct {
}

type Tsdata193 added in v0.1.2

type Tsdata193 struct {
}

type Tsdata194 added in v0.1.2

type Tsdata194 struct {
}

type Tsdata195 added in v0.1.2

type Tsdata195 struct {
}

type Tsdata196 added in v0.1.2

type Tsdata196 struct {
}

type Tsdata197 added in v0.1.2

type Tsdata197 struct {
}

type Tsdata198 added in v0.1.2

type Tsdata198 struct {
}

type Tsdata199 added in v0.1.2

type Tsdata199 struct {
}

type Tsdata2 added in v0.1.2

type Tsdata2 struct {
}

type Tsdata20 added in v0.1.2

type Tsdata20 struct {
}

type Tsdata200 added in v0.1.2

type Tsdata200 struct {
}

type Tsdata201 added in v0.1.2

type Tsdata201 struct {
}

type Tsdata202 added in v0.1.2

type Tsdata202 struct {
}

type Tsdata203 added in v0.1.2

type Tsdata203 struct {
}

type Tsdata204 added in v0.1.2

type Tsdata204 struct {
}

type Tsdata205 added in v0.1.2

type Tsdata205 struct {
}

type Tsdata206 added in v0.1.2

type Tsdata206 struct {
}

type Tsdata207 added in v0.1.2

type Tsdata207 struct {
}

type Tsdata208 added in v0.1.2

type Tsdata208 struct {
}

type Tsdata209 added in v0.1.2

type Tsdata209 struct {
}

type Tsdata21 added in v0.1.2

type Tsdata21 struct {
}

type Tsdata210 added in v0.1.2

type Tsdata210 struct {
}

type Tsdata211 added in v0.1.2

type Tsdata211 struct {
}

type Tsdata212 added in v0.1.2

type Tsdata212 struct {
}

type Tsdata213 added in v0.1.2

type Tsdata213 struct {
}

type Tsdata214 added in v0.1.2

type Tsdata214 struct {
}

type Tsdata215 added in v0.1.2

type Tsdata215 struct {
}

type Tsdata216 added in v0.1.2

type Tsdata216 struct {
}

type Tsdata217 added in v0.1.2

type Tsdata217 struct {
}

type Tsdata218 added in v0.1.2

type Tsdata218 struct {
}

type Tsdata219 added in v0.1.2

type Tsdata219 struct {
}

type Tsdata22 added in v0.1.2

type Tsdata22 struct {
}

type Tsdata220 added in v0.1.2

type Tsdata220 struct {
}

type Tsdata221 added in v0.1.2

type Tsdata221 struct {
}

type Tsdata222 added in v0.1.2

type Tsdata222 struct {
}

type Tsdata223 added in v0.1.2

type Tsdata223 struct {
}

type Tsdata224 added in v0.1.2

type Tsdata224 struct {
}

type Tsdata225 added in v0.1.2

type Tsdata225 struct {
}

type Tsdata226 added in v0.1.2

type Tsdata226 struct {
}

type Tsdata227 added in v0.1.2

type Tsdata227 struct {
}

type Tsdata228 added in v0.1.2

type Tsdata228 struct {
}

type Tsdata229 added in v0.1.2

type Tsdata229 struct {
}

type Tsdata23 added in v0.1.2

type Tsdata23 struct {
}

type Tsdata230 added in v0.1.2

type Tsdata230 struct {
}

type Tsdata231 added in v0.1.2

type Tsdata231 struct {
}

type Tsdata232 added in v0.1.2

type Tsdata232 struct {
}

type Tsdata233 added in v0.1.2

type Tsdata233 struct {
}

type Tsdata234 added in v0.1.2

type Tsdata234 struct {
}

type Tsdata235 added in v0.1.2

type Tsdata235 struct {
}

type Tsdata236 added in v0.1.2

type Tsdata236 struct {
}

type Tsdata237 added in v0.1.2

type Tsdata237 struct {
}

type Tsdata238 added in v0.1.2

type Tsdata238 struct {
}

type Tsdata239 added in v0.1.2

type Tsdata239 struct {
}

type Tsdata24 added in v0.1.2

type Tsdata24 struct {
}

type Tsdata240 added in v0.1.2

type Tsdata240 struct {
}

type Tsdata241 added in v0.1.2

type Tsdata241 struct {
}

type Tsdata242 added in v0.1.2

type Tsdata242 struct {
}

type Tsdata243 added in v0.1.2

type Tsdata243 struct {
}

type Tsdata244 added in v0.1.2

type Tsdata244 struct {
}

type Tsdata245 added in v0.1.2

type Tsdata245 struct {
}

type Tsdata246 added in v0.1.2

type Tsdata246 struct {
}

type Tsdata247 added in v0.1.2

type Tsdata247 struct {
}

type Tsdata248 added in v0.1.2

type Tsdata248 struct {
}

type Tsdata249 added in v0.1.2

type Tsdata249 struct {
}

type Tsdata25 added in v0.1.2

type Tsdata25 struct {
}

type Tsdata250 added in v0.1.2

type Tsdata250 struct {
}

type Tsdata251 added in v0.1.2

type Tsdata251 struct {
}

type Tsdata252 added in v0.1.2

type Tsdata252 struct {
}

type Tsdata253 added in v0.1.2

type Tsdata253 struct {
}

type Tsdata254 added in v0.1.2

type Tsdata254 struct {
}

type Tsdata255 added in v0.1.2

type Tsdata255 struct {
}

type Tsdata26 added in v0.1.2

type Tsdata26 struct {
}

type Tsdata27 added in v0.1.2

type Tsdata27 struct {
}

type Tsdata28 added in v0.1.2

type Tsdata28 struct {
}

type Tsdata29 added in v0.1.2

type Tsdata29 struct {
}

type Tsdata3 added in v0.1.2

type Tsdata3 struct {
}

type Tsdata30 added in v0.1.2

type Tsdata30 struct {
}

type Tsdata31 added in v0.1.2

type Tsdata31 struct {
}

type Tsdata32 added in v0.1.2

type Tsdata32 struct {
}

type Tsdata33 added in v0.1.2

type Tsdata33 struct {
}

type Tsdata34 added in v0.1.2

type Tsdata34 struct {
}

type Tsdata35 added in v0.1.2

type Tsdata35 struct {
}

type Tsdata36 added in v0.1.2

type Tsdata36 struct {
}

type Tsdata37 added in v0.1.2

type Tsdata37 struct {
}

type Tsdata38 added in v0.1.2

type Tsdata38 struct {
}

type Tsdata39 added in v0.1.2

type Tsdata39 struct {
}

type Tsdata4 added in v0.1.2

type Tsdata4 struct {
}

type Tsdata40 added in v0.1.2

type Tsdata40 struct {
}

type Tsdata41 added in v0.1.2

type Tsdata41 struct {
}

type Tsdata42 added in v0.1.2

type Tsdata42 struct {
}

type Tsdata43 added in v0.1.2

type Tsdata43 struct {
}

type Tsdata44 added in v0.1.2

type Tsdata44 struct {
}

type Tsdata45 added in v0.1.2

type Tsdata45 struct {
}

type Tsdata46 added in v0.1.2

type Tsdata46 struct {
}

type Tsdata47 added in v0.1.2

type Tsdata47 struct {
}

type Tsdata48 added in v0.1.2

type Tsdata48 struct {
}

type Tsdata49 added in v0.1.2

type Tsdata49 struct {
}

type Tsdata5 added in v0.1.2

type Tsdata5 struct {
}

type Tsdata50 added in v0.1.2

type Tsdata50 struct {
}

type Tsdata51 added in v0.1.2

type Tsdata51 struct {
}

type Tsdata52 added in v0.1.2

type Tsdata52 struct {
}

type Tsdata53 added in v0.1.2

type Tsdata53 struct {
}

type Tsdata54 added in v0.1.2

type Tsdata54 struct {
}

type Tsdata55 added in v0.1.2

type Tsdata55 struct {
}

type Tsdata56 added in v0.1.2

type Tsdata56 struct {
}

type Tsdata57 added in v0.1.2

type Tsdata57 struct {
}

type Tsdata58 added in v0.1.2

type Tsdata58 struct {
}

type Tsdata59 added in v0.1.2

type Tsdata59 struct {
}

type Tsdata6 added in v0.1.2

type Tsdata6 struct {
}

type Tsdata60 added in v0.1.2

type Tsdata60 struct {
}

type Tsdata61 added in v0.1.2

type Tsdata61 struct {
}

type Tsdata62 added in v0.1.2

type Tsdata62 struct {
}

type Tsdata63 added in v0.1.2

type Tsdata63 struct {
}

type Tsdata64 added in v0.1.2

type Tsdata64 struct {
}

type Tsdata65 added in v0.1.2

type Tsdata65 struct {
}

type Tsdata66 added in v0.1.2

type Tsdata66 struct {
}

type Tsdata67 added in v0.1.2

type Tsdata67 struct {
}

type Tsdata68 added in v0.1.2

type Tsdata68 struct {
}

type Tsdata69 added in v0.1.2

type Tsdata69 struct {
}

type Tsdata7 added in v0.1.2

type Tsdata7 struct {
}

type Tsdata70 added in v0.1.2

type Tsdata70 struct {
}

type Tsdata71 added in v0.1.2

type Tsdata71 struct {
}

type Tsdata72 added in v0.1.2

type Tsdata72 struct {
}

type Tsdata73 added in v0.1.2

type Tsdata73 struct {
}

type Tsdata74 added in v0.1.2

type Tsdata74 struct {
}

type Tsdata75 added in v0.1.2

type Tsdata75 struct {
}

type Tsdata76 added in v0.1.2

type Tsdata76 struct {
}

type Tsdata77 added in v0.1.2

type Tsdata77 struct {
}

type Tsdata78 added in v0.1.2

type Tsdata78 struct {
}

type Tsdata79 added in v0.1.2

type Tsdata79 struct {
}

type Tsdata8 added in v0.1.2

type Tsdata8 struct {
}

type Tsdata80 added in v0.1.2

type Tsdata80 struct {
}

type Tsdata81 added in v0.1.2

type Tsdata81 struct {
}

type Tsdata82 added in v0.1.2

type Tsdata82 struct {
}

type Tsdata83 added in v0.1.2

type Tsdata83 struct {
}

type Tsdata84 added in v0.1.2

type Tsdata84 struct {
}

type Tsdata85 added in v0.1.2

type Tsdata85 struct {
}

type Tsdata86 added in v0.1.2

type Tsdata86 struct {
}

type Tsdata87 added in v0.1.2

type Tsdata87 struct {
}

type Tsdata88 added in v0.1.2

type Tsdata88 struct {
}

type Tsdata89 added in v0.1.2

type Tsdata89 struct {
}

type Tsdata9 added in v0.1.2

type Tsdata9 struct {
}

type Tsdata90 added in v0.1.2

type Tsdata90 struct {
}

type Tsdata91 added in v0.1.2

type Tsdata91 struct {
}

type Tsdata92 added in v0.1.2

type Tsdata92 struct {
}

type Tsdata93 added in v0.1.2

type Tsdata93 struct {
}

type Tsdata94 added in v0.1.2

type Tsdata94 struct {
}

type Tsdata95 added in v0.1.2

type Tsdata95 struct {
}

type Tsdata96 added in v0.1.2

type Tsdata96 struct {
}

type Tsdata97 added in v0.1.2

type Tsdata97 struct {
}

type Tsdata98 added in v0.1.2

type Tsdata98 struct {
}

type Tsdata99 added in v0.1.2

type Tsdata99 struct {
}

type Tsdatum

type Tsdatum struct {
	TsUuid    uuid.UUID
	Value     float64
	Ts        time.Time
	CreatedBy uuid.UUID
}

type UpdateAlertSetDescriptionParams added in v0.1.2

type UpdateAlertSetDescriptionParams struct {
	Description string
	Uuid        uuid.UUID
}

type UpdateAlertSetEnvironmentParams added in v0.1.2

type UpdateAlertSetEnvironmentParams struct {
	Environment string
	Uuid        uuid.UUID
}

type UpdateAlertSetEventParams added in v0.1.2

type UpdateAlertSetEventParams struct {
	Event string
	Uuid  uuid.UUID
}

type UpdateAlertSetOriginParams added in v0.1.2

type UpdateAlertSetOriginParams struct {
	Origin string
	Uuid   uuid.UUID
}

type UpdateAlertSetRawdataParams added in v0.1.2

type UpdateAlertSetRawdataParams struct {
	Rawdata []byte
	Uuid    uuid.UUID
}

type UpdateAlertSetResourceParams added in v0.1.2

type UpdateAlertSetResourceParams struct {
	Resource string
	Uuid     uuid.UUID
}

type UpdateAlertSetServiceParams added in v0.1.2

type UpdateAlertSetServiceParams struct {
	Service []string
	Uuid    uuid.UUID
}

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 UpdateAlertSetTagsParams struct {
	Tags []string
	Uuid uuid.UUID
}

type UpdateAlertSetTimeoutParams added in v0.1.2

type UpdateAlertSetTimeoutParams struct {
	Timeout int32
	Uuid    uuid.UUID
}

type UpdateAlertSetValueParams added in v0.1.2

type UpdateAlertSetValueParams struct {
	Value string
	Uuid  uuid.UUID
}

type User

type User struct {
	Uuid  uuid.UUID
	Name  string
	State AccountState
}

type UserGroup

type UserGroup struct {
	UserUuid  uuid.UUID
	GroupUuid uuid.UUID
}

type UserToken

type UserToken struct {
	Uuid      uuid.UUID
	UserUuid  uuid.UUID
	Name      string
	TokenHash []byte
	Created   time.Time
}

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
}

Jump to

Keyboard shortcuts

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