mirror of
https://gitea.com/gitea/act_runner.git
synced 2025-06-13 01:57:13 +02:00
feat(cli): make register interactive stages working
This commit is contained in:
@ -15,4 +15,5 @@ type Filter struct {
|
||||
type Client interface {
|
||||
pingv1connect.PingServiceClient
|
||||
runnerv1connect.RunnerServiceClient
|
||||
Address() string
|
||||
}
|
||||
|
@ -62,13 +62,19 @@ func New(endpoint string, opts ...Option) *HTTPClient {
|
||||
endpoint,
|
||||
cfg.opts...,
|
||||
),
|
||||
endpoint: endpoint,
|
||||
}
|
||||
}
|
||||
|
||||
func (c *HTTPClient) Address() string {
|
||||
return c.endpoint
|
||||
}
|
||||
|
||||
var _ Client = (*HTTPClient)(nil)
|
||||
|
||||
// An HTTPClient manages communication with the runner API.
|
||||
type HTTPClient struct {
|
||||
pingv1connect.PingServiceClient
|
||||
runnerv1connect.RunnerServiceClient
|
||||
endpoint string
|
||||
}
|
||||
|
Reference in New Issue
Block a user