Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service interface { Store(ctx context.Context, device *domain.Device) (*domain.Device, error) Delete(ctx context.Context, id int) error ListDevices(ctx context.Context, apikey string) ([]domain.Device, error) GetDeviceByDeviceId(ctx context.Context, device *domain.Device) (*domain.Device, error) GetDeviceByApiKey(ctx context.Context, device *domain.Device) (*domain.Device, error) }
func NewService ¶
func NewService(log logger.Logger, repo domain.DeviceRepo) Service
Click to show internal directories.
Click to hide internal directories.