Documentation ¶
Index ¶
- func NewDeviceRepository(db *gorm.DB) *deviceRepository
- func NewInterfaceRepository(db *gorm.DB) *interfaceRepository
- func NewLocationRepository(db *gorm.DB) *locationRepository
- func NewTrafficRepository(db *gorm.DB) *trafficRepository
- type DeviceRepository
- type InterfaceRepository
- type LocationRepository
- type TrafficRepository
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewDeviceRepository ¶
func NewInterfaceRepository ¶
func NewLocationRepository ¶
func NewTrafficRepository ¶
Types ¶
type DeviceRepository ¶
type DeviceRepository interface { Add(ctx context.Context, device *entity.Device) error Check(ctx context.Context, device *entity.Device) error GetByID(ctx context.Context, id uint) (*entity.Device, error) GetAll(ctx context.Context) ([]*entity.Device, error) GetDevicesWithTemplate(ctx context.Context) ([]*entity.Device, error) Update(ctx context.Context, device *entity.Device) error Delete(ctx context.Context, id uint) error }
type InterfaceRepository ¶
type LocationRepository ¶
Click to show internal directories.
Click to hide internal directories.