mirror of
https://github.com/go-gitea/gitea.git
synced 2026-09-21 20:23:41 +09:00
refactor: rename packages
This commit is contained in:
@@ -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,
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user