Coverage for src / lexigram / contracts / web / http_types.py: 100%

9 statements  

« prev     ^ index     » next       coverage.py v7.13.5, created at 2026-08-19 05:41 +0800

1"""Value types for HTTP service mesh contracts.""" 

2 

3from __future__ import annotations 

4 

5from dataclasses import dataclass 

6 

7__all__ = ["ServiceInfo"] 

8 

9 

10@dataclass(frozen=True) 

11class ServiceInfo: 

12 """Information about a registered service instance.""" 

13 

14 name: str 

15 host: str 

16 port: int 

17 metadata: dict[str, str] | None = None