roomsv1connect

package
v0.6.6 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2024 License: MIT Imports: 6 Imported by: 1

Documentation

Index

Constants

View Source
const (
	// RoomsServiceCreateRoomProcedure is the fully-qualified name of the RoomsService's CreateRoom RPC.
	RoomsServiceCreateRoomProcedure = "/connectrpc.rooms.v1.RoomsService/CreateRoom"
	// RoomsServiceRegisterUserInRoomProcedure is the fully-qualified name of the RoomsService's
	// RegisterUserInRoom RPC.
	RoomsServiceRegisterUserInRoomProcedure = "/connectrpc.rooms.v1.RoomsService/RegisterUserInRoom"
	// RoomsServiceBanUserFromRoomProcedure is the fully-qualified name of the RoomsService's
	// BanUserFromRoom RPC.
	RoomsServiceBanUserFromRoomProcedure = "/connectrpc.rooms.v1.RoomsService/BanUserFromRoom"
	// RoomsServiceStartMatchProcedure is the fully-qualified name of the RoomsService's StartMatch RPC.
	RoomsServiceStartMatchProcedure = "/connectrpc.rooms.v1.RoomsService/StartMatch"
	// RoomsServiceGetQuestionCountProcedure is the fully-qualified name of the RoomsService's
	// GetQuestionCount RPC.
	RoomsServiceGetQuestionCountProcedure = "/connectrpc.rooms.v1.RoomsService/GetQuestionCount"
	// RoomsServiceSubscribeRoomEventsProcedure is the fully-qualified name of the RoomsService's
	// SubscribeRoomEvents RPC.
	RoomsServiceSubscribeRoomEventsProcedure = "/connectrpc.rooms.v1.RoomsService/SubscribeRoomEvents"
	// RoomsServiceSubscribeAllRoomEventsProcedure is the fully-qualified name of the RoomsService's
	// SubscribeAllRoomEvents RPC.
	RoomsServiceSubscribeAllRoomEventsProcedure = "/connectrpc.rooms.v1.RoomsService/SubscribeAllRoomEvents"
	// RoomsServiceGetRoomProcedure is the fully-qualified name of the RoomsService's GetRoom RPC.
	RoomsServiceGetRoomProcedure = "/connectrpc.rooms.v1.RoomsService/GetRoom"
)

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 (
	// RoomsServiceName is the fully-qualified name of the RoomsService service.
	RoomsServiceName = "connectrpc.rooms.v1.RoomsService"
)

Variables

This section is empty.

Functions

func NewRoomsServiceHandler

func NewRoomsServiceHandler(svc RoomsServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)

NewRoomsServiceHandler 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 RoomsServiceClient

RoomsServiceClient is a client for the connectrpc.rooms.v1.RoomsService service.

func NewRoomsServiceClient

func NewRoomsServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) RoomsServiceClient

NewRoomsServiceClient constructs a client for the connectrpc.rooms.v1.RoomsService 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 RoomsServiceHandler

RoomsServiceHandler is an implementation of the connectrpc.rooms.v1.RoomsService service.

type UnimplementedRoomsServiceHandler

type UnimplementedRoomsServiceHandler struct{}

UnimplementedRoomsServiceHandler returns CodeUnimplemented from all methods.

func (UnimplementedRoomsServiceHandler) GetRoom added in v0.6.3

Jump to

Keyboard shortcuts

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