Documentation
¶
Index ¶
- type PGDevice
- func (pg *PGDevice) Delete(id int) error
- func (pg *PGDevice) GetAll() ([]models.Device, error)
- func (pg *PGDevice) GetByHostname(name string) (models.Device, error)
- func (pg *PGDevice) GetByID(id int) (models.Device, error)
- func (pg *PGDevice) New(device models.Device) error
- func (pg *PGDevice) Update(device models.Device) error
- type PGModel
- func (pg *PGModel) Delete(id int) error
- func (pg *PGModel) GetAll() ([]models.Model, error)
- func (pg *PGModel) GetByID(id int) (models.Model, error)
- func (pg *PGModel) GetByName(name string) (models.Model, error)
- func (pg *PGModel) New(model models.Model) error
- func (pg *PGModel) Update(model models.Model) error
- type PGVendor
- func (pg *PGVendor) Delete(id int) error
- func (pg *PGVendor) GetAll() ([]models.Vendor, error)
- func (pg *PGVendor) GetByID(id int) (models.Vendor, error)
- func (pg *PGVendor) GetByName(name string) (models.Vendor, error)
- func (pg *PGVendor) New(name string) error
- func (pg *PGVendor) Update(vendor models.Vendor) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PGDevice ¶
PGDevice holds the DB connection pool.
func (*PGDevice) GetByHostname ¶
GetByHostname returns a specific device matching the provided hostname.
type PGModel ¶
PGModel holds the DB connection pool.
type PGVendor ¶
PGVendor holds the DB connection pool.
Click to show internal directories.
Click to hide internal directories.