user_serviceconnect

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2024 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// AuthenticationServiceName is the fully-qualified name of the AuthenticationService service.
	AuthenticationServiceName = "user_service.AuthenticationService"
	// RegistrationServiceName is the fully-qualified name of the RegistrationService service.
	RegistrationServiceName = "user_service.RegistrationService"
	// ProfileServiceName is the fully-qualified name of the ProfileService service.
	ProfileServiceName = "user_service.ProfileService"
	// AutocompleteServiceName is the fully-qualified name of the AutocompleteService service.
	AutocompleteServiceName = "user_service.AutocompleteService"
	// SocializeServiceName is the fully-qualified name of the SocializeService service.
	SocializeServiceName = "user_service.SocializeService"
)
View Source
const (
	// AuthenticationServiceLoginProcedure is the fully-qualified name of the AuthenticationService's
	// Login RPC.
	AuthenticationServiceLoginProcedure = "/user_service.AuthenticationService/Login"
	// AuthenticationServiceLogoutProcedure is the fully-qualified name of the AuthenticationService's
	// Logout RPC.
	AuthenticationServiceLogoutProcedure = "/user_service.AuthenticationService/Logout"
	// AuthenticationServiceGetSocketTokenProcedure is the fully-qualified name of the
	// AuthenticationService's GetSocketToken RPC.
	AuthenticationServiceGetSocketTokenProcedure = "/user_service.AuthenticationService/GetSocketToken"
	// AuthenticationServiceResetPasswordStep1Procedure is the fully-qualified name of the
	// AuthenticationService's ResetPasswordStep1 RPC.
	AuthenticationServiceResetPasswordStep1Procedure = "/user_service.AuthenticationService/ResetPasswordStep1"
	// AuthenticationServiceResetPasswordStep2Procedure is the fully-qualified name of the
	// AuthenticationService's ResetPasswordStep2 RPC.
	AuthenticationServiceResetPasswordStep2Procedure = "/user_service.AuthenticationService/ResetPasswordStep2"
	// AuthenticationServiceChangePasswordProcedure is the fully-qualified name of the
	// AuthenticationService's ChangePassword RPC.
	AuthenticationServiceChangePasswordProcedure = "/user_service.AuthenticationService/ChangePassword"
	// AuthenticationServiceNotifyAccountClosureProcedure is the fully-qualified name of the
	// AuthenticationService's NotifyAccountClosure RPC.
	AuthenticationServiceNotifyAccountClosureProcedure = "/user_service.AuthenticationService/NotifyAccountClosure"
	// AuthenticationServiceGetSignedCookieProcedure is the fully-qualified name of the
	// AuthenticationService's GetSignedCookie RPC.
	AuthenticationServiceGetSignedCookieProcedure = "/user_service.AuthenticationService/GetSignedCookie"
	// AuthenticationServiceInstallSignedCookieProcedure is the fully-qualified name of the
	// AuthenticationService's InstallSignedCookie RPC.
	AuthenticationServiceInstallSignedCookieProcedure = "/user_service.AuthenticationService/InstallSignedCookie"
	// AuthenticationServiceGetAPIKeyProcedure is the fully-qualified name of the
	// AuthenticationService's GetAPIKey RPC.
	AuthenticationServiceGetAPIKeyProcedure = "/user_service.AuthenticationService/GetAPIKey"
	// RegistrationServiceRegisterProcedure is the fully-qualified name of the RegistrationService's
	// Register RPC.
	RegistrationServiceRegisterProcedure = "/user_service.RegistrationService/Register"
	// ProfileServiceGetRatingsProcedure is the fully-qualified name of the ProfileService's GetRatings
	// RPC.
	ProfileServiceGetRatingsProcedure = "/user_service.ProfileService/GetRatings"
	// ProfileServiceGetStatsProcedure is the fully-qualified name of the ProfileService's GetStats RPC.
	ProfileServiceGetStatsProcedure = "/user_service.ProfileService/GetStats"
	// ProfileServiceGetProfileProcedure is the fully-qualified name of the ProfileService's GetProfile
	// RPC.
	ProfileServiceGetProfileProcedure = "/user_service.ProfileService/GetProfile"
	// ProfileServiceGetPersonalInfoProcedure is the fully-qualified name of the ProfileService's
	// GetPersonalInfo RPC.
	ProfileServiceGetPersonalInfoProcedure = "/user_service.ProfileService/GetPersonalInfo"
	// ProfileServiceUpdatePersonalInfoProcedure is the fully-qualified name of the ProfileService's
	// UpdatePersonalInfo RPC.
	ProfileServiceUpdatePersonalInfoProcedure = "/user_service.ProfileService/UpdatePersonalInfo"
	// ProfileServiceUpdateAvatarProcedure is the fully-qualified name of the ProfileService's
	// UpdateAvatar RPC.
	ProfileServiceUpdateAvatarProcedure = "/user_service.ProfileService/UpdateAvatar"
	// ProfileServiceRemoveAvatarProcedure is the fully-qualified name of the ProfileService's
	// RemoveAvatar RPC.
	ProfileServiceRemoveAvatarProcedure = "/user_service.ProfileService/RemoveAvatar"
	// ProfileServiceGetBriefProfilesProcedure is the fully-qualified name of the ProfileService's
	// GetBriefProfiles RPC.
	ProfileServiceGetBriefProfilesProcedure = "/user_service.ProfileService/GetBriefProfiles"
	// AutocompleteServiceGetCompletionProcedure is the fully-qualified name of the
	// AutocompleteService's GetCompletion RPC.
	AutocompleteServiceGetCompletionProcedure = "/user_service.AutocompleteService/GetCompletion"
	// SocializeServiceAddFollowProcedure is the fully-qualified name of the SocializeService's
	// AddFollow RPC.
	SocializeServiceAddFollowProcedure = "/user_service.SocializeService/AddFollow"
	// SocializeServiceRemoveFollowProcedure is the fully-qualified name of the SocializeService's
	// RemoveFollow RPC.
	SocializeServiceRemoveFollowProcedure = "/user_service.SocializeService/RemoveFollow"
	// SocializeServiceGetFollowsProcedure is the fully-qualified name of the SocializeService's
	// GetFollows RPC.
	SocializeServiceGetFollowsProcedure = "/user_service.SocializeService/GetFollows"
	// SocializeServiceAddBlockProcedure is the fully-qualified name of the SocializeService's AddBlock
	// RPC.
	SocializeServiceAddBlockProcedure = "/user_service.SocializeService/AddBlock"
	// SocializeServiceRemoveBlockProcedure is the fully-qualified name of the SocializeService's
	// RemoveBlock RPC.
	SocializeServiceRemoveBlockProcedure = "/user_service.SocializeService/RemoveBlock"
	// SocializeServiceGetBlocksProcedure is the fully-qualified name of the SocializeService's
	// GetBlocks RPC.
	SocializeServiceGetBlocksProcedure = "/user_service.SocializeService/GetBlocks"
	// SocializeServiceGetFullBlocksProcedure is the fully-qualified name of the SocializeService's
	// GetFullBlocks RPC.
	SocializeServiceGetFullBlocksProcedure = "/user_service.SocializeService/GetFullBlocks"
	// SocializeServiceGetActiveChatChannelsProcedure is the fully-qualified name of the
	// SocializeService's GetActiveChatChannels RPC.
	SocializeServiceGetActiveChatChannelsProcedure = "/user_service.SocializeService/GetActiveChatChannels"
	// SocializeServiceGetChatsForChannelProcedure is the fully-qualified name of the SocializeService's
	// GetChatsForChannel RPC.
	SocializeServiceGetChatsForChannelProcedure = "/user_service.SocializeService/GetChatsForChannel"
	// SocializeServiceGetModListProcedure is the fully-qualified name of the SocializeService's
	// GetModList RPC.
	SocializeServiceGetModListProcedure = "/user_service.SocializeService/GetModList"
)

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 NewAuthenticationServiceHandler

func NewAuthenticationServiceHandler(svc AuthenticationServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)

NewAuthenticationServiceHandler 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 NewAutocompleteServiceHandler

func NewAutocompleteServiceHandler(svc AutocompleteServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)

NewAutocompleteServiceHandler 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 NewProfileServiceHandler

func NewProfileServiceHandler(svc ProfileServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)

NewProfileServiceHandler 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 NewRegistrationServiceHandler

func NewRegistrationServiceHandler(svc RegistrationServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)

NewRegistrationServiceHandler 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 NewSocializeServiceHandler

func NewSocializeServiceHandler(svc SocializeServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)

NewSocializeServiceHandler 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 AuthenticationServiceClient

type AuthenticationServiceClient interface {
	Login(context.Context, *connect.Request[user_service.UserLoginRequest]) (*connect.Response[user_service.LoginResponse], error)
	Logout(context.Context, *connect.Request[user_service.UserLogoutRequest]) (*connect.Response[user_service.LogoutResponse], error)
	GetSocketToken(context.Context, *connect.Request[user_service.SocketTokenRequest]) (*connect.Response[user_service.SocketTokenResponse], error)
	ResetPasswordStep1(context.Context, *connect.Request[user_service.ResetPasswordRequestStep1]) (*connect.Response[user_service.ResetPasswordResponse], error)
	ResetPasswordStep2(context.Context, *connect.Request[user_service.ResetPasswordRequestStep2]) (*connect.Response[user_service.ResetPasswordResponse], error)
	ChangePassword(context.Context, *connect.Request[user_service.ChangePasswordRequest]) (*connect.Response[user_service.ChangePasswordResponse], error)
	NotifyAccountClosure(context.Context, *connect.Request[user_service.NotifyAccountClosureRequest]) (*connect.Response[user_service.NotifyAccountClosureResponse], error)
	// These two temporary endpoints for migrating everyone to naked domain:
	GetSignedCookie(context.Context, *connect.Request[user_service.GetSignedCookieRequest]) (*connect.Response[user_service.SignedCookieResponse], error)
	InstallSignedCookie(context.Context, *connect.Request[user_service.SignedCookieResponse]) (*connect.Response[user_service.InstallSignedCookieResponse], error)
	GetAPIKey(context.Context, *connect.Request[user_service.GetAPIKeyRequest]) (*connect.Response[user_service.GetAPIKeyResponse], error)
}

AuthenticationServiceClient is a client for the user_service.AuthenticationService service.

func NewAuthenticationServiceClient

func NewAuthenticationServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) AuthenticationServiceClient

NewAuthenticationServiceClient constructs a client for the user_service.AuthenticationService 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 AuthenticationServiceHandler

type AuthenticationServiceHandler interface {
	Login(context.Context, *connect.Request[user_service.UserLoginRequest]) (*connect.Response[user_service.LoginResponse], error)
	Logout(context.Context, *connect.Request[user_service.UserLogoutRequest]) (*connect.Response[user_service.LogoutResponse], error)
	GetSocketToken(context.Context, *connect.Request[user_service.SocketTokenRequest]) (*connect.Response[user_service.SocketTokenResponse], error)
	ResetPasswordStep1(context.Context, *connect.Request[user_service.ResetPasswordRequestStep1]) (*connect.Response[user_service.ResetPasswordResponse], error)
	ResetPasswordStep2(context.Context, *connect.Request[user_service.ResetPasswordRequestStep2]) (*connect.Response[user_service.ResetPasswordResponse], error)
	ChangePassword(context.Context, *connect.Request[user_service.ChangePasswordRequest]) (*connect.Response[user_service.ChangePasswordResponse], error)
	NotifyAccountClosure(context.Context, *connect.Request[user_service.NotifyAccountClosureRequest]) (*connect.Response[user_service.NotifyAccountClosureResponse], error)
	// These two temporary endpoints for migrating everyone to naked domain:
	GetSignedCookie(context.Context, *connect.Request[user_service.GetSignedCookieRequest]) (*connect.Response[user_service.SignedCookieResponse], error)
	InstallSignedCookie(context.Context, *connect.Request[user_service.SignedCookieResponse]) (*connect.Response[user_service.InstallSignedCookieResponse], error)
	GetAPIKey(context.Context, *connect.Request[user_service.GetAPIKeyRequest]) (*connect.Response[user_service.GetAPIKeyResponse], error)
}

AuthenticationServiceHandler is an implementation of the user_service.AuthenticationService service.

type AutocompleteServiceClient

type AutocompleteServiceClient interface {
	GetCompletion(context.Context, *connect.Request[user_service.UsernameSearchRequest]) (*connect.Response[user_service.UsernameSearchResponse], error)
}

AutocompleteServiceClient is a client for the user_service.AutocompleteService service.

func NewAutocompleteServiceClient

func NewAutocompleteServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) AutocompleteServiceClient

NewAutocompleteServiceClient constructs a client for the user_service.AutocompleteService 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 AutocompleteServiceHandler

type AutocompleteServiceHandler interface {
	GetCompletion(context.Context, *connect.Request[user_service.UsernameSearchRequest]) (*connect.Response[user_service.UsernameSearchResponse], error)
}

AutocompleteServiceHandler is an implementation of the user_service.AutocompleteService service.

type ProfileServiceClient

ProfileServiceClient is a client for the user_service.ProfileService service.

func NewProfileServiceClient

func NewProfileServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) ProfileServiceClient

NewProfileServiceClient constructs a client for the user_service.ProfileService 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 RegistrationServiceClient

RegistrationServiceClient is a client for the user_service.RegistrationService service.

func NewRegistrationServiceClient

func NewRegistrationServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) RegistrationServiceClient

NewRegistrationServiceClient constructs a client for the user_service.RegistrationService 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 RegistrationServiceHandler

RegistrationServiceHandler is an implementation of the user_service.RegistrationService service.

type SocializeServiceClient

SocializeServiceClient is a client for the user_service.SocializeService service.

func NewSocializeServiceClient

func NewSocializeServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) SocializeServiceClient

NewSocializeServiceClient constructs a client for the user_service.SocializeService 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 SocializeServiceHandler

SocializeServiceHandler is an implementation of the user_service.SocializeService service.

type UnimplementedAuthenticationServiceHandler

type UnimplementedAuthenticationServiceHandler struct{}

UnimplementedAuthenticationServiceHandler returns CodeUnimplemented from all methods.

type UnimplementedAutocompleteServiceHandler

type UnimplementedAutocompleteServiceHandler struct{}

UnimplementedAutocompleteServiceHandler returns CodeUnimplemented from all methods.

type UnimplementedProfileServiceHandler

type UnimplementedProfileServiceHandler struct{}

UnimplementedProfileServiceHandler returns CodeUnimplemented from all methods.

type UnimplementedRegistrationServiceHandler

type UnimplementedRegistrationServiceHandler struct{}

UnimplementedRegistrationServiceHandler returns CodeUnimplemented from all methods.

type UnimplementedSocializeServiceHandler

type UnimplementedSocializeServiceHandler struct{}

UnimplementedSocializeServiceHandler returns CodeUnimplemented from all methods.

Jump to

Keyboard shortcuts

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