pg

package
v1.9.0 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Postgres

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

func New

func New(db *sqlx.DB) *Postgres

func (*Postgres) DeleteBySerial

func (d *Postgres) DeleteBySerial(ctx context.Context, serial string) error

func (*Postgres) DeleteByUDID

func (d *Postgres) DeleteByUDID(ctx context.Context, udid string) error

func (*Postgres) DeviceBySerial

func (d *Postgres) DeviceBySerial(ctx context.Context, serial string) (*device.Device, error)

func (*Postgres) DeviceByUDID

func (d *Postgres) DeviceByUDID(ctx context.Context, udid string) (*device.Device, error)

func (*Postgres) ListDevices

func (d *Postgres) ListDevices(ctx context.Context, opt device.ListDevicesOption) ([]device.Device, error)

func (*Postgres) Save

func (d *Postgres) Save(ctx context.Context, device *device.Device) error

Jump to

Keyboard shortcuts

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