Documentation ¶
Index ¶
- type EntityType
- type Store
- func (s *Store) CheckImageExists(ctx context.Context, imageID *int32) error
- func (s *Store) CheckSensorExists(ctx context.Context, sensorID *int32) error
- func (s *Store) Close()
- func (s *Store) HandleError(err error) error
- func (s *Store) SetEntityType(entityType EntityType)
- func (s *Store) WithTx(ctx context.Context, fn func(tx pgx.Tx) error) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EntityType ¶
type EntityType string
const ( Sensor EntityType = "sensor" Image EntityType = "image" Flowerbed EntityType = "flowerbed" TreeCluster EntityType = "treecluster" Tree EntityType = "tree" Vehicle EntityType = "vehicle" )
type Store ¶
func (*Store) CheckImageExists ¶
func (*Store) CheckSensorExists ¶
func (*Store) HandleError ¶
func (*Store) SetEntityType ¶
func (s *Store) SetEntityType(entityType EntityType)
Click to show internal directories.
Click to hide internal directories.