feat(cli): make register interactive stages working
This commit is contained in:
parent
8f9d7506dc
commit
bfcc6f56f3
8 changed files with 132 additions and 84 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue