apiv2connect

package
v2.0.0-...-34d8875 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 5, 2023 License: Apache-2.0 Imports: 6 Imported by: 1

Documentation

Index

Constants

View Source
const (
	// GetRunnerServiceName is the fully-qualified name of the GetRunnerService service.
	GetRunnerServiceName = "api.v2.GetRunnerService"
)
View Source
const (
	// ReleaseRunnerServiceName is the fully-qualified name of the ReleaseRunnerService service.
	ReleaseRunnerServiceName = "api.v2.ReleaseRunnerService"
)
View Source
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.

type UnimplementedReleaseRunnerServiceHandler

type UnimplementedReleaseRunnerServiceHandler struct{}

UnimplementedReleaseRunnerServiceHandler returns CodeUnimplemented from all methods.

type UnimplementedRunCommandServiceHandler

type UnimplementedRunCommandServiceHandler struct{}

UnimplementedRunCommandServiceHandler returns CodeUnimplemented from all methods.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL