Documentation
¶
Overview ¶
Package types provides shared types used across handler, repository, and use-case layers.
Role in architecture:
- Shared kernel: no dependencies on infrastructure; used by domain-facing code and adapters.
Responsibilities:
- Conditions: map type for repository WHERE clauses (key = SQL fragment, value = arg).
- TimeRange: start/end string pair for time-bounded queries.
- PageInfo: pagination request (pageNumber, pageSize) with form/json tags.
This package must NOT:
- Contain business rules or validation logic.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Conditions ¶ added in v0.1.2
type Conditions map[string]interface{}
Conditions is a map from SQL condition fragments to argument values, used by repository WHERE clauses (e.g. "id = ?" -> value).
Click to show internal directories.
Click to hide internal directories.