devices

package
v0.0.0-...-b289748 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2024 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Devices

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

func NewDevices

func NewDevices(da DevicesArgs) *Devices

func (*Devices) Delete

func (d *Devices) Delete(uid types.Uid, deviceID string) error

Delete deletes a device record

func (*Devices) GetAll

func (d *Devices) GetAll(uids ...types.Uid) (map[types.Uid][]types.DeviceDef, int, error)

GetAll returns all devices for a given set of users

func (*Devices) Upsert

func (d *Devices) Upsert(uid types.Uid, def *types.DeviceDef) error

Upsert creates or updates a device record

type DevicesArgs

type DevicesArgs struct {
	DB     *pgxpool.Pool
	Utils  *utils.Utils
	Cfg    *config.StorePostgresConfig
	Shared *shared.Shared
	UGen   *types.UidGenerator
}

Jump to

Keyboard shortcuts

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