package contracts type GoBridgeService interface { Start() error Shutdown() error Restart() error } // GoBridge 继承 Controller,可通过 gobridge.WithHandlers 绑定到 Pool, // 所有公开方法自动暴露给 Python 通过 call_go() 调用。 type GoBridge interface { Controller }