overflow_probes/auth/rpc.go

20 lines
413 B
Go
Raw Normal View History

2017-12-01 13:01:46 +00:00
package auth
import (
crr "git.loafle.net/commons_go/rpc/registry"
oopar "git.loafle.net/overflow/overflow_probes/auth/rpc"
)
func initRPCRegistry(a *auth) crr.RPCInvoker {
rpcRegistry := crr.NewRPCRegistry()
napService := &oopar.NoAuthProbeService{
2017-12-01 16:14:22 +00:00
DoneChan: a.serviceDoneChan,
ConfigPath: a.configPath,
Config: a.config,
2017-12-01 13:01:46 +00:00
}
rpcRegistry.RegisterService(napService, "")
return rpcRegistry
}