Documentation ¶
Index ¶
- Constants
- func NewConsoleServiceHandler(svc ConsoleServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)
- type ConsoleServiceClient
- type ConsoleServiceHandler
- type UnimplementedConsoleServiceHandler
- func (UnimplementedConsoleServiceHandler) Call(context.Context, *connect.Request[v1.CallRequest]) (*connect.Response[v1.CallResponse], error)
- func (UnimplementedConsoleServiceHandler) GetConfig(context.Context, *connect.Request[v11.GetConfigRequest]) (*connect.Response[v11.GetConfigResponse], error)
- func (UnimplementedConsoleServiceHandler) GetModules(context.Context, *connect.Request[v11.GetModulesRequest]) (*connect.Response[v11.GetModulesResponse], error)
- func (UnimplementedConsoleServiceHandler) GetSecret(context.Context, *connect.Request[v11.GetSecretRequest]) (*connect.Response[v11.GetSecretResponse], error)
- func (UnimplementedConsoleServiceHandler) GetTimeline(context.Context, *connect.Request[v12.GetTimelineRequest]) (*connect.Response[v12.GetTimelineResponse], error)
- func (UnimplementedConsoleServiceHandler) Ping(context.Context, *connect.Request[v1.PingRequest]) (*connect.Response[v1.PingResponse], error)
- func (UnimplementedConsoleServiceHandler) SetConfig(context.Context, *connect.Request[v11.SetConfigRequest]) (*connect.Response[v11.SetConfigResponse], error)
- func (UnimplementedConsoleServiceHandler) SetSecret(context.Context, *connect.Request[v11.SetSecretRequest]) (*connect.Response[v11.SetSecretResponse], error)
- func (UnimplementedConsoleServiceHandler) Status(context.Context, *connect.Request[v1.StatusRequest]) (*connect.Response[v1.StatusResponse], error)
- func (UnimplementedConsoleServiceHandler) StreamModules(context.Context, *connect.Request[v11.StreamModulesRequest], ...) error
- func (UnimplementedConsoleServiceHandler) StreamTimeline(context.Context, *connect.Request[v12.StreamTimelineRequest], ...) error
Constants ¶
const ( // ConsoleServicePingProcedure is the fully-qualified name of the ConsoleService's Ping RPC. ConsoleServicePingProcedure = "/xyz.block.ftl.console.v1.ConsoleService/Ping" // ConsoleServiceGetModulesProcedure is the fully-qualified name of the ConsoleService's GetModules // RPC. ConsoleServiceGetModulesProcedure = "/xyz.block.ftl.console.v1.ConsoleService/GetModules" // ConsoleServiceStreamModulesProcedure is the fully-qualified name of the ConsoleService's // StreamModules RPC. ConsoleServiceStreamModulesProcedure = "/xyz.block.ftl.console.v1.ConsoleService/StreamModules" // ConsoleServiceGetTimelineProcedure is the fully-qualified name of the ConsoleService's // GetTimeline RPC. ConsoleServiceGetTimelineProcedure = "/xyz.block.ftl.console.v1.ConsoleService/GetTimeline" // ConsoleServiceStreamTimelineProcedure is the fully-qualified name of the ConsoleService's // StreamTimeline RPC. ConsoleServiceStreamTimelineProcedure = "/xyz.block.ftl.console.v1.ConsoleService/StreamTimeline" // ConsoleServiceGetConfigProcedure is the fully-qualified name of the ConsoleService's GetConfig // RPC. ConsoleServiceGetConfigProcedure = "/xyz.block.ftl.console.v1.ConsoleService/GetConfig" // ConsoleServiceSetConfigProcedure is the fully-qualified name of the ConsoleService's SetConfig // RPC. ConsoleServiceSetConfigProcedure = "/xyz.block.ftl.console.v1.ConsoleService/SetConfig" // ConsoleServiceGetSecretProcedure is the fully-qualified name of the ConsoleService's GetSecret // RPC. ConsoleServiceGetSecretProcedure = "/xyz.block.ftl.console.v1.ConsoleService/GetSecret" // ConsoleServiceSetSecretProcedure is the fully-qualified name of the ConsoleService's SetSecret // RPC. ConsoleServiceSetSecretProcedure = "/xyz.block.ftl.console.v1.ConsoleService/SetSecret" // ConsoleServiceStatusProcedure is the fully-qualified name of the ConsoleService's Status RPC. ConsoleServiceStatusProcedure = "/xyz.block.ftl.console.v1.ConsoleService/Status" // ConsoleServiceCallProcedure is the fully-qualified name of the ConsoleService's Call RPC. ConsoleServiceCallProcedure = "/xyz.block.ftl.console.v1.ConsoleService/Call" )
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 (
// ConsoleServiceName is the fully-qualified name of the ConsoleService service.
ConsoleServiceName = "xyz.block.ftl.console.v1.ConsoleService"
)
Variables ¶
This section is empty.
Functions ¶
func NewConsoleServiceHandler ¶
func NewConsoleServiceHandler(svc ConsoleServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)
NewConsoleServiceHandler 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 ConsoleServiceClient ¶
type ConsoleServiceClient interface { // Ping service for readiness. Ping(context.Context, *connect.Request[v1.PingRequest]) (*connect.Response[v1.PingResponse], error) GetModules(context.Context, *connect.Request[v11.GetModulesRequest]) (*connect.Response[v11.GetModulesResponse], error) StreamModules(context.Context, *connect.Request[v11.StreamModulesRequest]) (*connect.ServerStreamForClient[v11.StreamModulesResponse], error) GetTimeline(context.Context, *connect.Request[v12.GetTimelineRequest]) (*connect.Response[v12.GetTimelineResponse], error) StreamTimeline(context.Context, *connect.Request[v12.StreamTimelineRequest]) (*connect.ServerStreamForClient[v12.StreamTimelineResponse], error) GetConfig(context.Context, *connect.Request[v11.GetConfigRequest]) (*connect.Response[v11.GetConfigResponse], error) SetConfig(context.Context, *connect.Request[v11.SetConfigRequest]) (*connect.Response[v11.SetConfigResponse], error) GetSecret(context.Context, *connect.Request[v11.GetSecretRequest]) (*connect.Response[v11.GetSecretResponse], error) SetSecret(context.Context, *connect.Request[v11.SetSecretRequest]) (*connect.Response[v11.SetSecretResponse], error) Status(context.Context, *connect.Request[v1.StatusRequest]) (*connect.Response[v1.StatusResponse], error) Call(context.Context, *connect.Request[v1.CallRequest]) (*connect.Response[v1.CallResponse], error) }
ConsoleServiceClient is a client for the xyz.block.ftl.console.v1.ConsoleService service.
func NewConsoleServiceClient ¶
func NewConsoleServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) ConsoleServiceClient
NewConsoleServiceClient constructs a client for the xyz.block.ftl.console.v1.ConsoleService 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 ConsoleServiceHandler ¶
type ConsoleServiceHandler interface { // Ping service for readiness. Ping(context.Context, *connect.Request[v1.PingRequest]) (*connect.Response[v1.PingResponse], error) GetModules(context.Context, *connect.Request[v11.GetModulesRequest]) (*connect.Response[v11.GetModulesResponse], error) StreamModules(context.Context, *connect.Request[v11.StreamModulesRequest], *connect.ServerStream[v11.StreamModulesResponse]) error GetTimeline(context.Context, *connect.Request[v12.GetTimelineRequest]) (*connect.Response[v12.GetTimelineResponse], error) StreamTimeline(context.Context, *connect.Request[v12.StreamTimelineRequest], *connect.ServerStream[v12.StreamTimelineResponse]) error GetConfig(context.Context, *connect.Request[v11.GetConfigRequest]) (*connect.Response[v11.GetConfigResponse], error) SetConfig(context.Context, *connect.Request[v11.SetConfigRequest]) (*connect.Response[v11.SetConfigResponse], error) GetSecret(context.Context, *connect.Request[v11.GetSecretRequest]) (*connect.Response[v11.GetSecretResponse], error) SetSecret(context.Context, *connect.Request[v11.SetSecretRequest]) (*connect.Response[v11.SetSecretResponse], error) Status(context.Context, *connect.Request[v1.StatusRequest]) (*connect.Response[v1.StatusResponse], error) Call(context.Context, *connect.Request[v1.CallRequest]) (*connect.Response[v1.CallResponse], error) }
ConsoleServiceHandler is an implementation of the xyz.block.ftl.console.v1.ConsoleService service.
type UnimplementedConsoleServiceHandler ¶
type UnimplementedConsoleServiceHandler struct{}
UnimplementedConsoleServiceHandler returns CodeUnimplemented from all methods.
func (UnimplementedConsoleServiceHandler) Call ¶
func (UnimplementedConsoleServiceHandler) Call(context.Context, *connect.Request[v1.CallRequest]) (*connect.Response[v1.CallResponse], error)
func (UnimplementedConsoleServiceHandler) GetConfig ¶
func (UnimplementedConsoleServiceHandler) GetConfig(context.Context, *connect.Request[v11.GetConfigRequest]) (*connect.Response[v11.GetConfigResponse], error)
func (UnimplementedConsoleServiceHandler) GetModules ¶
func (UnimplementedConsoleServiceHandler) GetModules(context.Context, *connect.Request[v11.GetModulesRequest]) (*connect.Response[v11.GetModulesResponse], error)
func (UnimplementedConsoleServiceHandler) GetSecret ¶
func (UnimplementedConsoleServiceHandler) GetSecret(context.Context, *connect.Request[v11.GetSecretRequest]) (*connect.Response[v11.GetSecretResponse], error)
func (UnimplementedConsoleServiceHandler) GetTimeline ¶
func (UnimplementedConsoleServiceHandler) GetTimeline(context.Context, *connect.Request[v12.GetTimelineRequest]) (*connect.Response[v12.GetTimelineResponse], error)
func (UnimplementedConsoleServiceHandler) Ping ¶
func (UnimplementedConsoleServiceHandler) Ping(context.Context, *connect.Request[v1.PingRequest]) (*connect.Response[v1.PingResponse], error)
func (UnimplementedConsoleServiceHandler) SetConfig ¶
func (UnimplementedConsoleServiceHandler) SetConfig(context.Context, *connect.Request[v11.SetConfigRequest]) (*connect.Response[v11.SetConfigResponse], error)
func (UnimplementedConsoleServiceHandler) SetSecret ¶
func (UnimplementedConsoleServiceHandler) SetSecret(context.Context, *connect.Request[v11.SetSecretRequest]) (*connect.Response[v11.SetSecretResponse], error)
func (UnimplementedConsoleServiceHandler) Status ¶
func (UnimplementedConsoleServiceHandler) Status(context.Context, *connect.Request[v1.StatusRequest]) (*connect.Response[v1.StatusResponse], error)
func (UnimplementedConsoleServiceHandler) StreamModules ¶
func (UnimplementedConsoleServiceHandler) StreamModules(context.Context, *connect.Request[v11.StreamModulesRequest], *connect.ServerStream[v11.StreamModulesResponse]) error
func (UnimplementedConsoleServiceHandler) StreamTimeline ¶
func (UnimplementedConsoleServiceHandler) StreamTimeline(context.Context, *connect.Request[v12.StreamTimelineRequest], *connect.ServerStream[v12.StreamTimelineResponse]) error