unsafeconnect

package
v0.2.20 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2024 License: BSD-3-Clause-Clear Imports: 6 Imported by: 1

Documentation

Index

Constants

View Source
const (
	// UnsafeServiceUnsafeUpdateNamespaceProcedure is the fully-qualified name of the UnsafeService's
	// UnsafeUpdateNamespace RPC.
	UnsafeServiceUnsafeUpdateNamespaceProcedure = "/policy.unsafe.UnsafeService/UnsafeUpdateNamespace"
	// UnsafeServiceUnsafeReactivateNamespaceProcedure is the fully-qualified name of the
	// UnsafeService's UnsafeReactivateNamespace RPC.
	UnsafeServiceUnsafeReactivateNamespaceProcedure = "/policy.unsafe.UnsafeService/UnsafeReactivateNamespace"
	// UnsafeServiceUnsafeDeleteNamespaceProcedure is the fully-qualified name of the UnsafeService's
	// UnsafeDeleteNamespace RPC.
	UnsafeServiceUnsafeDeleteNamespaceProcedure = "/policy.unsafe.UnsafeService/UnsafeDeleteNamespace"
	// UnsafeServiceUnsafeUpdateAttributeProcedure is the fully-qualified name of the UnsafeService's
	// UnsafeUpdateAttribute RPC.
	UnsafeServiceUnsafeUpdateAttributeProcedure = "/policy.unsafe.UnsafeService/UnsafeUpdateAttribute"
	// UnsafeServiceUnsafeReactivateAttributeProcedure is the fully-qualified name of the
	// UnsafeService's UnsafeReactivateAttribute RPC.
	UnsafeServiceUnsafeReactivateAttributeProcedure = "/policy.unsafe.UnsafeService/UnsafeReactivateAttribute"
	// UnsafeServiceUnsafeDeleteAttributeProcedure is the fully-qualified name of the UnsafeService's
	// UnsafeDeleteAttribute RPC.
	UnsafeServiceUnsafeDeleteAttributeProcedure = "/policy.unsafe.UnsafeService/UnsafeDeleteAttribute"
	// UnsafeServiceUnsafeUpdateAttributeValueProcedure is the fully-qualified name of the
	// UnsafeService's UnsafeUpdateAttributeValue RPC.
	UnsafeServiceUnsafeUpdateAttributeValueProcedure = "/policy.unsafe.UnsafeService/UnsafeUpdateAttributeValue"
	// UnsafeServiceUnsafeReactivateAttributeValueProcedure is the fully-qualified name of the
	// UnsafeService's UnsafeReactivateAttributeValue RPC.
	UnsafeServiceUnsafeReactivateAttributeValueProcedure = "/policy.unsafe.UnsafeService/UnsafeReactivateAttributeValue"
	// UnsafeServiceUnsafeDeleteAttributeValueProcedure is the fully-qualified name of the
	// UnsafeService's UnsafeDeleteAttributeValue RPC.
	UnsafeServiceUnsafeDeleteAttributeValueProcedure = "/policy.unsafe.UnsafeService/UnsafeDeleteAttributeValue"
)

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 (
	// UnsafeServiceName is the fully-qualified name of the UnsafeService service.
	UnsafeServiceName = "policy.unsafe.UnsafeService"
)

Variables

This section is empty.

Functions

func NewUnsafeServiceHandler

func NewUnsafeServiceHandler(svc UnsafeServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)

NewUnsafeServiceHandler 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 UnimplementedUnsafeServiceHandler

type UnimplementedUnsafeServiceHandler struct{}

UnimplementedUnsafeServiceHandler returns CodeUnimplemented from all methods.

type UnsafeServiceClient

type UnsafeServiceClient interface {
	// --------------------------------------*
	// Namespace RPCs
	// ---------------------------------------
	UnsafeUpdateNamespace(context.Context, *connect.Request[unsafe.UnsafeUpdateNamespaceRequest]) (*connect.Response[unsafe.UnsafeUpdateNamespaceResponse], error)
	UnsafeReactivateNamespace(context.Context, *connect.Request[unsafe.UnsafeReactivateNamespaceRequest]) (*connect.Response[unsafe.UnsafeReactivateNamespaceResponse], error)
	UnsafeDeleteNamespace(context.Context, *connect.Request[unsafe.UnsafeDeleteNamespaceRequest]) (*connect.Response[unsafe.UnsafeDeleteNamespaceResponse], error)
	// --------------------------------------*
	// Attribute RPCs
	// ---------------------------------------
	UnsafeUpdateAttribute(context.Context, *connect.Request[unsafe.UnsafeUpdateAttributeRequest]) (*connect.Response[unsafe.UnsafeUpdateAttributeResponse], error)
	UnsafeReactivateAttribute(context.Context, *connect.Request[unsafe.UnsafeReactivateAttributeRequest]) (*connect.Response[unsafe.UnsafeReactivateAttributeResponse], error)
	UnsafeDeleteAttribute(context.Context, *connect.Request[unsafe.UnsafeDeleteAttributeRequest]) (*connect.Response[unsafe.UnsafeDeleteAttributeResponse], error)
	// --------------------------------------*
	// Value RPCs
	// ---------------------------------------
	UnsafeUpdateAttributeValue(context.Context, *connect.Request[unsafe.UnsafeUpdateAttributeValueRequest]) (*connect.Response[unsafe.UnsafeUpdateAttributeValueResponse], error)
	UnsafeReactivateAttributeValue(context.Context, *connect.Request[unsafe.UnsafeReactivateAttributeValueRequest]) (*connect.Response[unsafe.UnsafeReactivateAttributeValueResponse], error)
	UnsafeDeleteAttributeValue(context.Context, *connect.Request[unsafe.UnsafeDeleteAttributeValueRequest]) (*connect.Response[unsafe.UnsafeDeleteAttributeValueResponse], error)
}

UnsafeServiceClient is a client for the policy.unsafe.UnsafeService service.

func NewUnsafeServiceClient

func NewUnsafeServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) UnsafeServiceClient

NewUnsafeServiceClient constructs a client for the policy.unsafe.UnsafeService 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 UnsafeServiceHandler

type UnsafeServiceHandler interface {
	// --------------------------------------*
	// Namespace RPCs
	// ---------------------------------------
	UnsafeUpdateNamespace(context.Context, *connect.Request[unsafe.UnsafeUpdateNamespaceRequest]) (*connect.Response[unsafe.UnsafeUpdateNamespaceResponse], error)
	UnsafeReactivateNamespace(context.Context, *connect.Request[unsafe.UnsafeReactivateNamespaceRequest]) (*connect.Response[unsafe.UnsafeReactivateNamespaceResponse], error)
	UnsafeDeleteNamespace(context.Context, *connect.Request[unsafe.UnsafeDeleteNamespaceRequest]) (*connect.Response[unsafe.UnsafeDeleteNamespaceResponse], error)
	// --------------------------------------*
	// Attribute RPCs
	// ---------------------------------------
	UnsafeUpdateAttribute(context.Context, *connect.Request[unsafe.UnsafeUpdateAttributeRequest]) (*connect.Response[unsafe.UnsafeUpdateAttributeResponse], error)
	UnsafeReactivateAttribute(context.Context, *connect.Request[unsafe.UnsafeReactivateAttributeRequest]) (*connect.Response[unsafe.UnsafeReactivateAttributeResponse], error)
	UnsafeDeleteAttribute(context.Context, *connect.Request[unsafe.UnsafeDeleteAttributeRequest]) (*connect.Response[unsafe.UnsafeDeleteAttributeResponse], error)
	// --------------------------------------*
	// Value RPCs
	// ---------------------------------------
	UnsafeUpdateAttributeValue(context.Context, *connect.Request[unsafe.UnsafeUpdateAttributeValueRequest]) (*connect.Response[unsafe.UnsafeUpdateAttributeValueResponse], error)
	UnsafeReactivateAttributeValue(context.Context, *connect.Request[unsafe.UnsafeReactivateAttributeValueRequest]) (*connect.Response[unsafe.UnsafeReactivateAttributeValueResponse], error)
	UnsafeDeleteAttributeValue(context.Context, *connect.Request[unsafe.UnsafeDeleteAttributeValueRequest]) (*connect.Response[unsafe.UnsafeDeleteAttributeValueResponse], error)
}

UnsafeServiceHandler is an implementation of the policy.unsafe.UnsafeService service.

Jump to

Keyboard shortcuts

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