Documentation ¶
Index ¶
- Constants
- func NewKernelServiceHandler(svc KernelServiceHandler, opts ...connect_go.HandlerOption) (string, http.Handler)
- type KernelServiceClient
- type KernelServiceHandler
- type UnimplementedKernelServiceHandler
- func (UnimplementedKernelServiceHandler) DeleteSession(context.Context, *connect_go.Request[v1.DeleteSessionRequest]) (*connect_go.Response[v1.DeleteSessionResponse], error)
- func (UnimplementedKernelServiceHandler) Execute(context.Context, *connect_go.Request[v1.ExecuteRequest]) (*connect_go.Response[v1.ExecuteResponse], error)
- func (UnimplementedKernelServiceHandler) ExecuteStream(context.Context, *connect_go.Request[v1.ExecuteRequest], ...) error
- func (UnimplementedKernelServiceHandler) IO(context.Context, *connect_go.BidiStream[v1.IORequest, v1.IOResponse]) error
- func (UnimplementedKernelServiceHandler) Input(context.Context, *connect_go.Request[v1.InputRequest]) (*connect_go.Response[v1.InputResponse], error)
- func (UnimplementedKernelServiceHandler) ListSessions(context.Context, *connect_go.Request[v1.ListSessionsRequest]) (*connect_go.Response[v1.ListSessionsResponse], error)
- func (UnimplementedKernelServiceHandler) Output(context.Context, *connect_go.Request[v1.OutputRequest], ...) error
- func (UnimplementedKernelServiceHandler) PostSession(context.Context, *connect_go.Request[v1.PostSessionRequest]) (*connect_go.Response[v1.PostSessionResponse], error)
Constants ¶
const (
// KernelServiceName is the fully-qualified name of the KernelService service.
KernelServiceName = "runme.kernel.v1.KernelService"
)
Variables ¶
This section is empty.
Functions ¶
func NewKernelServiceHandler ¶
func NewKernelServiceHandler(svc KernelServiceHandler, opts ...connect_go.HandlerOption) (string, http.Handler)
NewKernelServiceHandler 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 KernelServiceClient ¶
type KernelServiceClient interface { PostSession(context.Context, *connect_go.Request[v1.PostSessionRequest]) (*connect_go.Response[v1.PostSessionResponse], error) DeleteSession(context.Context, *connect_go.Request[v1.DeleteSessionRequest]) (*connect_go.Response[v1.DeleteSessionResponse], error) ListSessions(context.Context, *connect_go.Request[v1.ListSessionsRequest]) (*connect_go.Response[v1.ListSessionsResponse], error) Execute(context.Context, *connect_go.Request[v1.ExecuteRequest]) (*connect_go.Response[v1.ExecuteResponse], error) ExecuteStream(context.Context, *connect_go.Request[v1.ExecuteRequest]) (*connect_go.ServerStreamForClient[v1.ExecuteResponse], error) Input(context.Context, *connect_go.Request[v1.InputRequest]) (*connect_go.Response[v1.InputResponse], error) Output(context.Context, *connect_go.Request[v1.OutputRequest]) (*connect_go.ServerStreamForClient[v1.OutputResponse], error) IO(context.Context) *connect_go.BidiStreamForClient[v1.IORequest, v1.IOResponse] }
KernelServiceClient is a client for the runme.kernel.v1.KernelService service.
func NewKernelServiceClient ¶
func NewKernelServiceClient(httpClient connect_go.HTTPClient, baseURL string, opts ...connect_go.ClientOption) KernelServiceClient
NewKernelServiceClient constructs a client for the runme.kernel.v1.KernelService 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 KernelServiceHandler ¶
type KernelServiceHandler interface { PostSession(context.Context, *connect_go.Request[v1.PostSessionRequest]) (*connect_go.Response[v1.PostSessionResponse], error) DeleteSession(context.Context, *connect_go.Request[v1.DeleteSessionRequest]) (*connect_go.Response[v1.DeleteSessionResponse], error) ListSessions(context.Context, *connect_go.Request[v1.ListSessionsRequest]) (*connect_go.Response[v1.ListSessionsResponse], error) Execute(context.Context, *connect_go.Request[v1.ExecuteRequest]) (*connect_go.Response[v1.ExecuteResponse], error) ExecuteStream(context.Context, *connect_go.Request[v1.ExecuteRequest], *connect_go.ServerStream[v1.ExecuteResponse]) error Input(context.Context, *connect_go.Request[v1.InputRequest]) (*connect_go.Response[v1.InputResponse], error) Output(context.Context, *connect_go.Request[v1.OutputRequest], *connect_go.ServerStream[v1.OutputResponse]) error IO(context.Context, *connect_go.BidiStream[v1.IORequest, v1.IOResponse]) error }
KernelServiceHandler is an implementation of the runme.kernel.v1.KernelService service.
type UnimplementedKernelServiceHandler ¶
type UnimplementedKernelServiceHandler struct{}
UnimplementedKernelServiceHandler returns CodeUnimplemented from all methods.
func (UnimplementedKernelServiceHandler) DeleteSession ¶
func (UnimplementedKernelServiceHandler) DeleteSession(context.Context, *connect_go.Request[v1.DeleteSessionRequest]) (*connect_go.Response[v1.DeleteSessionResponse], error)
func (UnimplementedKernelServiceHandler) Execute ¶
func (UnimplementedKernelServiceHandler) Execute(context.Context, *connect_go.Request[v1.ExecuteRequest]) (*connect_go.Response[v1.ExecuteResponse], error)
func (UnimplementedKernelServiceHandler) ExecuteStream ¶
func (UnimplementedKernelServiceHandler) ExecuteStream(context.Context, *connect_go.Request[v1.ExecuteRequest], *connect_go.ServerStream[v1.ExecuteResponse]) error
func (UnimplementedKernelServiceHandler) IO ¶
func (UnimplementedKernelServiceHandler) IO(context.Context, *connect_go.BidiStream[v1.IORequest, v1.IOResponse]) error
func (UnimplementedKernelServiceHandler) Input ¶
func (UnimplementedKernelServiceHandler) Input(context.Context, *connect_go.Request[v1.InputRequest]) (*connect_go.Response[v1.InputResponse], error)
func (UnimplementedKernelServiceHandler) ListSessions ¶
func (UnimplementedKernelServiceHandler) ListSessions(context.Context, *connect_go.Request[v1.ListSessionsRequest]) (*connect_go.Response[v1.ListSessionsResponse], error)
func (UnimplementedKernelServiceHandler) Output ¶
func (UnimplementedKernelServiceHandler) Output(context.Context, *connect_go.Request[v1.OutputRequest], *connect_go.ServerStream[v1.OutputResponse]) error
func (UnimplementedKernelServiceHandler) PostSession ¶
func (UnimplementedKernelServiceHandler) PostSession(context.Context, *connect_go.Request[v1.PostSessionRequest]) (*connect_go.Response[v1.PostSessionResponse], error)