services

package
v0.0.0-...-3385ac3 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MonitorService

type MonitorService interface {
	Create(m *models.Monitor) error
	ListByUser(userID int64) ([]*models.Monitor, error)
	GetByIDAndUser(id int, userID int64) (*models.Monitor, error)
	Delete(monitorID int, userID int64) error
}

func NewMonitorService

func NewMonitorService(db *sql.DB, repo *repository.Queries) MonitorService

type UserService

type UserService interface {
	GetBySubjectID(id string) (*models.User, error)
	Create(u *models.User) error
}

func NewUserService

func NewUserService(db *sql.DB, repo *repository.Queries) UserService

Jump to

Keyboard shortcuts

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