overflow_probes/auth/rpc.go
crusader d938e396f9 ing
2017-12-02 01:14:22 +09:00

20 lines
413 B
Go

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{
DoneChan: a.serviceDoneChan,
ConfigPath: a.configPath,
Config: a.config,
}
rpcRegistry.RegisterService(napService, "")
return rpcRegistry
}