bizconnect

package
v0.0.0-...-fefde71 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2024 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// MenuServiceAddMenuItemProcedure is the fully-qualified name of the MenuService's AddMenuItem RPC.
	MenuServiceAddMenuItemProcedure = "/restaurant.MenuService/AddMenuItem"
	// MenuServiceGetMenuItemProcedure is the fully-qualified name of the MenuService's GetMenuItem RPC.
	MenuServiceGetMenuItemProcedure = "/restaurant.MenuService/GetMenuItem"
	// MenuServiceListMenuItemsProcedure is the fully-qualified name of the MenuService's ListMenuItems
	// RPC.
	MenuServiceListMenuItemsProcedure = "/restaurant.MenuService/ListMenuItems"
)

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 (
	// RestaurantServiceCreateRestaurantProcedure is the fully-qualified name of the RestaurantService's
	// CreateRestaurant RPC.
	RestaurantServiceCreateRestaurantProcedure = "/restaurant.RestaurantService/CreateRestaurant"
	// RestaurantServiceListRestaurantsProcedure is the fully-qualified name of the RestaurantService's
	// ListRestaurants RPC.
	RestaurantServiceListRestaurantsProcedure = "/restaurant.RestaurantService/ListRestaurants"
	// RestaurantServiceGetRestaurantProcedure is the fully-qualified name of the RestaurantService's
	// GetRestaurant RPC.
	RestaurantServiceGetRestaurantProcedure = "/restaurant.RestaurantService/GetRestaurant"
	// RestaurantServiceListRestaurantsNonStreamProcedure is the fully-qualified name of the
	// RestaurantService's ListRestaurantsNonStream RPC.
	RestaurantServiceListRestaurantsNonStreamProcedure = "/restaurant.RestaurantService/ListRestaurantsNonStream"
	// RestaurantServicePlaceOrderProcedure is the fully-qualified name of the RestaurantService's
	// PlaceOrder RPC.
	RestaurantServicePlaceOrderProcedure = "/restaurant.RestaurantService/PlaceOrder"
	// RestaurantServiceListOrdersProcedure is the fully-qualified name of the RestaurantService's
	// ListOrders RPC.
	RestaurantServiceListOrdersProcedure = "/restaurant.RestaurantService/ListOrders"
)

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 (
	// MenuServiceName is the fully-qualified name of the MenuService service.
	MenuServiceName = "restaurant.MenuService"
)
View Source
const (
	// RestaurantServiceName is the fully-qualified name of the RestaurantService service.
	RestaurantServiceName = "restaurant.RestaurantService"
)

Variables

This section is empty.

Functions

func NewMenuServiceHandler

func NewMenuServiceHandler(svc MenuServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)

NewMenuServiceHandler 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 NewRestaurantServiceHandler

func NewRestaurantServiceHandler(svc RestaurantServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)

NewRestaurantServiceHandler 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

MenuServiceClient is a client for the restaurant.MenuService service.

func NewMenuServiceClient

func NewMenuServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) MenuServiceClient

NewMenuServiceClient constructs a client for the restaurant.MenuService 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).

MenuServiceHandler is an implementation of the restaurant.MenuService service.

type RestaurantServiceClient

RestaurantServiceClient is a client for the restaurant.RestaurantService service.

func NewRestaurantServiceClient

func NewRestaurantServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) RestaurantServiceClient

NewRestaurantServiceClient constructs a client for the restaurant.RestaurantService 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 UnimplementedMenuServiceHandler

type UnimplementedMenuServiceHandler struct{}

UnimplementedMenuServiceHandler returns CodeUnimplemented from all methods.

type UnimplementedRestaurantServiceHandler

type UnimplementedRestaurantServiceHandler struct{}

UnimplementedRestaurantServiceHandler returns CodeUnimplemented from all methods.

Jump to

Keyboard shortcuts

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