Documentation ¶
Index ¶
- Constants
- func NewAuthenticationServiceHandler(svc AuthenticationServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)
- func NewAutocompleteServiceHandler(svc AutocompleteServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)
- func NewProfileServiceHandler(svc ProfileServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)
- func NewRegistrationServiceHandler(svc RegistrationServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)
- func NewSocializeServiceHandler(svc SocializeServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)
- type AuthenticationServiceClient
- type AuthenticationServiceHandler
- type AutocompleteServiceClient
- type AutocompleteServiceHandler
- type ProfileServiceClient
- type ProfileServiceHandler
- type RegistrationServiceClient
- type RegistrationServiceHandler
- type SocializeServiceClient
- type SocializeServiceHandler
- type UnimplementedAuthenticationServiceHandler
- func (UnimplementedAuthenticationServiceHandler) ChangePassword(context.Context, *connect.Request[user_service.ChangePasswordRequest]) (*connect.Response[user_service.ChangePasswordResponse], error)
- func (UnimplementedAuthenticationServiceHandler) GetAPIKey(context.Context, *connect.Request[user_service.GetAPIKeyRequest]) (*connect.Response[user_service.GetAPIKeyResponse], error)
- func (UnimplementedAuthenticationServiceHandler) GetSignedCookie(context.Context, *connect.Request[user_service.GetSignedCookieRequest]) (*connect.Response[user_service.SignedCookieResponse], error)
- func (UnimplementedAuthenticationServiceHandler) GetSocketToken(context.Context, *connect.Request[user_service.SocketTokenRequest]) (*connect.Response[user_service.SocketTokenResponse], error)
- func (UnimplementedAuthenticationServiceHandler) InstallSignedCookie(context.Context, *connect.Request[user_service.SignedCookieResponse]) (*connect.Response[user_service.InstallSignedCookieResponse], error)
- func (UnimplementedAuthenticationServiceHandler) Login(context.Context, *connect.Request[user_service.UserLoginRequest]) (*connect.Response[user_service.LoginResponse], error)
- func (UnimplementedAuthenticationServiceHandler) Logout(context.Context, *connect.Request[user_service.UserLogoutRequest]) (*connect.Response[user_service.LogoutResponse], error)
- func (UnimplementedAuthenticationServiceHandler) NotifyAccountClosure(context.Context, *connect.Request[user_service.NotifyAccountClosureRequest]) (*connect.Response[user_service.NotifyAccountClosureResponse], error)
- func (UnimplementedAuthenticationServiceHandler) ResetPasswordStep1(context.Context, *connect.Request[user_service.ResetPasswordRequestStep1]) (*connect.Response[user_service.ResetPasswordResponse], error)
- func (UnimplementedAuthenticationServiceHandler) ResetPasswordStep2(context.Context, *connect.Request[user_service.ResetPasswordRequestStep2]) (*connect.Response[user_service.ResetPasswordResponse], error)
- type UnimplementedAutocompleteServiceHandler
- type UnimplementedProfileServiceHandler
- func (UnimplementedProfileServiceHandler) GetBriefProfiles(context.Context, *connect.Request[user_service.BriefProfilesRequest]) (*connect.Response[user_service.BriefProfilesResponse], error)
- func (UnimplementedProfileServiceHandler) GetPersonalInfo(context.Context, *connect.Request[user_service.PersonalInfoRequest]) (*connect.Response[user_service.PersonalInfoResponse], error)
- func (UnimplementedProfileServiceHandler) GetProfile(context.Context, *connect.Request[user_service.ProfileRequest]) (*connect.Response[user_service.ProfileResponse], error)
- func (UnimplementedProfileServiceHandler) GetRatings(context.Context, *connect.Request[user_service.RatingsRequest]) (*connect.Response[user_service.RatingsResponse], error)
- func (UnimplementedProfileServiceHandler) GetStats(context.Context, *connect.Request[user_service.StatsRequest]) (*connect.Response[user_service.StatsResponse], error)
- func (UnimplementedProfileServiceHandler) RemoveAvatar(context.Context, *connect.Request[user_service.RemoveAvatarRequest]) (*connect.Response[user_service.RemoveAvatarResponse], error)
- func (UnimplementedProfileServiceHandler) UpdateAvatar(context.Context, *connect.Request[user_service.UpdateAvatarRequest]) (*connect.Response[user_service.UpdateAvatarResponse], error)
- func (UnimplementedProfileServiceHandler) UpdatePersonalInfo(context.Context, *connect.Request[user_service.UpdatePersonalInfoRequest]) (*connect.Response[user_service.UpdatePersonalInfoResponse], error)
- type UnimplementedRegistrationServiceHandler
- type UnimplementedSocializeServiceHandler
- func (UnimplementedSocializeServiceHandler) AddBlock(context.Context, *connect.Request[user_service.AddBlockRequest]) (*connect.Response[user_service.OKResponse], error)
- func (UnimplementedSocializeServiceHandler) AddFollow(context.Context, *connect.Request[user_service.AddFollowRequest]) (*connect.Response[user_service.OKResponse], error)
- func (UnimplementedSocializeServiceHandler) GetActiveChatChannels(context.Context, *connect.Request[user_service.GetActiveChatChannelsRequest]) (*connect.Response[user_service.ActiveChatChannels], error)
- func (UnimplementedSocializeServiceHandler) GetBlocks(context.Context, *connect.Request[user_service.GetBlocksRequest]) (*connect.Response[user_service.GetBlocksResponse], error)
- func (UnimplementedSocializeServiceHandler) GetChatsForChannel(context.Context, *connect.Request[user_service.GetChatsRequest]) (*connect.Response[ipc.ChatMessages], error)
- func (UnimplementedSocializeServiceHandler) GetFollows(context.Context, *connect.Request[user_service.GetFollowsRequest]) (*connect.Response[user_service.GetFollowsResponse], error)
- func (UnimplementedSocializeServiceHandler) GetFullBlocks(context.Context, *connect.Request[user_service.GetFullBlocksRequest]) (*connect.Response[user_service.GetFullBlocksResponse], error)
- func (UnimplementedSocializeServiceHandler) GetModList(context.Context, *connect.Request[user_service.GetModListRequest]) (*connect.Response[user_service.GetModListResponse], error)
- func (UnimplementedSocializeServiceHandler) RemoveBlock(context.Context, *connect.Request[user_service.RemoveBlockRequest]) (*connect.Response[user_service.OKResponse], error)
- func (UnimplementedSocializeServiceHandler) RemoveFollow(context.Context, *connect.Request[user_service.RemoveFollowRequest]) (*connect.Response[user_service.OKResponse], error)
Constants ¶
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" )
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 ¶
type ProfileServiceClient interface { GetRatings(context.Context, *connect.Request[user_service.RatingsRequest]) (*connect.Response[user_service.RatingsResponse], error) GetStats(context.Context, *connect.Request[user_service.StatsRequest]) (*connect.Response[user_service.StatsResponse], error) GetProfile(context.Context, *connect.Request[user_service.ProfileRequest]) (*connect.Response[user_service.ProfileResponse], error) GetPersonalInfo(context.Context, *connect.Request[user_service.PersonalInfoRequest]) (*connect.Response[user_service.PersonalInfoResponse], error) UpdatePersonalInfo(context.Context, *connect.Request[user_service.UpdatePersonalInfoRequest]) (*connect.Response[user_service.UpdatePersonalInfoResponse], error) UpdateAvatar(context.Context, *connect.Request[user_service.UpdateAvatarRequest]) (*connect.Response[user_service.UpdateAvatarResponse], error) RemoveAvatar(context.Context, *connect.Request[user_service.RemoveAvatarRequest]) (*connect.Response[user_service.RemoveAvatarResponse], error) GetBriefProfiles(context.Context, *connect.Request[user_service.BriefProfilesRequest]) (*connect.Response[user_service.BriefProfilesResponse], error) }
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 ProfileServiceHandler ¶
type ProfileServiceHandler interface { GetRatings(context.Context, *connect.Request[user_service.RatingsRequest]) (*connect.Response[user_service.RatingsResponse], error) GetStats(context.Context, *connect.Request[user_service.StatsRequest]) (*connect.Response[user_service.StatsResponse], error) GetProfile(context.Context, *connect.Request[user_service.ProfileRequest]) (*connect.Response[user_service.ProfileResponse], error) GetPersonalInfo(context.Context, *connect.Request[user_service.PersonalInfoRequest]) (*connect.Response[user_service.PersonalInfoResponse], error) UpdatePersonalInfo(context.Context, *connect.Request[user_service.UpdatePersonalInfoRequest]) (*connect.Response[user_service.UpdatePersonalInfoResponse], error) UpdateAvatar(context.Context, *connect.Request[user_service.UpdateAvatarRequest]) (*connect.Response[user_service.UpdateAvatarResponse], error) RemoveAvatar(context.Context, *connect.Request[user_service.RemoveAvatarRequest]) (*connect.Response[user_service.RemoveAvatarResponse], error) GetBriefProfiles(context.Context, *connect.Request[user_service.BriefProfilesRequest]) (*connect.Response[user_service.BriefProfilesResponse], error) }
ProfileServiceHandler is an implementation of the user_service.ProfileService service.
type RegistrationServiceClient ¶
type RegistrationServiceClient interface {
Register(context.Context, *connect.Request[user_service.UserRegistrationRequest]) (*connect.Response[user_service.RegistrationResponse], error)
}
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 ¶
type RegistrationServiceHandler interface {
Register(context.Context, *connect.Request[user_service.UserRegistrationRequest]) (*connect.Response[user_service.RegistrationResponse], error)
}
RegistrationServiceHandler is an implementation of the user_service.RegistrationService service.
type SocializeServiceClient ¶
type SocializeServiceClient interface { AddFollow(context.Context, *connect.Request[user_service.AddFollowRequest]) (*connect.Response[user_service.OKResponse], error) RemoveFollow(context.Context, *connect.Request[user_service.RemoveFollowRequest]) (*connect.Response[user_service.OKResponse], error) GetFollows(context.Context, *connect.Request[user_service.GetFollowsRequest]) (*connect.Response[user_service.GetFollowsResponse], error) AddBlock(context.Context, *connect.Request[user_service.AddBlockRequest]) (*connect.Response[user_service.OKResponse], error) RemoveBlock(context.Context, *connect.Request[user_service.RemoveBlockRequest]) (*connect.Response[user_service.OKResponse], error) GetBlocks(context.Context, *connect.Request[user_service.GetBlocksRequest]) (*connect.Response[user_service.GetBlocksResponse], error) // GetFullBlocks gets players who blocked us AND players we've blocked // together. GetFullBlocks(context.Context, *connect.Request[user_service.GetFullBlocksRequest]) (*connect.Response[user_service.GetFullBlocksResponse], error) GetActiveChatChannels(context.Context, *connect.Request[user_service.GetActiveChatChannelsRequest]) (*connect.Response[user_service.ActiveChatChannels], error) GetChatsForChannel(context.Context, *connect.Request[user_service.GetChatsRequest]) (*connect.Response[ipc.ChatMessages], error) GetModList(context.Context, *connect.Request[user_service.GetModListRequest]) (*connect.Response[user_service.GetModListResponse], error) }
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 ¶
type SocializeServiceHandler interface { AddFollow(context.Context, *connect.Request[user_service.AddFollowRequest]) (*connect.Response[user_service.OKResponse], error) RemoveFollow(context.Context, *connect.Request[user_service.RemoveFollowRequest]) (*connect.Response[user_service.OKResponse], error) GetFollows(context.Context, *connect.Request[user_service.GetFollowsRequest]) (*connect.Response[user_service.GetFollowsResponse], error) AddBlock(context.Context, *connect.Request[user_service.AddBlockRequest]) (*connect.Response[user_service.OKResponse], error) RemoveBlock(context.Context, *connect.Request[user_service.RemoveBlockRequest]) (*connect.Response[user_service.OKResponse], error) GetBlocks(context.Context, *connect.Request[user_service.GetBlocksRequest]) (*connect.Response[user_service.GetBlocksResponse], error) // GetFullBlocks gets players who blocked us AND players we've blocked // together. GetFullBlocks(context.Context, *connect.Request[user_service.GetFullBlocksRequest]) (*connect.Response[user_service.GetFullBlocksResponse], error) GetActiveChatChannels(context.Context, *connect.Request[user_service.GetActiveChatChannelsRequest]) (*connect.Response[user_service.ActiveChatChannels], error) GetChatsForChannel(context.Context, *connect.Request[user_service.GetChatsRequest]) (*connect.Response[ipc.ChatMessages], error) GetModList(context.Context, *connect.Request[user_service.GetModListRequest]) (*connect.Response[user_service.GetModListResponse], error) }
SocializeServiceHandler is an implementation of the user_service.SocializeService service.
type UnimplementedAuthenticationServiceHandler ¶
type UnimplementedAuthenticationServiceHandler struct{}
UnimplementedAuthenticationServiceHandler returns CodeUnimplemented from all methods.
func (UnimplementedAuthenticationServiceHandler) ChangePassword ¶
func (UnimplementedAuthenticationServiceHandler) ChangePassword(context.Context, *connect.Request[user_service.ChangePasswordRequest]) (*connect.Response[user_service.ChangePasswordResponse], error)
func (UnimplementedAuthenticationServiceHandler) GetAPIKey ¶
func (UnimplementedAuthenticationServiceHandler) GetAPIKey(context.Context, *connect.Request[user_service.GetAPIKeyRequest]) (*connect.Response[user_service.GetAPIKeyResponse], error)
func (UnimplementedAuthenticationServiceHandler) GetSignedCookie ¶
func (UnimplementedAuthenticationServiceHandler) GetSignedCookie(context.Context, *connect.Request[user_service.GetSignedCookieRequest]) (*connect.Response[user_service.SignedCookieResponse], error)
func (UnimplementedAuthenticationServiceHandler) GetSocketToken ¶
func (UnimplementedAuthenticationServiceHandler) GetSocketToken(context.Context, *connect.Request[user_service.SocketTokenRequest]) (*connect.Response[user_service.SocketTokenResponse], error)
func (UnimplementedAuthenticationServiceHandler) InstallSignedCookie ¶
func (UnimplementedAuthenticationServiceHandler) InstallSignedCookie(context.Context, *connect.Request[user_service.SignedCookieResponse]) (*connect.Response[user_service.InstallSignedCookieResponse], error)
func (UnimplementedAuthenticationServiceHandler) NotifyAccountClosure ¶
func (UnimplementedAuthenticationServiceHandler) NotifyAccountClosure(context.Context, *connect.Request[user_service.NotifyAccountClosureRequest]) (*connect.Response[user_service.NotifyAccountClosureResponse], error)
func (UnimplementedAuthenticationServiceHandler) ResetPasswordStep1 ¶
func (UnimplementedAuthenticationServiceHandler) ResetPasswordStep1(context.Context, *connect.Request[user_service.ResetPasswordRequestStep1]) (*connect.Response[user_service.ResetPasswordResponse], error)
func (UnimplementedAuthenticationServiceHandler) ResetPasswordStep2 ¶
func (UnimplementedAuthenticationServiceHandler) ResetPasswordStep2(context.Context, *connect.Request[user_service.ResetPasswordRequestStep2]) (*connect.Response[user_service.ResetPasswordResponse], error)
type UnimplementedAutocompleteServiceHandler ¶
type UnimplementedAutocompleteServiceHandler struct{}
UnimplementedAutocompleteServiceHandler returns CodeUnimplemented from all methods.
func (UnimplementedAutocompleteServiceHandler) GetCompletion ¶
func (UnimplementedAutocompleteServiceHandler) GetCompletion(context.Context, *connect.Request[user_service.UsernameSearchRequest]) (*connect.Response[user_service.UsernameSearchResponse], error)
type UnimplementedProfileServiceHandler ¶
type UnimplementedProfileServiceHandler struct{}
UnimplementedProfileServiceHandler returns CodeUnimplemented from all methods.
func (UnimplementedProfileServiceHandler) GetBriefProfiles ¶
func (UnimplementedProfileServiceHandler) GetBriefProfiles(context.Context, *connect.Request[user_service.BriefProfilesRequest]) (*connect.Response[user_service.BriefProfilesResponse], error)
func (UnimplementedProfileServiceHandler) GetPersonalInfo ¶
func (UnimplementedProfileServiceHandler) GetPersonalInfo(context.Context, *connect.Request[user_service.PersonalInfoRequest]) (*connect.Response[user_service.PersonalInfoResponse], error)
func (UnimplementedProfileServiceHandler) GetProfile ¶
func (UnimplementedProfileServiceHandler) GetProfile(context.Context, *connect.Request[user_service.ProfileRequest]) (*connect.Response[user_service.ProfileResponse], error)
func (UnimplementedProfileServiceHandler) GetRatings ¶
func (UnimplementedProfileServiceHandler) GetRatings(context.Context, *connect.Request[user_service.RatingsRequest]) (*connect.Response[user_service.RatingsResponse], error)
func (UnimplementedProfileServiceHandler) GetStats ¶
func (UnimplementedProfileServiceHandler) GetStats(context.Context, *connect.Request[user_service.StatsRequest]) (*connect.Response[user_service.StatsResponse], error)
func (UnimplementedProfileServiceHandler) RemoveAvatar ¶
func (UnimplementedProfileServiceHandler) RemoveAvatar(context.Context, *connect.Request[user_service.RemoveAvatarRequest]) (*connect.Response[user_service.RemoveAvatarResponse], error)
func (UnimplementedProfileServiceHandler) UpdateAvatar ¶
func (UnimplementedProfileServiceHandler) UpdateAvatar(context.Context, *connect.Request[user_service.UpdateAvatarRequest]) (*connect.Response[user_service.UpdateAvatarResponse], error)
func (UnimplementedProfileServiceHandler) UpdatePersonalInfo ¶
func (UnimplementedProfileServiceHandler) UpdatePersonalInfo(context.Context, *connect.Request[user_service.UpdatePersonalInfoRequest]) (*connect.Response[user_service.UpdatePersonalInfoResponse], error)
type UnimplementedRegistrationServiceHandler ¶
type UnimplementedRegistrationServiceHandler struct{}
UnimplementedRegistrationServiceHandler returns CodeUnimplemented from all methods.
type UnimplementedSocializeServiceHandler ¶
type UnimplementedSocializeServiceHandler struct{}
UnimplementedSocializeServiceHandler returns CodeUnimplemented from all methods.
func (UnimplementedSocializeServiceHandler) AddBlock ¶
func (UnimplementedSocializeServiceHandler) AddBlock(context.Context, *connect.Request[user_service.AddBlockRequest]) (*connect.Response[user_service.OKResponse], error)
func (UnimplementedSocializeServiceHandler) AddFollow ¶
func (UnimplementedSocializeServiceHandler) AddFollow(context.Context, *connect.Request[user_service.AddFollowRequest]) (*connect.Response[user_service.OKResponse], error)
func (UnimplementedSocializeServiceHandler) GetActiveChatChannels ¶
func (UnimplementedSocializeServiceHandler) GetActiveChatChannels(context.Context, *connect.Request[user_service.GetActiveChatChannelsRequest]) (*connect.Response[user_service.ActiveChatChannels], error)
func (UnimplementedSocializeServiceHandler) GetBlocks ¶
func (UnimplementedSocializeServiceHandler) GetBlocks(context.Context, *connect.Request[user_service.GetBlocksRequest]) (*connect.Response[user_service.GetBlocksResponse], error)
func (UnimplementedSocializeServiceHandler) GetChatsForChannel ¶
func (UnimplementedSocializeServiceHandler) GetChatsForChannel(context.Context, *connect.Request[user_service.GetChatsRequest]) (*connect.Response[ipc.ChatMessages], error)
func (UnimplementedSocializeServiceHandler) GetFollows ¶
func (UnimplementedSocializeServiceHandler) GetFollows(context.Context, *connect.Request[user_service.GetFollowsRequest]) (*connect.Response[user_service.GetFollowsResponse], error)
func (UnimplementedSocializeServiceHandler) GetFullBlocks ¶
func (UnimplementedSocializeServiceHandler) GetFullBlocks(context.Context, *connect.Request[user_service.GetFullBlocksRequest]) (*connect.Response[user_service.GetFullBlocksResponse], error)
func (UnimplementedSocializeServiceHandler) GetModList ¶
func (UnimplementedSocializeServiceHandler) GetModList(context.Context, *connect.Request[user_service.GetModListRequest]) (*connect.Response[user_service.GetModListResponse], error)
func (UnimplementedSocializeServiceHandler) RemoveBlock ¶
func (UnimplementedSocializeServiceHandler) RemoveBlock(context.Context, *connect.Request[user_service.RemoveBlockRequest]) (*connect.Response[user_service.OKResponse], error)
func (UnimplementedSocializeServiceHandler) RemoveFollow ¶
func (UnimplementedSocializeServiceHandler) RemoveFollow(context.Context, *connect.Request[user_service.RemoveFollowRequest]) (*connect.Response[user_service.OKResponse], error)