Exemple #1
0
func startDefault(rpcsvc *revrpc.Service) {
	svc := cbauthimpl.NewSVC(5*time.Second, &DBStaleError{})
	Default = &authImpl{svc}
	go func() {
		panic(runRPCForSvc(rpcsvc, svc))
	}()
}
Exemple #2
0
func newAuth(initPeriod time.Duration) *authImpl {
	return &authImpl{cbauthimpl.NewSVC(initPeriod, &DBStaleError{})}
}