config

package
v0.42.3 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AppName     = "PACTA"
	DefaultPort = 3000
)

Variables

View Source
var AppVersion = "0.41.0"

Functions

This section is empty.

Types

type Config

type Config struct {
	Addr    string
	DataDir string
	Version string
}

func Default

func Default() *Config

type Service added in v0.37.0

type Service struct {
	*Config
	DB *sql.DB
}

Service extends Config with a DB connection and helper methods

func (*Service) GetUserByID added in v0.37.0

func (s *Service) GetUserByID(id int64) (*models.User, error)

GetUserByID retrieves a user by ID including company_id

func (*Service) GetUsersByCompanyAndRole added in v0.37.0

func (s *Service) GetUsersByCompanyAndRole(companyID int64, role string) ([]models.User, error)

GetUsersByCompanyAndRole retrieves active users by company ID and role

Jump to

Keyboard shortcuts

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