Documentation ¶
Index ¶
- type ApiUserRepository
- func (r ApiUserRepository) DeleteApiUserById(id uuid.UUID) error
- func (r ApiUserRepository) GetApiUserById(id uuid.UUID) (auth.ApiUser, error)
- func (r ApiUserRepository) GetApiUserByName(name string) (auth.ApiUser, error)
- func (r ApiUserRepository) GetApiUsers() ([]auth.ApiUser, error)
- func (r ApiUserRepository) SetApiUser(a auth.ApiUser) error
- type ProfileRepository
- type SystemRepository
- func (r SystemRepository) DeleteSystemById(id uuid.UUID) error
- func (r SystemRepository) GetSystemById(id uuid.UUID) (system.System, error)
- func (r SystemRepository) GetSystemByMacAddress(mac net.HardwareAddr) (system.System, error)
- func (r SystemRepository) GetSystems() ([]system.System, error)
- func (r SystemRepository) SetSystem(s system.System) error
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 (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 (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 (SystemRepository) GetSystemByMacAddress ¶
func (r SystemRepository) GetSystemByMacAddress(mac net.HardwareAddr) (system.System, error)
func (SystemRepository) GetSystems ¶
func (r SystemRepository) GetSystems() ([]system.System, error)
Click to show internal directories.
Click to hide internal directories.