Add webui

This commit is contained in:
garethgeorge
2023-11-11 00:39:24 -08:00
parent f365913430
commit b57ff969dd
26 changed files with 4553 additions and 75 deletions

View File

@@ -20,7 +20,7 @@ func serveGRPC(ctx context.Context, socket string) error {
return fmt.Errorf("failed to listen: %w", err)
}
grpcServer := grpc.NewServer()
v1.RegisterResticUIServer(grpcServer, &server{})
v1.RegisterResticUIServer(grpcServer, NewServer())
go func() {
<-ctx.Done()
grpcServer.GracefulStop()