crosstestconnect

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ParentServiceName is the fully-qualified name of the ParentService service.
	ParentServiceName = "buf.knit.crosstest.ParentService"
	// ChildServiceName is the fully-qualified name of the ChildService service.
	ChildServiceName = "buf.knit.crosstest.ChildService"
	// RelationsServiceName is the fully-qualified name of the RelationsService service.
	RelationsServiceName = "buf.knit.crosstest.RelationsService"
)
View Source
const (
	// ParentServiceListParentsProcedure is the fully-qualified name of the ParentService's ListParents
	// RPC.
	ParentServiceListParentsProcedure = "/buf.knit.crosstest.ParentService/ListParents"
	// ParentServiceGetParentProcedure is the fully-qualified name of the ParentService's GetParent RPC.
	ParentServiceGetParentProcedure = "/buf.knit.crosstest.ParentService/GetParent"
	// ParentServiceCreateParentProcedure is the fully-qualified name of the ParentService's
	// CreateParent RPC.
	ParentServiceCreateParentProcedure = "/buf.knit.crosstest.ParentService/CreateParent"
	// ParentServiceUpdateParentProcedure is the fully-qualified name of the ParentService's
	// UpdateParent RPC.
	ParentServiceUpdateParentProcedure = "/buf.knit.crosstest.ParentService/UpdateParent"
	// ParentServiceDeleteParentProcedure is the fully-qualified name of the ParentService's
	// DeleteParent RPC.
	ParentServiceDeleteParentProcedure = "/buf.knit.crosstest.ParentService/DeleteParent"
	// ChildServiceListChildrenProcedure is the fully-qualified name of the ChildService's ListChildren
	// RPC.
	ChildServiceListChildrenProcedure = "/buf.knit.crosstest.ChildService/ListChildren"
	// ChildServiceGetChildProcedure is the fully-qualified name of the ChildService's GetChild RPC.
	ChildServiceGetChildProcedure = "/buf.knit.crosstest.ChildService/GetChild"
	// ChildServiceCreateChildProcedure is the fully-qualified name of the ChildService's CreateChild
	// RPC.
	ChildServiceCreateChildProcedure = "/buf.knit.crosstest.ChildService/CreateChild"
	// ChildServiceUpdateChildProcedure is the fully-qualified name of the ChildService's UpdateChild
	// RPC.
	ChildServiceUpdateChildProcedure = "/buf.knit.crosstest.ChildService/UpdateChild"
	// ChildServiceDeleteChildProcedure is the fully-qualified name of the ChildService's DeleteChild
	// RPC.
	ChildServiceDeleteChildProcedure = "/buf.knit.crosstest.ChildService/DeleteChild"
	// RelationsServiceGetChildParentProcedure is the fully-qualified name of the RelationsService's
	// GetChildParent RPC.
	RelationsServiceGetChildParentProcedure = "/buf.knit.crosstest.RelationsService/GetChildParent"
	// RelationsServiceGetParentChildrenProcedure is the fully-qualified name of the RelationsService's
	// GetParentChildren RPC.
	RelationsServiceGetParentChildrenProcedure = "/buf.knit.crosstest.RelationsService/GetParentChildren"
)

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.

Variables

This section is empty.

Functions

func NewChildServiceHandler

func NewChildServiceHandler(svc ChildServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)

NewChildServiceHandler 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 NewParentServiceHandler

func NewParentServiceHandler(svc ParentServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)

NewParentServiceHandler 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 NewRelationsServiceHandler

func NewRelationsServiceHandler(svc RelationsServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)

NewRelationsServiceHandler 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 ChildServiceClient

ChildServiceClient is a client for the buf.knit.crosstest.ChildService service.

func NewChildServiceClient

func NewChildServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) ChildServiceClient

NewChildServiceClient constructs a client for the buf.knit.crosstest.ChildService 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 ParentServiceClient

ParentServiceClient is a client for the buf.knit.crosstest.ParentService service.

func NewParentServiceClient

func NewParentServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) ParentServiceClient

NewParentServiceClient constructs a client for the buf.knit.crosstest.ParentService 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 RelationsServiceClient

RelationsServiceClient is a client for the buf.knit.crosstest.RelationsService service.

func NewRelationsServiceClient

func NewRelationsServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) RelationsServiceClient

NewRelationsServiceClient constructs a client for the buf.knit.crosstest.RelationsService 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 RelationsServiceHandler

RelationsServiceHandler is an implementation of the buf.knit.crosstest.RelationsService service.

type UnimplementedChildServiceHandler

type UnimplementedChildServiceHandler struct{}

UnimplementedChildServiceHandler returns CodeUnimplemented from all methods.

type UnimplementedParentServiceHandler

type UnimplementedParentServiceHandler struct{}

UnimplementedParentServiceHandler returns CodeUnimplemented from all methods.

type UnimplementedRelationsServiceHandler

type UnimplementedRelationsServiceHandler struct{}

UnimplementedRelationsServiceHandler returns CodeUnimplemented from all methods.

Jump to

Keyboard shortcuts

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