Documentation ¶
Index ¶
- Constants
- func NewRunnerServiceHandler(svc RunnerServiceHandler, opts ...connect_go.HandlerOption) (string, http.Handler)
- type RunnerServiceClient
- type RunnerServiceHandler
- type UnimplementedRunnerServiceHandler
- func (UnimplementedRunnerServiceHandler) CreateSession(context.Context, *connect_go.Request[v1.CreateSessionRequest]) (*connect_go.Response[v1.CreateSessionResponse], error)
- func (UnimplementedRunnerServiceHandler) DeleteSession(context.Context, *connect_go.Request[v1.DeleteSessionRequest]) (*connect_go.Response[v1.DeleteSessionResponse], error)
- func (UnimplementedRunnerServiceHandler) Execute(context.Context, *connect_go.BidiStream[v1.ExecuteRequest, v1.ExecuteResponse]) error
- func (UnimplementedRunnerServiceHandler) GetSession(context.Context, *connect_go.Request[v1.GetSessionRequest]) (*connect_go.Response[v1.GetSessionResponse], error)
- func (UnimplementedRunnerServiceHandler) ListSessions(context.Context, *connect_go.Request[v1.ListSessionsRequest]) (*connect_go.Response[v1.ListSessionsResponse], error)
Constants ¶
const ( // RunnerServiceCreateSessionProcedure is the fully-qualified name of the RunnerService's // CreateSession RPC. RunnerServiceCreateSessionProcedure = "/runme.runner.v1.RunnerService/CreateSession" // RunnerServiceGetSessionProcedure is the fully-qualified name of the RunnerService's GetSession // RPC. RunnerServiceGetSessionProcedure = "/runme.runner.v1.RunnerService/GetSession" // RunnerServiceListSessionsProcedure is the fully-qualified name of the RunnerService's // ListSessions RPC. RunnerServiceListSessionsProcedure = "/runme.runner.v1.RunnerService/ListSessions" // RunnerServiceDeleteSessionProcedure is the fully-qualified name of the RunnerService's // DeleteSession RPC. RunnerServiceDeleteSessionProcedure = "/runme.runner.v1.RunnerService/DeleteSession" // RunnerServiceExecuteProcedure is the fully-qualified name of the RunnerService's Execute RPC. RunnerServiceExecuteProcedure = "/runme.runner.v1.RunnerService/Execute" )
These constants are the fully-qualified names of the RPCs defined in this package. They're exposed at runtime as Spec.Procedure and as the final two segments of the HTTP route.
Note that these are different from the fully-qualified method names used by google.golang.org/protobuf/reflect/protoreflect. To convert from these constants to reflection-formatted method names, remove the leading slash and convert the remaining slash to a period.
const (
// RunnerServiceName is the fully-qualified name of the RunnerService service.
RunnerServiceName = "runme.runner.v1.RunnerService"
)
Variables ¶
This section is empty.
Functions ¶
func NewRunnerServiceHandler ¶
func NewRunnerServiceHandler(svc RunnerServiceHandler, opts ...connect_go.HandlerOption) (string, http.Handler)
NewRunnerServiceHandler 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 RunnerServiceClient ¶
type RunnerServiceClient interface { CreateSession(context.Context, *connect_go.Request[v1.CreateSessionRequest]) (*connect_go.Response[v1.CreateSessionResponse], error) GetSession(context.Context, *connect_go.Request[v1.GetSessionRequest]) (*connect_go.Response[v1.GetSessionResponse], error) ListSessions(context.Context, *connect_go.Request[v1.ListSessionsRequest]) (*connect_go.Response[v1.ListSessionsResponse], error) DeleteSession(context.Context, *connect_go.Request[v1.DeleteSessionRequest]) (*connect_go.Response[v1.DeleteSessionResponse], error) // Execute executes a program. Examine "ExecuteRequest" to explore // configuration options. // // It's a bidirectional stream RPC method. It expects the first // "ExecuteRequest" to contain details of a program to execute. // Subsequent "ExecuteRequest" should only contain "input_data" as // other fields will be ignored. Execute(context.Context) *connect_go.BidiStreamForClient[v1.ExecuteRequest, v1.ExecuteResponse] }
RunnerServiceClient is a client for the runme.runner.v1.RunnerService service.
func NewRunnerServiceClient ¶
func NewRunnerServiceClient(httpClient connect_go.HTTPClient, baseURL string, opts ...connect_go.ClientOption) RunnerServiceClient
NewRunnerServiceClient constructs a client for the runme.runner.v1.RunnerService 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 RunnerServiceHandler ¶
type RunnerServiceHandler interface { CreateSession(context.Context, *connect_go.Request[v1.CreateSessionRequest]) (*connect_go.Response[v1.CreateSessionResponse], error) GetSession(context.Context, *connect_go.Request[v1.GetSessionRequest]) (*connect_go.Response[v1.GetSessionResponse], error) ListSessions(context.Context, *connect_go.Request[v1.ListSessionsRequest]) (*connect_go.Response[v1.ListSessionsResponse], error) DeleteSession(context.Context, *connect_go.Request[v1.DeleteSessionRequest]) (*connect_go.Response[v1.DeleteSessionResponse], error) // Execute executes a program. Examine "ExecuteRequest" to explore // configuration options. // // It's a bidirectional stream RPC method. It expects the first // "ExecuteRequest" to contain details of a program to execute. // Subsequent "ExecuteRequest" should only contain "input_data" as // other fields will be ignored. Execute(context.Context, *connect_go.BidiStream[v1.ExecuteRequest, v1.ExecuteResponse]) error }
RunnerServiceHandler is an implementation of the runme.runner.v1.RunnerService service.
type UnimplementedRunnerServiceHandler ¶
type UnimplementedRunnerServiceHandler struct{}
UnimplementedRunnerServiceHandler returns CodeUnimplemented from all methods.
func (UnimplementedRunnerServiceHandler) CreateSession ¶
func (UnimplementedRunnerServiceHandler) CreateSession(context.Context, *connect_go.Request[v1.CreateSessionRequest]) (*connect_go.Response[v1.CreateSessionResponse], error)
func (UnimplementedRunnerServiceHandler) DeleteSession ¶
func (UnimplementedRunnerServiceHandler) DeleteSession(context.Context, *connect_go.Request[v1.DeleteSessionRequest]) (*connect_go.Response[v1.DeleteSessionResponse], error)
func (UnimplementedRunnerServiceHandler) Execute ¶
func (UnimplementedRunnerServiceHandler) Execute(context.Context, *connect_go.BidiStream[v1.ExecuteRequest, v1.ExecuteResponse]) error
func (UnimplementedRunnerServiceHandler) GetSession ¶
func (UnimplementedRunnerServiceHandler) GetSession(context.Context, *connect_go.Request[v1.GetSessionRequest]) (*connect_go.Response[v1.GetSessionResponse], error)
func (UnimplementedRunnerServiceHandler) ListSessions ¶
func (UnimplementedRunnerServiceHandler) ListSessions(context.Context, *connect_go.Request[v1.ListSessionsRequest]) (*connect_go.Response[v1.ListSessionsResponse], error)