code wiki / _hdl_build / nx_consul_dns.nx

nx_consul_dns.nx

buildroot/runtime/_hdl_build/nx_consul_dns.nx

1558 B28 linesdepth 3pulls 3 transitivereach 2 importersview sourcekind librarytopic consul
docsdependenciesstructsconstsfunctions

about

nx_consul_dns.nx -- sovereign SERVICE-DNS interface (HashiCorp Consul service-DNS-class; CONSUL-003). A query for "<svc>.service.nishi" resolves to the A-record set = the addresses of all routable, registered instances of <svc> -- inheriting the health gate from CONSUL-001 discovery, so DNS NEVER returns a down or deregistered node. The answer is dynamic: when an instance goes CRITICAL or deregisters it drops from the A-records on the next query. The DNS frontend (nx_dns_authoritative) only treats *.service.nishi names as service lookups. Composes nx_consul_registry. license_tier: ORIGINAL

dependencies 2 imports · 2 importers

nx_consul_registry.nx nx_syscalls.nx nx_consul_dns.nx nx_consul_dns_test.nx nx_consul_suite_test.nx

imports: nx_consul_registry.nxnx_syscalls.nx

imported by: nx_consul_dns_test.nxnx_consul_suite_test.nx

structs

none

consts

none

functions

12func csd_resolve(reg: *i64, names: *i64, addrs: *i64, healths: *i64, n: i64, qname: i64, out_addrs: *i64) -> i64
called by 2: mainmain calls 2: sys_mmapcs_discover
21func csd_is_service_fqdn(q: *u8, qlen: i64) -> i64
called by 1: main