golinkv1connect

package
v0.0.0-...-27a683d Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// GolinkServiceCreateGolinkProcedure is the fully-qualified name of the GolinkService's
	// CreateGolink RPC.
	GolinkServiceCreateGolinkProcedure = "/golink.v1.GolinkService/CreateGolink"
	// GolinkServiceGetGolinkProcedure is the fully-qualified name of the GolinkService's GetGolink RPC.
	GolinkServiceGetGolinkProcedure = "/golink.v1.GolinkService/GetGolink"
	// GolinkServiceListGolinksProcedure is the fully-qualified name of the GolinkService's ListGolinks
	// RPC.
	GolinkServiceListGolinksProcedure = "/golink.v1.GolinkService/ListGolinks"
	// GolinkServiceListGolinksByUrlProcedure is the fully-qualified name of the GolinkService's
	// ListGolinksByUrl RPC.
	GolinkServiceListGolinksByUrlProcedure = "/golink.v1.GolinkService/ListGolinksByUrl"
	// GolinkServiceUpdateGolinkProcedure is the fully-qualified name of the GolinkService's
	// UpdateGolink RPC.
	GolinkServiceUpdateGolinkProcedure = "/golink.v1.GolinkService/UpdateGolink"
	// GolinkServiceDeleteGolinkProcedure is the fully-qualified name of the GolinkService's
	// DeleteGolink RPC.
	GolinkServiceDeleteGolinkProcedure = "/golink.v1.GolinkService/DeleteGolink"
	// GolinkServiceAddOwnerProcedure is the fully-qualified name of the GolinkService's AddOwner RPC.
	GolinkServiceAddOwnerProcedure = "/golink.v1.GolinkService/AddOwner"
	// GolinkServiceRemoveOwnerProcedure is the fully-qualified name of the GolinkService's RemoveOwner
	// RPC.
	GolinkServiceRemoveOwnerProcedure = "/golink.v1.GolinkService/RemoveOwner"
	// GolinkServiceGetMeProcedure is the fully-qualified name of the GolinkService's GetMe RPC.
	GolinkServiceGetMeProcedure = "/golink.v1.GolinkService/GetMe"
)

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.

View Source
const (
	// DebugServiceDebugProcedure is the fully-qualified name of the DebugService's Debug RPC.
	DebugServiceDebugProcedure = "/golink.v1.DebugService/Debug"
)

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.

View Source
const (
	// DebugServiceName is the fully-qualified name of the DebugService service.
	DebugServiceName = "golink.v1.DebugService"
)
View Source
const (
	// GolinkServiceName is the fully-qualified name of the GolinkService service.
	GolinkServiceName = "golink.v1.GolinkService"
)

Variables

This section is empty.

Functions

func NewDebugServiceHandler

func NewDebugServiceHandler(svc DebugServiceHandler, opts ...connect_go.HandlerOption) (string, http.Handler)

NewDebugServiceHandler 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 NewGolinkServiceHandler

func NewGolinkServiceHandler(svc GolinkServiceHandler, opts ...connect_go.HandlerOption) (string, http.Handler)

NewGolinkServiceHandler 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 DebugServiceClient

type DebugServiceClient interface {
	Debug(context.Context, *connect_go.Request[v1.DebugRequest]) (*connect_go.Response[v1.DebugResponse], error)
}

DebugServiceClient is a client for the golink.v1.DebugService service.

func NewDebugServiceClient

func NewDebugServiceClient(httpClient connect_go.HTTPClient, baseURL string, opts ...connect_go.ClientOption) DebugServiceClient

NewDebugServiceClient constructs a client for the golink.v1.DebugService 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 DebugServiceHandler

type DebugServiceHandler interface {
	Debug(context.Context, *connect_go.Request[v1.DebugRequest]) (*connect_go.Response[v1.DebugResponse], error)
}

DebugServiceHandler is an implementation of the golink.v1.DebugService service.

type GolinkServiceClient

GolinkServiceClient is a client for the golink.v1.GolinkService service.

func NewGolinkServiceClient

func NewGolinkServiceClient(httpClient connect_go.HTTPClient, baseURL string, opts ...connect_go.ClientOption) GolinkServiceClient

NewGolinkServiceClient constructs a client for the golink.v1.GolinkService 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 UnimplementedDebugServiceHandler

type UnimplementedDebugServiceHandler struct{}

UnimplementedDebugServiceHandler returns CodeUnimplemented from all methods.

type UnimplementedGolinkServiceHandler

type UnimplementedGolinkServiceHandler struct{}

UnimplementedGolinkServiceHandler returns CodeUnimplemented from all methods.

Jump to

Keyboard shortcuts

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