question: trpc: Is there any way I could know whether an *server.Server is new-ed? #175
Closed
2 tasks done
Labels
question
Further information is requested
Preliminary Research
Question
As we know, a trpc app should and should only invoke trpc.NewServer() once. After invoking this function, a server is initialized and all associated modules are ready to use.
I am now developing an plugin depending on other plugins,
etcd
for example. However, at start-up procedure, when I callledconfig.Get("etcd")
and gotnil
, I am not sure of the reason. If it was because thatetcd
was not properly configurred? Or thatetcd
is confgurred but simply not initialized by trpc framework yet.So, is there any way that I can know at least one
Server
is new-ed? Which indicates that trpc server is completely initialized.Additional Information
N/A
The text was updated successfully, but these errors were encountered: