package bootnodezap // Server is the in-process / over-the-wire entrypoint for the // BootnodeService implementation. zapc emits a typed dispatcher here; // the hand-rolled stub keeps the surface compilable until the // generator is run. // // When wired by superbase, every subsystem registers its Server with // the local ZAP dispatcher and the typed Client returned by NewClient // resolves to direct Go calls — no marshalling, no network (HIP-0106). type Server struct { impl Service } // NewServer wraps a concrete Service implementation for dispatch. func NewServer(impl Service) *Server { return &Server{impl: impl} } // Impl returns the underlying Service. zapc-generated server code // uses this to dispatch on method-id; the hand-rolled stub exposes // it directly so handlers can call typed methods without a switch. func (s *Server) Impl() Service { return s.impl }