Documentation ¶
Index ¶
- Constants
- func NewNungwiServiceHandler(svc NungwiServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)
- type NungwiServiceClient
- type NungwiServiceHandler
- type UnimplementedNungwiServiceHandler
- func (UnimplementedNungwiServiceHandler) Check(context.Context, *connect.Request[v1alpha.CheckRequest]) (*connect.Response[v1alpha.CheckResponse], error)
- func (UnimplementedNungwiServiceHandler) DeleteSchema(context.Context, *connect.Request[v1alpha.DeleteSchemaRequest]) (*connect.Response[v1alpha.DeleteSchemaResponse], error)
- func (UnimplementedNungwiServiceHandler) DeleteTuples(context.Context, *connect.Request[v1alpha.DeleteTuplesRequest]) (*connect.Response[v1alpha.DeleteTuplesResponse], error)
- func (UnimplementedNungwiServiceHandler) GetSchema(context.Context, *connect.Request[v1alpha.GetSchemaRequest]) (*connect.Response[v1alpha.GetSchemaResponse], error)
- func (UnimplementedNungwiServiceHandler) GetTuples(context.Context, *connect.Request[v1alpha.GetTuplesRequest]) (*connect.Response[v1alpha.GetTuplesResponse], error)
- func (UnimplementedNungwiServiceHandler) ListObjects(context.Context, *connect.Request[v1alpha.ListObjectsRequest]) (*connect.Response[v1alpha.ListObjectsResponse], error)
- func (UnimplementedNungwiServiceHandler) WriteSchema(context.Context, *connect.Request[v1alpha.WriteSchemaRequest]) (*connect.Response[v1alpha.WriteSchemaResponse], error)
- func (UnimplementedNungwiServiceHandler) WriteTuples(context.Context, *connect.Request[v1alpha.WriteTuplesRequest]) (*connect.Response[v1alpha.WriteTuplesResponse], error)
Constants ¶
const ( // NungwiServiceWriteSchemaProcedure is the fully-qualified name of the NungwiService's WriteSchema // RPC. NungwiServiceWriteSchemaProcedure = "/nungwi.v1alpha.NungwiService/WriteSchema" // NungwiServiceGetSchemaProcedure is the fully-qualified name of the NungwiService's GetSchema RPC. NungwiServiceGetSchemaProcedure = "/nungwi.v1alpha.NungwiService/GetSchema" // NungwiServiceDeleteSchemaProcedure is the fully-qualified name of the NungwiService's // DeleteSchema RPC. NungwiServiceDeleteSchemaProcedure = "/nungwi.v1alpha.NungwiService/DeleteSchema" // NungwiServiceWriteTuplesProcedure is the fully-qualified name of the NungwiService's WriteTuples // RPC. NungwiServiceWriteTuplesProcedure = "/nungwi.v1alpha.NungwiService/WriteTuples" // NungwiServiceGetTuplesProcedure is the fully-qualified name of the NungwiService's GetTuples RPC. NungwiServiceGetTuplesProcedure = "/nungwi.v1alpha.NungwiService/GetTuples" // NungwiServiceDeleteTuplesProcedure is the fully-qualified name of the NungwiService's // DeleteTuples RPC. NungwiServiceDeleteTuplesProcedure = "/nungwi.v1alpha.NungwiService/DeleteTuples" // NungwiServiceCheckProcedure is the fully-qualified name of the NungwiService's Check RPC. NungwiServiceCheckProcedure = "/nungwi.v1alpha.NungwiService/Check" // NungwiServiceListObjectsProcedure is the fully-qualified name of the NungwiService's ListObjects // RPC. NungwiServiceListObjectsProcedure = "/nungwi.v1alpha.NungwiService/ListObjects" )
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 (
// NungwiServiceName is the fully-qualified name of the NungwiService service.
NungwiServiceName = "nungwi.v1alpha.NungwiService"
)
Variables ¶
This section is empty.
Functions ¶
func NewNungwiServiceHandler ¶
func NewNungwiServiceHandler(svc NungwiServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)
NewNungwiServiceHandler 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 NungwiServiceClient ¶
type NungwiServiceClient interface { WriteSchema(context.Context, *connect.Request[v1alpha.WriteSchemaRequest]) (*connect.Response[v1alpha.WriteSchemaResponse], error) GetSchema(context.Context, *connect.Request[v1alpha.GetSchemaRequest]) (*connect.Response[v1alpha.GetSchemaResponse], error) DeleteSchema(context.Context, *connect.Request[v1alpha.DeleteSchemaRequest]) (*connect.Response[v1alpha.DeleteSchemaResponse], error) WriteTuples(context.Context, *connect.Request[v1alpha.WriteTuplesRequest]) (*connect.Response[v1alpha.WriteTuplesResponse], error) GetTuples(context.Context, *connect.Request[v1alpha.GetTuplesRequest]) (*connect.Response[v1alpha.GetTuplesResponse], error) DeleteTuples(context.Context, *connect.Request[v1alpha.DeleteTuplesRequest]) (*connect.Response[v1alpha.DeleteTuplesResponse], error) Check(context.Context, *connect.Request[v1alpha.CheckRequest]) (*connect.Response[v1alpha.CheckResponse], error) ListObjects(context.Context, *connect.Request[v1alpha.ListObjectsRequest]) (*connect.Response[v1alpha.ListObjectsResponse], error) }
NungwiServiceClient is a client for the nungwi.v1alpha.NungwiService service.
func NewNungwiServiceClient ¶
func NewNungwiServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) NungwiServiceClient
NewNungwiServiceClient constructs a client for the nungwi.v1alpha.NungwiService 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 NungwiServiceHandler ¶
type NungwiServiceHandler interface { WriteSchema(context.Context, *connect.Request[v1alpha.WriteSchemaRequest]) (*connect.Response[v1alpha.WriteSchemaResponse], error) GetSchema(context.Context, *connect.Request[v1alpha.GetSchemaRequest]) (*connect.Response[v1alpha.GetSchemaResponse], error) DeleteSchema(context.Context, *connect.Request[v1alpha.DeleteSchemaRequest]) (*connect.Response[v1alpha.DeleteSchemaResponse], error) WriteTuples(context.Context, *connect.Request[v1alpha.WriteTuplesRequest]) (*connect.Response[v1alpha.WriteTuplesResponse], error) GetTuples(context.Context, *connect.Request[v1alpha.GetTuplesRequest]) (*connect.Response[v1alpha.GetTuplesResponse], error) DeleteTuples(context.Context, *connect.Request[v1alpha.DeleteTuplesRequest]) (*connect.Response[v1alpha.DeleteTuplesResponse], error) Check(context.Context, *connect.Request[v1alpha.CheckRequest]) (*connect.Response[v1alpha.CheckResponse], error) ListObjects(context.Context, *connect.Request[v1alpha.ListObjectsRequest]) (*connect.Response[v1alpha.ListObjectsResponse], error) }
NungwiServiceHandler is an implementation of the nungwi.v1alpha.NungwiService service.
type UnimplementedNungwiServiceHandler ¶
type UnimplementedNungwiServiceHandler struct{}
UnimplementedNungwiServiceHandler returns CodeUnimplemented from all methods.
func (UnimplementedNungwiServiceHandler) Check ¶
func (UnimplementedNungwiServiceHandler) Check(context.Context, *connect.Request[v1alpha.CheckRequest]) (*connect.Response[v1alpha.CheckResponse], error)
func (UnimplementedNungwiServiceHandler) DeleteSchema ¶
func (UnimplementedNungwiServiceHandler) DeleteSchema(context.Context, *connect.Request[v1alpha.DeleteSchemaRequest]) (*connect.Response[v1alpha.DeleteSchemaResponse], error)
func (UnimplementedNungwiServiceHandler) DeleteTuples ¶
func (UnimplementedNungwiServiceHandler) DeleteTuples(context.Context, *connect.Request[v1alpha.DeleteTuplesRequest]) (*connect.Response[v1alpha.DeleteTuplesResponse], error)
func (UnimplementedNungwiServiceHandler) GetSchema ¶
func (UnimplementedNungwiServiceHandler) GetSchema(context.Context, *connect.Request[v1alpha.GetSchemaRequest]) (*connect.Response[v1alpha.GetSchemaResponse], error)
func (UnimplementedNungwiServiceHandler) GetTuples ¶
func (UnimplementedNungwiServiceHandler) GetTuples(context.Context, *connect.Request[v1alpha.GetTuplesRequest]) (*connect.Response[v1alpha.GetTuplesResponse], error)
func (UnimplementedNungwiServiceHandler) ListObjects ¶
func (UnimplementedNungwiServiceHandler) ListObjects(context.Context, *connect.Request[v1alpha.ListObjectsRequest]) (*connect.Response[v1alpha.ListObjectsResponse], error)
func (UnimplementedNungwiServiceHandler) WriteSchema ¶
func (UnimplementedNungwiServiceHandler) WriteSchema(context.Context, *connect.Request[v1alpha.WriteSchemaRequest]) (*connect.Response[v1alpha.WriteSchemaResponse], error)
func (UnimplementedNungwiServiceHandler) WriteTuples ¶
func (UnimplementedNungwiServiceHandler) WriteTuples(context.Context, *connect.Request[v1alpha.WriteTuplesRequest]) (*connect.Response[v1alpha.WriteTuplesResponse], error)