database

package
v0.0.0-...-e5601fe Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service interface {
	LoadScript(fileName string) error
	GetRole(name string) (types.Role, error)

	// Company methods
	CreateCompany(company *types.Company, user types.CreateUser) (types.User, error)
	Login(email, password string) (types.User, error)

	// User methods
	GetUsers(companyID uuid.UUID) ([]types.User, error)
	GetUserByID(id, companyID uuid.UUID) (types.User, error)
	CreateUser(user types.CreateUser) (types.User, error)
	DeleteUser(id, companyID uuid.UUID) error
	UpdateUser(user types.CreateUser) error
}

func New

func New(connStr string) Service

Jump to

Keyboard shortcuts

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