Files
gitdts/routers/api/actions/grpc/runner.go
2022-12-06 13:44:23 +08:00

23 lines
429 B
Go

// 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/actions-proto-go/runner/v1/runnerv1connect"
)
func RunnerRoute() (string, http.Handler) {
runnerService := &runner.Service{}
return runnerv1connect.NewRunnerServiceHandler(
runnerService,
compress1KB,
runner.WithRunner,
)
}