Logo
Explore Help
Sign In
phundrak/sta
1
0
Fork 0
You've already forked sta
Code Issues Pull Requests Actions Packages Projects Releases Wiki Activity
Files
410046bd7e739081a75fb889fada6ec0b46a694a
sta/backend/src/domain/relay/mod.rs

12 lines
401 B
Rust
Raw Normal View History

feat(persistence): initialize SQLite database module - Add domain types: RelayId newtype and RepositoryError enum - Implement SqliteRelayLabelRepository with in-memory test support - Create relay_labels migration with SQLx compile-time verification - Add comprehensive integration test suite (266 lines) Ref: T006 (specs/001-modbus-relay-control)
2026-01-01 17:35:58 +01:00
//! Relay domain module.
//!
//! This module contains the core domain logic for relay control and management,
//! including relay types, repository abstractions, and business rules.
/// Repository trait and error types for relay persistence.
pub mod repository;
/// Domain types for relay identification and control.
pub mod types;
feat(domain): implement RelayId newtype with validation Implement smart constructor that validates relay IDs are within valid range (1-8 for 8-channel relay controller). Add accessor method as_u8() for safe access to inner value. Add comprehensive documentation to satisfy clippy requirements. TDD green phase: Tests from T017 now pass. Ref: T018 (specs/001-modbus-relay-control/tasks.md)
2026-01-03 22:34:36 +01:00
/// Controller error types for relay operations.
pub mod controler;
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.25.4 Page: 92ms Template: 9ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API