refactor: rename packages

This commit is contained in:
Jason Song
2022-12-05 15:45:38 +08:00
parent fdd3444c52
commit 704f72017d
54 changed files with 81 additions and 81 deletions
+22
View File
@@ -0,0 +1,22 @@
// Copyright 2022 The Gitea Authors. All rights reserved.
// SPDX-License-Identifier: MIT
package grpc
import (
"net/http"
"code.gitea.io/gitea/routers/api/actions/runner"
"code.gitea.io/bots-proto-go/runner/v1/runnerv1connect"
)
func RunnerRoute() (string, http.Handler) {
runnerService := &runner.Service{}
return runnerv1connect.NewRunnerServiceHandler(
runnerService,
compress1KB,
runner.WithRunner,
)
}