services

package
v1.7.6 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Module = fx.Module(
	"services",
	fx.Decorate(func(log *zap.Logger) *zap.Logger {
		return log.Named("services")
	}),
	fx.Provide(
		NewDevicesService,
	),
)

Functions

This section is empty.

Types

type DevicesService added in v1.6.0

type DevicesService struct {
	Devices *repositories.DevicesRepository

	Logger *zap.Logger
}

func NewDevicesService added in v1.6.0

func NewDevicesService(params DevicesServiceParams) *DevicesService

func (*DevicesService) Select added in v1.6.0

func (s *DevicesService) Select(user models.User) ([]models.Device, error)

type DevicesServiceParams added in v1.6.0

type DevicesServiceParams struct {
	fx.In

	Devices *repositories.DevicesRepository
	Logger  *zap.Logger
}

Jump to

Keyboard shortcuts

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