# o-ran-sc/ric-app-hw-go architecture

> Architecture diagram of the GitHub repository o-ran-sc/ric-app-hw-go, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-09). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/o-ran-sc/ric-app-hw-go
- Repository: https://github.com/o-ran-sc/ric-app-hw-go

## Overview

This is a minimal Go near-real-time RIC xApp. Its visible runtime starts through `HWApp.Run`, registers framework callbacks, and processes incoming RMR messages; it can also send an A1 policy query. The README describes broader capabilities, including SDL, metrics, alarms, E2, and persistent storage, but their implementations are not present in the sampled source, so those are shown as documented capabilities without inferred call paths.

Main entry points: [`hwApp.go`](https://github.com/o-ran-sc/ric-app-hw-go/blob/dawn/hwApp.go) (HWApp runtime), [`config/config-file.json`](https://github.com/o-ran-sc/ric-app-hw-go/blob/dawn/config/config-file.json) (Configuration)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_runtime["xApp runtime"]
  node_app["HWApp runtime<br/>[hwApp.go]"]
  node_framework["xApp framework"]
  node_rmr["RMR messaging"]
end

subgraph group_capabilities["Documented capabilities"]
  node_a1["A1 policy interface"]
  node_config["Configuration<br/>[config-file.json]"]
  node_sdl[("SDL storage")]
  node_health["Health checks"]
  node_metrics["Metrics"]
  node_alarms["Alarms"]
  node_e2["E2 interface"]
end

node_operator(("RIC operator"))

node_operator -->|"starts"| node_app
node_app -->|"uses"| node_framework
node_app -->|"sends query"| node_rmr
node_rmr -->|"delivers messages"| node_app
node_app -->|"queries policy"| node_a1
node_app -->|"reads settings"| node_config
node_app -.->|"supports storage"| node_sdl
node_app -.->|"supports checks"| node_health
node_app -.->|"generates"| node_metrics
node_app -.->|"raises"| node_alarms
node_app -.->|"supports interaction"| node_e2

click node_app "https://github.com/o-ran-sc/ric-app-hw-go/blob/dawn/hwApp.go"
click node_config "https://github.com/o-ran-sc/ric-app-hw-go/blob/dawn/config/config-file.json"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_app,node_framework,node_rmr toneBlue
class node_a1,node_config,node_sdl,node_health,node_metrics,node_alarms,node_e2 toneAmber
class node_operator toneIndigo
```

## Components

### xApp runtime

- [HWApp runtime](https://github.com/o-ran-sc/ric-app-hw-go/blob/dawn/hwApp.go): `hwApp.go`
- **xApp framework**
- **RMR messaging**

### Documented capabilities

- **A1 policy interface**
- [Configuration](https://github.com/o-ran-sc/ric-app-hw-go/blob/dawn/config/config-file.json): `config/config-file.json`
- **SDL storage**
- **Health checks**
- **Metrics**
- **Alarms**
- **E2 interface**

### Other components

- **RIC operator**

## Connections

- RIC operator → HWApp runtime: starts (evidence: `README.md`)
- HWApp runtime → xApp framework: uses (evidence: `hwApp.go`)
- HWApp runtime → RMR messaging: sends query (evidence: `hwApp.go`)
- RMR messaging → HWApp runtime: delivers messages (evidence: `hwApp.go`)
- HWApp runtime → A1 policy interface: queries policy (evidence: `hwApp.go`)
- HWApp runtime → Configuration: reads settings (evidence: `hwApp.go`)
- HWApp runtime → SDL storage: supports storage (evidence: `README.md`)
- HWApp runtime → Health checks: supports checks (evidence: `README.md`)
- HWApp runtime → Metrics: generates (evidence: `README.md`)
- HWApp runtime → Alarms: raises (evidence: `README.md`)
- HWApp runtime → E2 interface: supports interaction (evidence: `README.md`)
