postgres

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2024 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApiUserRepository

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

func NewApiUserRepository

func NewApiUserRepository(db *pgxpool.Pool) (ApiUserRepository, error)

func (ApiUserRepository) DeleteApiUserById

func (r ApiUserRepository) DeleteApiUserById(id uuid.UUID) error

func (ApiUserRepository) GetApiUserById

func (r ApiUserRepository) GetApiUserById(id uuid.UUID) (auth.ApiUser, error)

func (ApiUserRepository) GetApiUserByName

func (r ApiUserRepository) GetApiUserByName(name string) (auth.ApiUser, error)

func (ApiUserRepository) GetApiUsers

func (r ApiUserRepository) GetApiUsers() ([]auth.ApiUser, error)

func (ApiUserRepository) SetApiUser

func (r ApiUserRepository) SetApiUser(a auth.ApiUser) error

type ProfileRepository

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

func NewProfileRepository

func NewProfileRepository(db *pgxpool.Pool) (ProfileRepository, error)

func (ProfileRepository) DeleteProfileById

func (r ProfileRepository) DeleteProfileById(id uuid.UUID) error

func (ProfileRepository) GetProfileById

func (r ProfileRepository) GetProfileById(id uuid.UUID) (profile.Profile, error)

func (ProfileRepository) GetProfiles

func (r ProfileRepository) GetProfiles() ([]profile.Profile, error)

func (ProfileRepository) SetProfile

func (r ProfileRepository) SetProfile(p profile.Profile) error

type SystemRepository

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

func NewSystemRepository

func NewSystemRepository(db *pgxpool.Pool) (SystemRepository, error)

func (SystemRepository) DeleteSystemById

func (r SystemRepository) DeleteSystemById(id uuid.UUID) error

func (SystemRepository) GetSystemById

func (r SystemRepository) GetSystemById(id uuid.UUID) (system.System, error)

func (SystemRepository) GetSystemByMacAddress

func (r SystemRepository) GetSystemByMacAddress(mac net.HardwareAddr) (system.System, error)

func (SystemRepository) GetSystems

func (r SystemRepository) GetSystems() ([]system.System, error)

func (SystemRepository) SetSystem

func (r SystemRepository) SetSystem(s system.System) error

Jump to

Keyboard shortcuts

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