Dont expose rpc client/server
This commit is contained in:
@@ -54,12 +54,16 @@ func Init() error {
|
||||
}
|
||||
|
||||
if DefaultServer == nil {
|
||||
DefaultServer = NewRpcServer(Address)
|
||||
DefaultServer = newRpcServer(Address)
|
||||
}
|
||||
|
||||
return DefaultServer.Init()
|
||||
}
|
||||
|
||||
func New(address string, opt ...Option) Server {
|
||||
return newRpcServer(address, opt...)
|
||||
}
|
||||
|
||||
func NewReceiver(handler interface{}) Receiver {
|
||||
return DefaultServer.NewReceiver(handler)
|
||||
}
|
||||
|
Reference in New Issue
Block a user