etcdserver: AuthServer for auth related RPCs

Currently AuthEnable() is connected to etcdserver for experimental
purpose.
This commit is contained in:
Hitoshi Mitake
2016-03-02 14:56:42 +09:00
parent 124a444153
commit 7a78c1ef1d
5 changed files with 161 additions and 0 deletions

View File

@ -36,5 +36,6 @@ func Server(s *etcdserver.EtcdServer, tls *transport.TLSInfo) (*grpc.Server, err
pb.RegisterWatchServer(grpcServer, NewWatchServer(s))
pb.RegisterLeaseServer(grpcServer, NewLeaseServer(s))
pb.RegisterClusterServer(grpcServer, NewClusterServer(s))
pb.RegisterAuthServer(grpcServer, NewAuthServer(s))
return grpcServer, nil
}