Documentation ¶
Index ¶
- Constants
- func NewGetRunnerServiceHandler(svc GetRunnerServiceHandler, opts ...connect_go.HandlerOption) (string, http.Handler)
- func NewReleaseRunnerServiceHandler(svc ReleaseRunnerServiceHandler, opts ...connect_go.HandlerOption) (string, http.Handler)
- func NewRunCommandServiceHandler(svc RunCommandServiceHandler, opts ...connect_go.HandlerOption) (string, http.Handler)
- type GetRunnerServiceClient
- type GetRunnerServiceHandler
- type ReleaseRunnerServiceClient
- type ReleaseRunnerServiceHandler
- type RunCommandServiceClient
- type RunCommandServiceHandler
- type UnimplementedGetRunnerServiceHandler
- type UnimplementedReleaseRunnerServiceHandler
- type UnimplementedRunCommandServiceHandler
Constants ¶
const (
// GetRunnerServiceName is the fully-qualified name of the GetRunnerService service.
GetRunnerServiceName = "api.v2.GetRunnerService"
)
const (
// ReleaseRunnerServiceName is the fully-qualified name of the ReleaseRunnerService service.
ReleaseRunnerServiceName = "api.v2.ReleaseRunnerService"
)
const (
// RunCommandServiceName is the fully-qualified name of the RunCommandService service.
RunCommandServiceName = "api.v2.RunCommandService"
)
Variables ¶
This section is empty.
Functions ¶
func NewGetRunnerServiceHandler ¶
func NewGetRunnerServiceHandler(svc GetRunnerServiceHandler, opts ...connect_go.HandlerOption) (string, http.Handler)
NewGetRunnerServiceHandler builds an HTTP handler from the service implementation. It returns the path on which to mount the handler and the handler itself.
By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf and JSON codecs. They also support gzip compression.
func NewReleaseRunnerServiceHandler ¶
func NewReleaseRunnerServiceHandler(svc ReleaseRunnerServiceHandler, opts ...connect_go.HandlerOption) (string, http.Handler)
NewReleaseRunnerServiceHandler builds an HTTP handler from the service implementation. It returns the path on which to mount the handler and the handler itself.
By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf and JSON codecs. They also support gzip compression.
func NewRunCommandServiceHandler ¶
func NewRunCommandServiceHandler(svc RunCommandServiceHandler, opts ...connect_go.HandlerOption) (string, http.Handler)
NewRunCommandServiceHandler builds an HTTP handler from the service implementation. It returns the path on which to mount the handler and the handler itself.
By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf and JSON codecs. They also support gzip compression.
Types ¶
type GetRunnerServiceClient ¶
type GetRunnerServiceClient interface {
GetRunner(context.Context, *connect_go.Request[v2.GetRunnerRequest]) (*connect_go.Response[v2.GetRunnerResponse], error)
}
GetRunnerServiceClient is a client for the api.v2.GetRunnerService service.
func NewGetRunnerServiceClient ¶
func NewGetRunnerServiceClient(httpClient connect_go.HTTPClient, baseURL string, opts ...connect_go.ClientOption) GetRunnerServiceClient
NewGetRunnerServiceClient constructs a client for the api.v2.GetRunnerService service. By default, it uses the Connect protocol with the binary Protobuf Codec, asks for gzipped responses, and sends uncompressed requests. To use the gRPC or gRPC-Web protocols, supply the connect.WithGRPC() or connect.WithGRPCWeb() options.
The URL supplied here should be the base URL for the Connect or gRPC server (for example, http://api.acme.com or https://acme.com/grpc).
type GetRunnerServiceHandler ¶
type GetRunnerServiceHandler interface {
GetRunner(context.Context, *connect_go.Request[v2.GetRunnerRequest]) (*connect_go.Response[v2.GetRunnerResponse], error)
}
GetRunnerServiceHandler is an implementation of the api.v2.GetRunnerService service.
type ReleaseRunnerServiceClient ¶
type ReleaseRunnerServiceClient interface {
ReleaseRunner(context.Context, *connect_go.Request[v2.ReleaseRunnerRequest]) (*connect_go.Response[v2.ReleaseRunnerResponse], error)
}
ReleaseRunnerServiceClient is a client for the api.v2.ReleaseRunnerService service.
func NewReleaseRunnerServiceClient ¶
func NewReleaseRunnerServiceClient(httpClient connect_go.HTTPClient, baseURL string, opts ...connect_go.ClientOption) ReleaseRunnerServiceClient
NewReleaseRunnerServiceClient constructs a client for the api.v2.ReleaseRunnerService service. By default, it uses the Connect protocol with the binary Protobuf Codec, asks for gzipped responses, and sends uncompressed requests. To use the gRPC or gRPC-Web protocols, supply the connect.WithGRPC() or connect.WithGRPCWeb() options.
The URL supplied here should be the base URL for the Connect or gRPC server (for example, http://api.acme.com or https://acme.com/grpc).
type ReleaseRunnerServiceHandler ¶
type ReleaseRunnerServiceHandler interface {
ReleaseRunner(context.Context, *connect_go.Request[v2.ReleaseRunnerRequest]) (*connect_go.Response[v2.ReleaseRunnerResponse], error)
}
ReleaseRunnerServiceHandler is an implementation of the api.v2.ReleaseRunnerService service.
type RunCommandServiceClient ¶
type RunCommandServiceClient interface {
RunCommand(context.Context, *connect_go.Request[v2.RunCommandRequest]) (*connect_go.Response[v2.RunCommandResponse], error)
}
RunCommandServiceClient is a client for the api.v2.RunCommandService service.
func NewRunCommandServiceClient ¶
func NewRunCommandServiceClient(httpClient connect_go.HTTPClient, baseURL string, opts ...connect_go.ClientOption) RunCommandServiceClient
NewRunCommandServiceClient constructs a client for the api.v2.RunCommandService service. By default, it uses the Connect protocol with the binary Protobuf Codec, asks for gzipped responses, and sends uncompressed requests. To use the gRPC or gRPC-Web protocols, supply the connect.WithGRPC() or connect.WithGRPCWeb() options.
The URL supplied here should be the base URL for the Connect or gRPC server (for example, http://api.acme.com or https://acme.com/grpc).
type RunCommandServiceHandler ¶
type RunCommandServiceHandler interface {
RunCommand(context.Context, *connect_go.Request[v2.RunCommandRequest]) (*connect_go.Response[v2.RunCommandResponse], error)
}
RunCommandServiceHandler is an implementation of the api.v2.RunCommandService service.
type UnimplementedGetRunnerServiceHandler ¶
type UnimplementedGetRunnerServiceHandler struct{}
UnimplementedGetRunnerServiceHandler returns CodeUnimplemented from all methods.
func (UnimplementedGetRunnerServiceHandler) GetRunner ¶
func (UnimplementedGetRunnerServiceHandler) GetRunner(context.Context, *connect_go.Request[v2.GetRunnerRequest]) (*connect_go.Response[v2.GetRunnerResponse], error)
type UnimplementedReleaseRunnerServiceHandler ¶
type UnimplementedReleaseRunnerServiceHandler struct{}
UnimplementedReleaseRunnerServiceHandler returns CodeUnimplemented from all methods.
func (UnimplementedReleaseRunnerServiceHandler) ReleaseRunner ¶
func (UnimplementedReleaseRunnerServiceHandler) ReleaseRunner(context.Context, *connect_go.Request[v2.ReleaseRunnerRequest]) (*connect_go.Response[v2.ReleaseRunnerResponse], error)
type UnimplementedRunCommandServiceHandler ¶
type UnimplementedRunCommandServiceHandler struct{}
UnimplementedRunCommandServiceHandler returns CodeUnimplemented from all methods.
func (UnimplementedRunCommandServiceHandler) RunCommand ¶
func (UnimplementedRunCommandServiceHandler) RunCommand(context.Context, *connect_go.Request[v2.RunCommandRequest]) (*connect_go.Response[v2.RunCommandResponse], error)