Documentation
¶
Overview ¶
Package auth is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Package auth is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Package auth is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func RegisterAccountHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterAccountHandlerClient(ctx context.Context, mux *runtime.ServeMux, client AccountClient) error
- func RegisterAccountHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterAccountHandlerServer(ctx context.Context, mux *runtime.ServeMux, server AccountServer) error
- func RegisterAccountServer(s grpc.ServiceRegistrar, srv AccountServer)
- func RegisterAuthHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterAuthHandlerClient(ctx context.Context, mux *runtime.ServeMux, client AuthClient) error
- func RegisterAuthHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterAuthHandlerServer(ctx context.Context, mux *runtime.ServeMux, server AuthServer) error
- func RegisterAuthServer(s grpc.ServiceRegistrar, srv AuthServer)
- func RegisterOAuth2Handler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterOAuth2HandlerClient(ctx context.Context, mux *runtime.ServeMux, client OAuth2Client) error
- func RegisterOAuth2HandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterOAuth2HandlerServer(ctx context.Context, mux *runtime.ServeMux, server OAuth2Server) error
- func RegisterOAuth2Server(s grpc.ServiceRegistrar, srv OAuth2Server)
- type AccountClient
- type AccountServer
- type ApplicationCreateRequest
- func (*ApplicationCreateRequest) Descriptor() ([]byte, []int)deprecated
- func (*ApplicationCreateRequest) ProtoMessage()
- func (x *ApplicationCreateRequest) ProtoReflect() protoreflect.Message
- func (x *ApplicationCreateRequest) Reset()
- func (x *ApplicationCreateRequest) String() string
- func (m *ApplicationCreateRequest) Validate() error
- func (m *ApplicationCreateRequest) ValidateAll() error
- type ApplicationCreateRequestMultiError
- type ApplicationCreateRequestValidationError
- func (e ApplicationCreateRequestValidationError) Cause() error
- func (e ApplicationCreateRequestValidationError) Error() string
- func (e ApplicationCreateRequestValidationError) ErrorName() string
- func (e ApplicationCreateRequestValidationError) Field() string
- func (e ApplicationCreateRequestValidationError) Key() bool
- func (e ApplicationCreateRequestValidationError) Reason() string
- type ApplicationCreateResponse
- func (*ApplicationCreateResponse) Descriptor() ([]byte, []int)deprecated
- func (*ApplicationCreateResponse) ProtoMessage()
- func (x *ApplicationCreateResponse) ProtoReflect() protoreflect.Message
- func (x *ApplicationCreateResponse) Reset()
- func (x *ApplicationCreateResponse) String() string
- func (m *ApplicationCreateResponse) Validate() error
- func (m *ApplicationCreateResponse) ValidateAll() error
- type ApplicationCreateResponseMultiError
- type ApplicationCreateResponseValidationError
- func (e ApplicationCreateResponseValidationError) Cause() error
- func (e ApplicationCreateResponseValidationError) Error() string
- func (e ApplicationCreateResponseValidationError) ErrorName() string
- func (e ApplicationCreateResponseValidationError) Field() string
- func (e ApplicationCreateResponseValidationError) Key() bool
- func (e ApplicationCreateResponseValidationError) Reason() string
- type AuthClient
- type AuthServer
- type AuthenticationRequest
- func (*AuthenticationRequest) Descriptor() ([]byte, []int)deprecated
- func (m *AuthenticationRequest) GetAuthType() isAuthenticationRequest_AuthType
- func (x *AuthenticationRequest) GetEmail() string
- func (x *AuthenticationRequest) GetPassword() string
- func (x *AuthenticationRequest) GetUsername() string
- func (*AuthenticationRequest) ProtoMessage()
- func (x *AuthenticationRequest) ProtoReflect() protoreflect.Message
- func (x *AuthenticationRequest) Reset()
- func (x *AuthenticationRequest) String() string
- func (m *AuthenticationRequest) Validate() error
- func (m *AuthenticationRequest) ValidateAll() error
- type AuthenticationRequestMultiError
- type AuthenticationRequestValidationError
- func (e AuthenticationRequestValidationError) Cause() error
- func (e AuthenticationRequestValidationError) Error() string
- func (e AuthenticationRequestValidationError) ErrorName() string
- func (e AuthenticationRequestValidationError) Field() string
- func (e AuthenticationRequestValidationError) Key() bool
- func (e AuthenticationRequestValidationError) Reason() string
- type AuthenticationRequest_Email
- type AuthenticationRequest_Username
- type AuthenticationResponse
- func (*AuthenticationResponse) Descriptor() ([]byte, []int)deprecated
- func (x *AuthenticationResponse) GetAuthorizationToken() string
- func (x *AuthenticationResponse) GetCode() string
- func (x *AuthenticationResponse) GetMessage() string
- func (*AuthenticationResponse) ProtoMessage()
- func (x *AuthenticationResponse) ProtoReflect() protoreflect.Message
- func (x *AuthenticationResponse) Reset()
- func (x *AuthenticationResponse) String() string
- func (m *AuthenticationResponse) Validate() error
- func (m *AuthenticationResponse) ValidateAll() error
- type AuthenticationResponseMultiError
- type AuthenticationResponseValidationError
- func (e AuthenticationResponseValidationError) Cause() error
- func (e AuthenticationResponseValidationError) Error() string
- func (e AuthenticationResponseValidationError) ErrorName() string
- func (e AuthenticationResponseValidationError) Field() string
- func (e AuthenticationResponseValidationError) Key() bool
- func (e AuthenticationResponseValidationError) Reason() string
- type OAuth2Client
- type OAuth2Server
- type StatusesResponse
- func (*StatusesResponse) Descriptor() ([]byte, []int)deprecated
- func (x *StatusesResponse) GetCode() string
- func (x *StatusesResponse) GetStatus() string
- func (x *StatusesResponse) GetVersion() string
- func (*StatusesResponse) ProtoMessage()
- func (x *StatusesResponse) ProtoReflect() protoreflect.Message
- func (x *StatusesResponse) Reset()
- func (x *StatusesResponse) String() string
- func (m *StatusesResponse) Validate() error
- func (m *StatusesResponse) ValidateAll() error
- type StatusesResponseMultiError
- type StatusesResponseValidationError
- func (e StatusesResponseValidationError) Cause() error
- func (e StatusesResponseValidationError) Error() string
- func (e StatusesResponseValidationError) ErrorName() string
- func (e StatusesResponseValidationError) Field() string
- func (e StatusesResponseValidationError) Key() bool
- func (e StatusesResponseValidationError) Reason() string
- type UnimplementedAccountServer
- func (UnimplementedAccountServer) UserCreate(context.Context, *UserCreateRequest) (*UserCreateResponse, error)
- func (UnimplementedAccountServer) UserEditEMail(context.Context, *UserEditEMailRequest) (*UserEditEMailResponse, error)
- func (UnimplementedAccountServer) UserEditPassword(context.Context, *UserEditPasswordRequest) (*UserEditPasswordResponse, error)
- func (UnimplementedAccountServer) UserEditUsername(context.Context, *UserEditUsernameRequest) (*UserEditUsernameResponse, error)
- func (UnimplementedAccountServer) UserGet(context.Context, *emptypb.Empty) (*UserGetResponse, error)
- func (UnimplementedAccountServer) UserUpdate(context.Context, *UserUpdateRequest) (*UserUpdateResponse, error)
- type UnimplementedAuthServer
- type UnimplementedOAuth2Server
- type UnsafeAccountServer
- type UnsafeAuthServer
- type UnsafeOAuth2Server
- type User
- func (*User) Descriptor() ([]byte, []int)deprecated
- func (x *User) GetAvatar() string
- func (x *User) GetBio() string
- func (x *User) GetEmail() string
- func (x *User) GetName() string
- func (x *User) GetPrivate() bool
- func (*User) ProtoMessage()
- func (x *User) ProtoReflect() protoreflect.Message
- func (x *User) Reset()
- func (x *User) String() string
- func (m *User) Validate() error
- func (m *User) ValidateAll() error
- type UserCreateRequest
- func (*UserCreateRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UserCreateRequest) GetEmail() string
- func (x *UserCreateRequest) GetPassword() string
- func (x *UserCreateRequest) GetUsername() string
- func (*UserCreateRequest) ProtoMessage()
- func (x *UserCreateRequest) ProtoReflect() protoreflect.Message
- func (x *UserCreateRequest) Reset()
- func (x *UserCreateRequest) String() string
- func (m *UserCreateRequest) Validate() error
- func (m *UserCreateRequest) ValidateAll() error
- type UserCreateRequestMultiError
- type UserCreateRequestValidationError
- func (e UserCreateRequestValidationError) Cause() error
- func (e UserCreateRequestValidationError) Error() string
- func (e UserCreateRequestValidationError) ErrorName() string
- func (e UserCreateRequestValidationError) Field() string
- func (e UserCreateRequestValidationError) Key() bool
- func (e UserCreateRequestValidationError) Reason() string
- type UserCreateResponse
- func (*UserCreateResponse) Descriptor() ([]byte, []int)deprecated
- func (x *UserCreateResponse) GetAuthorizationToken() string
- func (x *UserCreateResponse) GetCode() string
- func (x *UserCreateResponse) GetMessage() string
- func (*UserCreateResponse) ProtoMessage()
- func (x *UserCreateResponse) ProtoReflect() protoreflect.Message
- func (x *UserCreateResponse) Reset()
- func (x *UserCreateResponse) String() string
- func (m *UserCreateResponse) Validate() error
- func (m *UserCreateResponse) ValidateAll() error
- type UserCreateResponseMultiError
- type UserCreateResponseValidationError
- func (e UserCreateResponseValidationError) Cause() error
- func (e UserCreateResponseValidationError) Error() string
- func (e UserCreateResponseValidationError) ErrorName() string
- func (e UserCreateResponseValidationError) Field() string
- func (e UserCreateResponseValidationError) Key() bool
- func (e UserCreateResponseValidationError) Reason() string
- type UserEditEMailRequest
- func (*UserEditEMailRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UserEditEMailRequest) GetEmail() string
- func (x *UserEditEMailRequest) GetPassword() string
- func (*UserEditEMailRequest) ProtoMessage()
- func (x *UserEditEMailRequest) ProtoReflect() protoreflect.Message
- func (x *UserEditEMailRequest) Reset()
- func (x *UserEditEMailRequest) String() string
- func (m *UserEditEMailRequest) Validate() error
- func (m *UserEditEMailRequest) ValidateAll() error
- type UserEditEMailRequestMultiError
- type UserEditEMailRequestValidationError
- func (e UserEditEMailRequestValidationError) Cause() error
- func (e UserEditEMailRequestValidationError) Error() string
- func (e UserEditEMailRequestValidationError) ErrorName() string
- func (e UserEditEMailRequestValidationError) Field() string
- func (e UserEditEMailRequestValidationError) Key() bool
- func (e UserEditEMailRequestValidationError) Reason() string
- type UserEditEMailResponse
- func (*UserEditEMailResponse) Descriptor() ([]byte, []int)deprecated
- func (x *UserEditEMailResponse) GetCode() string
- func (x *UserEditEMailResponse) GetMessage() string
- func (*UserEditEMailResponse) ProtoMessage()
- func (x *UserEditEMailResponse) ProtoReflect() protoreflect.Message
- func (x *UserEditEMailResponse) Reset()
- func (x *UserEditEMailResponse) String() string
- func (m *UserEditEMailResponse) Validate() error
- func (m *UserEditEMailResponse) ValidateAll() error
- type UserEditEMailResponseMultiError
- type UserEditEMailResponseValidationError
- func (e UserEditEMailResponseValidationError) Cause() error
- func (e UserEditEMailResponseValidationError) Error() string
- func (e UserEditEMailResponseValidationError) ErrorName() string
- func (e UserEditEMailResponseValidationError) Field() string
- func (e UserEditEMailResponseValidationError) Key() bool
- func (e UserEditEMailResponseValidationError) Reason() string
- type UserEditPasswordRequest
- func (*UserEditPasswordRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UserEditPasswordRequest) GetNewPassword() string
- func (x *UserEditPasswordRequest) GetPassword() string
- func (*UserEditPasswordRequest) ProtoMessage()
- func (x *UserEditPasswordRequest) ProtoReflect() protoreflect.Message
- func (x *UserEditPasswordRequest) Reset()
- func (x *UserEditPasswordRequest) String() string
- func (m *UserEditPasswordRequest) Validate() error
- func (m *UserEditPasswordRequest) ValidateAll() error
- type UserEditPasswordRequestMultiError
- type UserEditPasswordRequestValidationError
- func (e UserEditPasswordRequestValidationError) Cause() error
- func (e UserEditPasswordRequestValidationError) Error() string
- func (e UserEditPasswordRequestValidationError) ErrorName() string
- func (e UserEditPasswordRequestValidationError) Field() string
- func (e UserEditPasswordRequestValidationError) Key() bool
- func (e UserEditPasswordRequestValidationError) Reason() string
- type UserEditPasswordResponse
- func (*UserEditPasswordResponse) Descriptor() ([]byte, []int)deprecated
- func (x *UserEditPasswordResponse) GetCode() string
- func (x *UserEditPasswordResponse) GetMessage() string
- func (*UserEditPasswordResponse) ProtoMessage()
- func (x *UserEditPasswordResponse) ProtoReflect() protoreflect.Message
- func (x *UserEditPasswordResponse) Reset()
- func (x *UserEditPasswordResponse) String() string
- func (m *UserEditPasswordResponse) Validate() error
- func (m *UserEditPasswordResponse) ValidateAll() error
- type UserEditPasswordResponseMultiError
- type UserEditPasswordResponseValidationError
- func (e UserEditPasswordResponseValidationError) Cause() error
- func (e UserEditPasswordResponseValidationError) Error() string
- func (e UserEditPasswordResponseValidationError) ErrorName() string
- func (e UserEditPasswordResponseValidationError) Field() string
- func (e UserEditPasswordResponseValidationError) Key() bool
- func (e UserEditPasswordResponseValidationError) Reason() string
- type UserEditUsernameRequest
- func (*UserEditUsernameRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UserEditUsernameRequest) GetPassword() string
- func (x *UserEditUsernameRequest) GetUsername() string
- func (*UserEditUsernameRequest) ProtoMessage()
- func (x *UserEditUsernameRequest) ProtoReflect() protoreflect.Message
- func (x *UserEditUsernameRequest) Reset()
- func (x *UserEditUsernameRequest) String() string
- func (m *UserEditUsernameRequest) Validate() error
- func (m *UserEditUsernameRequest) ValidateAll() error
- type UserEditUsernameRequestMultiError
- type UserEditUsernameRequestValidationError
- func (e UserEditUsernameRequestValidationError) Cause() error
- func (e UserEditUsernameRequestValidationError) Error() string
- func (e UserEditUsernameRequestValidationError) ErrorName() string
- func (e UserEditUsernameRequestValidationError) Field() string
- func (e UserEditUsernameRequestValidationError) Key() bool
- func (e UserEditUsernameRequestValidationError) Reason() string
- type UserEditUsernameResponse
- func (*UserEditUsernameResponse) Descriptor() ([]byte, []int)deprecated
- func (x *UserEditUsernameResponse) GetCode() string
- func (x *UserEditUsernameResponse) GetMessage() string
- func (*UserEditUsernameResponse) ProtoMessage()
- func (x *UserEditUsernameResponse) ProtoReflect() protoreflect.Message
- func (x *UserEditUsernameResponse) Reset()
- func (x *UserEditUsernameResponse) String() string
- func (m *UserEditUsernameResponse) Validate() error
- func (m *UserEditUsernameResponse) ValidateAll() error
- type UserEditUsernameResponseMultiError
- type UserEditUsernameResponseValidationError
- func (e UserEditUsernameResponseValidationError) Cause() error
- func (e UserEditUsernameResponseValidationError) Error() string
- func (e UserEditUsernameResponseValidationError) ErrorName() string
- func (e UserEditUsernameResponseValidationError) Field() string
- func (e UserEditUsernameResponseValidationError) Key() bool
- func (e UserEditUsernameResponseValidationError) Reason() string
- type UserGetResponse
- func (*UserGetResponse) Descriptor() ([]byte, []int)deprecated
- func (x *UserGetResponse) GetCode() string
- func (x *UserGetResponse) GetMessage() string
- func (x *UserGetResponse) GetUser() *User
- func (*UserGetResponse) ProtoMessage()
- func (x *UserGetResponse) ProtoReflect() protoreflect.Message
- func (x *UserGetResponse) Reset()
- func (x *UserGetResponse) String() string
- func (m *UserGetResponse) Validate() error
- func (m *UserGetResponse) ValidateAll() error
- type UserGetResponseMultiError
- type UserGetResponseValidationError
- func (e UserGetResponseValidationError) Cause() error
- func (e UserGetResponseValidationError) Error() string
- func (e UserGetResponseValidationError) ErrorName() string
- func (e UserGetResponseValidationError) Field() string
- func (e UserGetResponseValidationError) Key() bool
- func (e UserGetResponseValidationError) Reason() string
- type UserMultiError
- type UserUpdateRequest
- func (*UserUpdateRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UserUpdateRequest) GetAvatar() string
- func (x *UserUpdateRequest) GetBio() string
- func (x *UserUpdateRequest) GetName() string
- func (x *UserUpdateRequest) GetPrivate() bool
- func (*UserUpdateRequest) ProtoMessage()
- func (x *UserUpdateRequest) ProtoReflect() protoreflect.Message
- func (x *UserUpdateRequest) Reset()
- func (x *UserUpdateRequest) String() string
- func (m *UserUpdateRequest) Validate() error
- func (m *UserUpdateRequest) ValidateAll() error
- type UserUpdateRequestMultiError
- type UserUpdateRequestValidationError
- func (e UserUpdateRequestValidationError) Cause() error
- func (e UserUpdateRequestValidationError) Error() string
- func (e UserUpdateRequestValidationError) ErrorName() string
- func (e UserUpdateRequestValidationError) Field() string
- func (e UserUpdateRequestValidationError) Key() bool
- func (e UserUpdateRequestValidationError) Reason() string
- type UserUpdateResponse
- func (*UserUpdateResponse) Descriptor() ([]byte, []int)deprecated
- func (x *UserUpdateResponse) GetCode() string
- func (x *UserUpdateResponse) GetMessage() string
- func (*UserUpdateResponse) ProtoMessage()
- func (x *UserUpdateResponse) ProtoReflect() protoreflect.Message
- func (x *UserUpdateResponse) Reset()
- func (x *UserUpdateResponse) String() string
- func (m *UserUpdateResponse) Validate() error
- func (m *UserUpdateResponse) ValidateAll() error
- type UserUpdateResponseMultiError
- type UserUpdateResponseValidationError
- func (e UserUpdateResponseValidationError) Cause() error
- func (e UserUpdateResponseValidationError) Error() string
- func (e UserUpdateResponseValidationError) ErrorName() string
- func (e UserUpdateResponseValidationError) Field() string
- func (e UserUpdateResponseValidationError) Key() bool
- func (e UserUpdateResponseValidationError) Reason() string
- type UserValidationError
Constants ¶
const ( Account_UserGet_FullMethodName = "/apis.proto.v1alpha1.auth.Account/UserGet" Account_UserCreate_FullMethodName = "/apis.proto.v1alpha1.auth.Account/UserCreate" Account_UserUpdate_FullMethodName = "/apis.proto.v1alpha1.auth.Account/UserUpdate" Account_UserEditPassword_FullMethodName = "/apis.proto.v1alpha1.auth.Account/UserEditPassword" Account_UserEditUsername_FullMethodName = "/apis.proto.v1alpha1.auth.Account/UserEditUsername" Account_UserEditEMail_FullMethodName = "/apis.proto.v1alpha1.auth.Account/UserEditEMail" )
const ( Auth_Statuses_FullMethodName = "/apis.proto.v1alpha1.auth.Auth/Statuses" Auth_Authentication_FullMethodName = "/apis.proto.v1alpha1.auth.Auth/Authentication" )
const (
OAuth2_ApplicationCreate_FullMethodName = "/apis.proto.v1alpha1.auth.OAuth2/ApplicationCreate"
)
Variables ¶
var Account_ServiceDesc = grpc.ServiceDesc{ ServiceName: "apis.proto.v1alpha1.auth.Account", HandlerType: (*AccountServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "UserGet", Handler: _Account_UserGet_Handler, }, { MethodName: "UserCreate", Handler: _Account_UserCreate_Handler, }, { MethodName: "UserUpdate", Handler: _Account_UserUpdate_Handler, }, { MethodName: "UserEditPassword", Handler: _Account_UserEditPassword_Handler, }, { MethodName: "UserEditUsername", Handler: _Account_UserEditUsername_Handler, }, { MethodName: "UserEditEMail", Handler: _Account_UserEditEMail_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "proto/v1alpha1/auth/account.proto", }
Account_ServiceDesc is the grpc.ServiceDesc for Account service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var Auth_ServiceDesc = grpc.ServiceDesc{ ServiceName: "apis.proto.v1alpha1.auth.Auth", HandlerType: (*AuthServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Statuses", Handler: _Auth_Statuses_Handler, }, { MethodName: "Authentication", Handler: _Auth_Authentication_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "proto/v1alpha1/auth/auth.proto", }
Auth_ServiceDesc is the grpc.ServiceDesc for Auth service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_proto_v1alpha1_auth_account_proto protoreflect.FileDescriptor
var File_proto_v1alpha1_auth_auth_proto protoreflect.FileDescriptor
var File_proto_v1alpha1_auth_oauth2_proto protoreflect.FileDescriptor
var OAuth2_ServiceDesc = grpc.ServiceDesc{ ServiceName: "apis.proto.v1alpha1.auth.OAuth2", HandlerType: (*OAuth2Server)(nil), Methods: []grpc.MethodDesc{ { MethodName: "ApplicationCreate", Handler: _OAuth2_ApplicationCreate_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "proto/v1alpha1/auth/oauth2.proto", }
OAuth2_ServiceDesc is the grpc.ServiceDesc for OAuth2 service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterAccountHandler ¶
func RegisterAccountHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterAccountHandler registers the http handlers for service Account to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterAccountHandlerClient ¶
func RegisterAccountHandlerClient(ctx context.Context, mux *runtime.ServeMux, client AccountClient) error
RegisterAccountHandlerClient registers the http handlers for service Account to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "AccountClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "AccountClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "AccountClient" to call the correct interceptors.
func RegisterAccountHandlerFromEndpoint ¶
func RegisterAccountHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterAccountHandlerFromEndpoint is same as RegisterAccountHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterAccountHandlerServer ¶
func RegisterAccountHandlerServer(ctx context.Context, mux *runtime.ServeMux, server AccountServer) error
RegisterAccountHandlerServer registers the http handlers for service Account to "mux". UnaryRPC :call AccountServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterAccountHandlerFromEndpoint instead.
func RegisterAccountServer ¶
func RegisterAccountServer(s grpc.ServiceRegistrar, srv AccountServer)
func RegisterAuthHandler ¶
RegisterAuthHandler registers the http handlers for service Auth to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterAuthHandlerClient ¶
RegisterAuthHandlerClient registers the http handlers for service Auth to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "AuthClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "AuthClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "AuthClient" to call the correct interceptors.
func RegisterAuthHandlerFromEndpoint ¶
func RegisterAuthHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterAuthHandlerFromEndpoint is same as RegisterAuthHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterAuthHandlerServer ¶
RegisterAuthHandlerServer registers the http handlers for service Auth to "mux". UnaryRPC :call AuthServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterAuthHandlerFromEndpoint instead.
func RegisterAuthServer ¶
func RegisterAuthServer(s grpc.ServiceRegistrar, srv AuthServer)
func RegisterOAuth2Handler ¶
RegisterOAuth2Handler registers the http handlers for service OAuth2 to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterOAuth2HandlerClient ¶
func RegisterOAuth2HandlerClient(ctx context.Context, mux *runtime.ServeMux, client OAuth2Client) error
RegisterOAuth2HandlerClient registers the http handlers for service OAuth2 to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "OAuth2Client". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "OAuth2Client" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "OAuth2Client" to call the correct interceptors.
func RegisterOAuth2HandlerFromEndpoint ¶
func RegisterOAuth2HandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterOAuth2HandlerFromEndpoint is same as RegisterOAuth2Handler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterOAuth2HandlerServer ¶
func RegisterOAuth2HandlerServer(ctx context.Context, mux *runtime.ServeMux, server OAuth2Server) error
RegisterOAuth2HandlerServer registers the http handlers for service OAuth2 to "mux". UnaryRPC :call OAuth2Server directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterOAuth2HandlerFromEndpoint instead.
func RegisterOAuth2Server ¶
func RegisterOAuth2Server(s grpc.ServiceRegistrar, srv OAuth2Server)
Types ¶
type AccountClient ¶
type AccountClient interface { UserGet(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*UserGetResponse, error) UserCreate(ctx context.Context, in *UserCreateRequest, opts ...grpc.CallOption) (*UserCreateResponse, error) UserUpdate(ctx context.Context, in *UserUpdateRequest, opts ...grpc.CallOption) (*UserUpdateResponse, error) UserEditPassword(ctx context.Context, in *UserEditPasswordRequest, opts ...grpc.CallOption) (*UserEditPasswordResponse, error) UserEditUsername(ctx context.Context, in *UserEditUsernameRequest, opts ...grpc.CallOption) (*UserEditUsernameResponse, error) UserEditEMail(ctx context.Context, in *UserEditEMailRequest, opts ...grpc.CallOption) (*UserEditEMailResponse, error) }
AccountClient is the client API for Account service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewAccountClient ¶
func NewAccountClient(cc grpc.ClientConnInterface) AccountClient
type AccountServer ¶
type AccountServer interface { UserGet(context.Context, *emptypb.Empty) (*UserGetResponse, error) UserCreate(context.Context, *UserCreateRequest) (*UserCreateResponse, error) UserUpdate(context.Context, *UserUpdateRequest) (*UserUpdateResponse, error) UserEditPassword(context.Context, *UserEditPasswordRequest) (*UserEditPasswordResponse, error) UserEditUsername(context.Context, *UserEditUsernameRequest) (*UserEditUsernameResponse, error) UserEditEMail(context.Context, *UserEditEMailRequest) (*UserEditEMailResponse, error) }
AccountServer is the server API for Account service. All implementations should embed UnimplementedAccountServer for forward compatibility
type ApplicationCreateRequest ¶
type ApplicationCreateRequest struct {
// contains filtered or unexported fields
}
func (*ApplicationCreateRequest) Descriptor
deprecated
func (*ApplicationCreateRequest) Descriptor() ([]byte, []int)
Deprecated: Use ApplicationCreateRequest.ProtoReflect.Descriptor instead.
func (*ApplicationCreateRequest) ProtoMessage ¶
func (*ApplicationCreateRequest) ProtoMessage()
func (*ApplicationCreateRequest) ProtoReflect ¶
func (x *ApplicationCreateRequest) ProtoReflect() protoreflect.Message
func (*ApplicationCreateRequest) Reset ¶
func (x *ApplicationCreateRequest) Reset()
func (*ApplicationCreateRequest) String ¶
func (x *ApplicationCreateRequest) String() string
func (*ApplicationCreateRequest) Validate ¶
func (m *ApplicationCreateRequest) Validate() error
Validate checks the field values on ApplicationCreateRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*ApplicationCreateRequest) ValidateAll ¶
func (m *ApplicationCreateRequest) ValidateAll() error
ValidateAll checks the field values on ApplicationCreateRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ApplicationCreateRequestMultiError, or nil if none found.
type ApplicationCreateRequestMultiError ¶
type ApplicationCreateRequestMultiError []error
ApplicationCreateRequestMultiError is an error wrapping multiple validation errors returned by ApplicationCreateRequest.ValidateAll() if the designated constraints aren't met.
func (ApplicationCreateRequestMultiError) AllErrors ¶
func (m ApplicationCreateRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ApplicationCreateRequestMultiError) Error ¶
func (m ApplicationCreateRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ApplicationCreateRequestValidationError ¶
type ApplicationCreateRequestValidationError struct {
// contains filtered or unexported fields
}
ApplicationCreateRequestValidationError is the validation error returned by ApplicationCreateRequest.Validate if the designated constraints aren't met.
func (ApplicationCreateRequestValidationError) Cause ¶
func (e ApplicationCreateRequestValidationError) Cause() error
Cause function returns cause value.
func (ApplicationCreateRequestValidationError) Error ¶
func (e ApplicationCreateRequestValidationError) Error() string
Error satisfies the builtin error interface
func (ApplicationCreateRequestValidationError) ErrorName ¶
func (e ApplicationCreateRequestValidationError) ErrorName() string
ErrorName returns error name.
func (ApplicationCreateRequestValidationError) Field ¶
func (e ApplicationCreateRequestValidationError) Field() string
Field function returns field value.
func (ApplicationCreateRequestValidationError) Key ¶
func (e ApplicationCreateRequestValidationError) Key() bool
Key function returns key value.
func (ApplicationCreateRequestValidationError) Reason ¶
func (e ApplicationCreateRequestValidationError) Reason() string
Reason function returns reason value.
type ApplicationCreateResponse ¶
type ApplicationCreateResponse struct {
// contains filtered or unexported fields
}
func (*ApplicationCreateResponse) Descriptor
deprecated
func (*ApplicationCreateResponse) Descriptor() ([]byte, []int)
Deprecated: Use ApplicationCreateResponse.ProtoReflect.Descriptor instead.
func (*ApplicationCreateResponse) ProtoMessage ¶
func (*ApplicationCreateResponse) ProtoMessage()
func (*ApplicationCreateResponse) ProtoReflect ¶
func (x *ApplicationCreateResponse) ProtoReflect() protoreflect.Message
func (*ApplicationCreateResponse) Reset ¶
func (x *ApplicationCreateResponse) Reset()
func (*ApplicationCreateResponse) String ¶
func (x *ApplicationCreateResponse) String() string
func (*ApplicationCreateResponse) Validate ¶
func (m *ApplicationCreateResponse) Validate() error
Validate checks the field values on ApplicationCreateResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*ApplicationCreateResponse) ValidateAll ¶
func (m *ApplicationCreateResponse) ValidateAll() error
ValidateAll checks the field values on ApplicationCreateResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ApplicationCreateResponseMultiError, or nil if none found.
type ApplicationCreateResponseMultiError ¶
type ApplicationCreateResponseMultiError []error
ApplicationCreateResponseMultiError is an error wrapping multiple validation errors returned by ApplicationCreateResponse.ValidateAll() if the designated constraints aren't met.
func (ApplicationCreateResponseMultiError) AllErrors ¶
func (m ApplicationCreateResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ApplicationCreateResponseMultiError) Error ¶
func (m ApplicationCreateResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ApplicationCreateResponseValidationError ¶
type ApplicationCreateResponseValidationError struct {
// contains filtered or unexported fields
}
ApplicationCreateResponseValidationError is the validation error returned by ApplicationCreateResponse.Validate if the designated constraints aren't met.
func (ApplicationCreateResponseValidationError) Cause ¶
func (e ApplicationCreateResponseValidationError) Cause() error
Cause function returns cause value.
func (ApplicationCreateResponseValidationError) Error ¶
func (e ApplicationCreateResponseValidationError) Error() string
Error satisfies the builtin error interface
func (ApplicationCreateResponseValidationError) ErrorName ¶
func (e ApplicationCreateResponseValidationError) ErrorName() string
ErrorName returns error name.
func (ApplicationCreateResponseValidationError) Field ¶
func (e ApplicationCreateResponseValidationError) Field() string
Field function returns field value.
func (ApplicationCreateResponseValidationError) Key ¶
func (e ApplicationCreateResponseValidationError) Key() bool
Key function returns key value.
func (ApplicationCreateResponseValidationError) Reason ¶
func (e ApplicationCreateResponseValidationError) Reason() string
Reason function returns reason value.
type AuthClient ¶
type AuthClient interface { Statuses(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*StatusesResponse, error) Authentication(ctx context.Context, in *AuthenticationRequest, opts ...grpc.CallOption) (*AuthenticationResponse, error) }
AuthClient is the client API for Auth service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewAuthClient ¶
func NewAuthClient(cc grpc.ClientConnInterface) AuthClient
type AuthServer ¶
type AuthServer interface { Statuses(context.Context, *emptypb.Empty) (*StatusesResponse, error) Authentication(context.Context, *AuthenticationRequest) (*AuthenticationResponse, error) }
AuthServer is the server API for Auth service. All implementations should embed UnimplementedAuthServer for forward compatibility
type AuthenticationRequest ¶
type AuthenticationRequest struct { // Types that are assignable to AuthType: // // *AuthenticationRequest_Email // *AuthenticationRequest_Username AuthType isAuthenticationRequest_AuthType `protobuf_oneof:"auth_type"` Password string `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty"` // contains filtered or unexported fields }
func (*AuthenticationRequest) Descriptor
deprecated
func (*AuthenticationRequest) Descriptor() ([]byte, []int)
Deprecated: Use AuthenticationRequest.ProtoReflect.Descriptor instead.
func (*AuthenticationRequest) GetAuthType ¶
func (m *AuthenticationRequest) GetAuthType() isAuthenticationRequest_AuthType
func (*AuthenticationRequest) GetEmail ¶
func (x *AuthenticationRequest) GetEmail() string
func (*AuthenticationRequest) GetPassword ¶
func (x *AuthenticationRequest) GetPassword() string
func (*AuthenticationRequest) GetUsername ¶
func (x *AuthenticationRequest) GetUsername() string
func (*AuthenticationRequest) ProtoMessage ¶
func (*AuthenticationRequest) ProtoMessage()
func (*AuthenticationRequest) ProtoReflect ¶
func (x *AuthenticationRequest) ProtoReflect() protoreflect.Message
func (*AuthenticationRequest) Reset ¶
func (x *AuthenticationRequest) Reset()
func (*AuthenticationRequest) String ¶
func (x *AuthenticationRequest) String() string
func (*AuthenticationRequest) Validate ¶
func (m *AuthenticationRequest) Validate() error
Validate checks the field values on AuthenticationRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*AuthenticationRequest) ValidateAll ¶
func (m *AuthenticationRequest) ValidateAll() error
ValidateAll checks the field values on AuthenticationRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in AuthenticationRequestMultiError, or nil if none found.
type AuthenticationRequestMultiError ¶
type AuthenticationRequestMultiError []error
AuthenticationRequestMultiError is an error wrapping multiple validation errors returned by AuthenticationRequest.ValidateAll() if the designated constraints aren't met.
func (AuthenticationRequestMultiError) AllErrors ¶
func (m AuthenticationRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (AuthenticationRequestMultiError) Error ¶
func (m AuthenticationRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type AuthenticationRequestValidationError ¶
type AuthenticationRequestValidationError struct {
// contains filtered or unexported fields
}
AuthenticationRequestValidationError is the validation error returned by AuthenticationRequest.Validate if the designated constraints aren't met.
func (AuthenticationRequestValidationError) Cause ¶
func (e AuthenticationRequestValidationError) Cause() error
Cause function returns cause value.
func (AuthenticationRequestValidationError) Error ¶
func (e AuthenticationRequestValidationError) Error() string
Error satisfies the builtin error interface
func (AuthenticationRequestValidationError) ErrorName ¶
func (e AuthenticationRequestValidationError) ErrorName() string
ErrorName returns error name.
func (AuthenticationRequestValidationError) Field ¶
func (e AuthenticationRequestValidationError) Field() string
Field function returns field value.
func (AuthenticationRequestValidationError) Key ¶
func (e AuthenticationRequestValidationError) Key() bool
Key function returns key value.
func (AuthenticationRequestValidationError) Reason ¶
func (e AuthenticationRequestValidationError) Reason() string
Reason function returns reason value.
type AuthenticationRequest_Email ¶
type AuthenticationRequest_Email struct {
Email string `protobuf:"bytes,1,opt,name=email,proto3,oneof"`
}
type AuthenticationRequest_Username ¶
type AuthenticationRequest_Username struct {
Username string `protobuf:"bytes,2,opt,name=username,proto3,oneof"`
}
type AuthenticationResponse ¶
type AuthenticationResponse struct { Code string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"` Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` AuthorizationToken string `protobuf:"bytes,3,opt,name=authorization_token,json=authorizationToken,proto3" json:"authorization_token,omitempty"` // contains filtered or unexported fields }
func (*AuthenticationResponse) Descriptor
deprecated
func (*AuthenticationResponse) Descriptor() ([]byte, []int)
Deprecated: Use AuthenticationResponse.ProtoReflect.Descriptor instead.
func (*AuthenticationResponse) GetAuthorizationToken ¶
func (x *AuthenticationResponse) GetAuthorizationToken() string
func (*AuthenticationResponse) GetCode ¶
func (x *AuthenticationResponse) GetCode() string
func (*AuthenticationResponse) GetMessage ¶
func (x *AuthenticationResponse) GetMessage() string
func (*AuthenticationResponse) ProtoMessage ¶
func (*AuthenticationResponse) ProtoMessage()
func (*AuthenticationResponse) ProtoReflect ¶
func (x *AuthenticationResponse) ProtoReflect() protoreflect.Message
func (*AuthenticationResponse) Reset ¶
func (x *AuthenticationResponse) Reset()
func (*AuthenticationResponse) String ¶
func (x *AuthenticationResponse) String() string
func (*AuthenticationResponse) Validate ¶
func (m *AuthenticationResponse) Validate() error
Validate checks the field values on AuthenticationResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*AuthenticationResponse) ValidateAll ¶
func (m *AuthenticationResponse) ValidateAll() error
ValidateAll checks the field values on AuthenticationResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in AuthenticationResponseMultiError, or nil if none found.
type AuthenticationResponseMultiError ¶
type AuthenticationResponseMultiError []error
AuthenticationResponseMultiError is an error wrapping multiple validation errors returned by AuthenticationResponse.ValidateAll() if the designated constraints aren't met.
func (AuthenticationResponseMultiError) AllErrors ¶
func (m AuthenticationResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (AuthenticationResponseMultiError) Error ¶
func (m AuthenticationResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type AuthenticationResponseValidationError ¶
type AuthenticationResponseValidationError struct {
// contains filtered or unexported fields
}
AuthenticationResponseValidationError is the validation error returned by AuthenticationResponse.Validate if the designated constraints aren't met.
func (AuthenticationResponseValidationError) Cause ¶
func (e AuthenticationResponseValidationError) Cause() error
Cause function returns cause value.
func (AuthenticationResponseValidationError) Error ¶
func (e AuthenticationResponseValidationError) Error() string
Error satisfies the builtin error interface
func (AuthenticationResponseValidationError) ErrorName ¶
func (e AuthenticationResponseValidationError) ErrorName() string
ErrorName returns error name.
func (AuthenticationResponseValidationError) Field ¶
func (e AuthenticationResponseValidationError) Field() string
Field function returns field value.
func (AuthenticationResponseValidationError) Key ¶
func (e AuthenticationResponseValidationError) Key() bool
Key function returns key value.
func (AuthenticationResponseValidationError) Reason ¶
func (e AuthenticationResponseValidationError) Reason() string
Reason function returns reason value.
type OAuth2Client ¶
type OAuth2Client interface {
ApplicationCreate(ctx context.Context, in *ApplicationCreateRequest, opts ...grpc.CallOption) (*ApplicationCreateResponse, error)
}
OAuth2Client is the client API for OAuth2 service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewOAuth2Client ¶
func NewOAuth2Client(cc grpc.ClientConnInterface) OAuth2Client
type OAuth2Server ¶
type OAuth2Server interface {
ApplicationCreate(context.Context, *ApplicationCreateRequest) (*ApplicationCreateResponse, error)
}
OAuth2Server is the server API for OAuth2 service. All implementations should embed UnimplementedOAuth2Server for forward compatibility
type StatusesResponse ¶
type StatusesResponse struct { Code string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"` Status string `protobuf:"bytes,2,opt,name=status,proto3" json:"status,omitempty"` Version string `protobuf:"bytes,3,opt,name=version,proto3" json:"version,omitempty"` // contains filtered or unexported fields }
func (*StatusesResponse) Descriptor
deprecated
func (*StatusesResponse) Descriptor() ([]byte, []int)
Deprecated: Use StatusesResponse.ProtoReflect.Descriptor instead.
func (*StatusesResponse) GetCode ¶
func (x *StatusesResponse) GetCode() string
func (*StatusesResponse) GetStatus ¶
func (x *StatusesResponse) GetStatus() string
func (*StatusesResponse) GetVersion ¶
func (x *StatusesResponse) GetVersion() string
func (*StatusesResponse) ProtoMessage ¶
func (*StatusesResponse) ProtoMessage()
func (*StatusesResponse) ProtoReflect ¶
func (x *StatusesResponse) ProtoReflect() protoreflect.Message
func (*StatusesResponse) Reset ¶
func (x *StatusesResponse) Reset()
func (*StatusesResponse) String ¶
func (x *StatusesResponse) String() string
func (*StatusesResponse) Validate ¶
func (m *StatusesResponse) Validate() error
Validate checks the field values on StatusesResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*StatusesResponse) ValidateAll ¶
func (m *StatusesResponse) ValidateAll() error
ValidateAll checks the field values on StatusesResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in StatusesResponseMultiError, or nil if none found.
type StatusesResponseMultiError ¶
type StatusesResponseMultiError []error
StatusesResponseMultiError is an error wrapping multiple validation errors returned by StatusesResponse.ValidateAll() if the designated constraints aren't met.
func (StatusesResponseMultiError) AllErrors ¶
func (m StatusesResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (StatusesResponseMultiError) Error ¶
func (m StatusesResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type StatusesResponseValidationError ¶
type StatusesResponseValidationError struct {
// contains filtered or unexported fields
}
StatusesResponseValidationError is the validation error returned by StatusesResponse.Validate if the designated constraints aren't met.
func (StatusesResponseValidationError) Cause ¶
func (e StatusesResponseValidationError) Cause() error
Cause function returns cause value.
func (StatusesResponseValidationError) Error ¶
func (e StatusesResponseValidationError) Error() string
Error satisfies the builtin error interface
func (StatusesResponseValidationError) ErrorName ¶
func (e StatusesResponseValidationError) ErrorName() string
ErrorName returns error name.
func (StatusesResponseValidationError) Field ¶
func (e StatusesResponseValidationError) Field() string
Field function returns field value.
func (StatusesResponseValidationError) Key ¶
func (e StatusesResponseValidationError) Key() bool
Key function returns key value.
func (StatusesResponseValidationError) Reason ¶
func (e StatusesResponseValidationError) Reason() string
Reason function returns reason value.
type UnimplementedAccountServer ¶
type UnimplementedAccountServer struct { }
UnimplementedAccountServer should be embedded to have forward compatible implementations.
func (UnimplementedAccountServer) UserCreate ¶
func (UnimplementedAccountServer) UserCreate(context.Context, *UserCreateRequest) (*UserCreateResponse, error)
func (UnimplementedAccountServer) UserEditEMail ¶
func (UnimplementedAccountServer) UserEditEMail(context.Context, *UserEditEMailRequest) (*UserEditEMailResponse, error)
func (UnimplementedAccountServer) UserEditPassword ¶
func (UnimplementedAccountServer) UserEditPassword(context.Context, *UserEditPasswordRequest) (*UserEditPasswordResponse, error)
func (UnimplementedAccountServer) UserEditUsername ¶
func (UnimplementedAccountServer) UserEditUsername(context.Context, *UserEditUsernameRequest) (*UserEditUsernameResponse, error)
func (UnimplementedAccountServer) UserGet ¶
func (UnimplementedAccountServer) UserGet(context.Context, *emptypb.Empty) (*UserGetResponse, error)
func (UnimplementedAccountServer) UserUpdate ¶
func (UnimplementedAccountServer) UserUpdate(context.Context, *UserUpdateRequest) (*UserUpdateResponse, error)
type UnimplementedAuthServer ¶
type UnimplementedAuthServer struct { }
UnimplementedAuthServer should be embedded to have forward compatible implementations.
func (UnimplementedAuthServer) Authentication ¶
func (UnimplementedAuthServer) Authentication(context.Context, *AuthenticationRequest) (*AuthenticationResponse, error)
func (UnimplementedAuthServer) Statuses ¶
func (UnimplementedAuthServer) Statuses(context.Context, *emptypb.Empty) (*StatusesResponse, error)
type UnimplementedOAuth2Server ¶
type UnimplementedOAuth2Server struct { }
UnimplementedOAuth2Server should be embedded to have forward compatible implementations.
func (UnimplementedOAuth2Server) ApplicationCreate ¶
func (UnimplementedOAuth2Server) ApplicationCreate(context.Context, *ApplicationCreateRequest) (*ApplicationCreateResponse, error)
type UnsafeAccountServer ¶
type UnsafeAccountServer interface {
// contains filtered or unexported methods
}
UnsafeAccountServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to AccountServer will result in compilation errors.
type UnsafeAuthServer ¶
type UnsafeAuthServer interface {
// contains filtered or unexported methods
}
UnsafeAuthServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to AuthServer will result in compilation errors.
type UnsafeOAuth2Server ¶
type UnsafeOAuth2Server interface {
// contains filtered or unexported methods
}
UnsafeOAuth2Server may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to OAuth2Server will result in compilation errors.
type User ¶
type User struct { Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Bio string `protobuf:"bytes,3,opt,name=bio,proto3" json:"bio,omitempty"` Avatar string `protobuf:"bytes,4,opt,name=avatar,proto3" json:"avatar,omitempty"` Private bool `protobuf:"varint,5,opt,name=private,proto3" json:"private,omitempty"` // contains filtered or unexported fields }
func (*User) Descriptor
deprecated
func (*User) GetPrivate ¶
func (*User) ProtoMessage ¶
func (*User) ProtoMessage()
func (*User) ProtoReflect ¶
func (x *User) ProtoReflect() protoreflect.Message
func (*User) Validate ¶
Validate checks the field values on User with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*User) ValidateAll ¶
ValidateAll checks the field values on User with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in UserMultiError, or nil if none found.
type UserCreateRequest ¶
type UserCreateRequest struct { Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"` Email string `protobuf:"bytes,2,opt,name=email,proto3" json:"email,omitempty"` Password string `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty"` // contains filtered or unexported fields }
func (*UserCreateRequest) Descriptor
deprecated
func (*UserCreateRequest) Descriptor() ([]byte, []int)
Deprecated: Use UserCreateRequest.ProtoReflect.Descriptor instead.
func (*UserCreateRequest) GetEmail ¶
func (x *UserCreateRequest) GetEmail() string
func (*UserCreateRequest) GetPassword ¶
func (x *UserCreateRequest) GetPassword() string
func (*UserCreateRequest) GetUsername ¶
func (x *UserCreateRequest) GetUsername() string
func (*UserCreateRequest) ProtoMessage ¶
func (*UserCreateRequest) ProtoMessage()
func (*UserCreateRequest) ProtoReflect ¶
func (x *UserCreateRequest) ProtoReflect() protoreflect.Message
func (*UserCreateRequest) Reset ¶
func (x *UserCreateRequest) Reset()
func (*UserCreateRequest) String ¶
func (x *UserCreateRequest) String() string
func (*UserCreateRequest) Validate ¶
func (m *UserCreateRequest) Validate() error
Validate checks the field values on UserCreateRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*UserCreateRequest) ValidateAll ¶
func (m *UserCreateRequest) ValidateAll() error
ValidateAll checks the field values on UserCreateRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in UserCreateRequestMultiError, or nil if none found.
type UserCreateRequestMultiError ¶
type UserCreateRequestMultiError []error
UserCreateRequestMultiError is an error wrapping multiple validation errors returned by UserCreateRequest.ValidateAll() if the designated constraints aren't met.
func (UserCreateRequestMultiError) AllErrors ¶
func (m UserCreateRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UserCreateRequestMultiError) Error ¶
func (m UserCreateRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UserCreateRequestValidationError ¶
type UserCreateRequestValidationError struct {
// contains filtered or unexported fields
}
UserCreateRequestValidationError is the validation error returned by UserCreateRequest.Validate if the designated constraints aren't met.
func (UserCreateRequestValidationError) Cause ¶
func (e UserCreateRequestValidationError) Cause() error
Cause function returns cause value.
func (UserCreateRequestValidationError) Error ¶
func (e UserCreateRequestValidationError) Error() string
Error satisfies the builtin error interface
func (UserCreateRequestValidationError) ErrorName ¶
func (e UserCreateRequestValidationError) ErrorName() string
ErrorName returns error name.
func (UserCreateRequestValidationError) Field ¶
func (e UserCreateRequestValidationError) Field() string
Field function returns field value.
func (UserCreateRequestValidationError) Key ¶
func (e UserCreateRequestValidationError) Key() bool
Key function returns key value.
func (UserCreateRequestValidationError) Reason ¶
func (e UserCreateRequestValidationError) Reason() string
Reason function returns reason value.
type UserCreateResponse ¶
type UserCreateResponse struct { Code string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"` Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` AuthorizationToken string `protobuf:"bytes,3,opt,name=authorization_token,json=authorizationToken,proto3" json:"authorization_token,omitempty"` // contains filtered or unexported fields }
func (*UserCreateResponse) Descriptor
deprecated
func (*UserCreateResponse) Descriptor() ([]byte, []int)
Deprecated: Use UserCreateResponse.ProtoReflect.Descriptor instead.
func (*UserCreateResponse) GetAuthorizationToken ¶
func (x *UserCreateResponse) GetAuthorizationToken() string
func (*UserCreateResponse) GetCode ¶
func (x *UserCreateResponse) GetCode() string
func (*UserCreateResponse) GetMessage ¶
func (x *UserCreateResponse) GetMessage() string
func (*UserCreateResponse) ProtoMessage ¶
func (*UserCreateResponse) ProtoMessage()
func (*UserCreateResponse) ProtoReflect ¶
func (x *UserCreateResponse) ProtoReflect() protoreflect.Message
func (*UserCreateResponse) Reset ¶
func (x *UserCreateResponse) Reset()
func (*UserCreateResponse) String ¶
func (x *UserCreateResponse) String() string
func (*UserCreateResponse) Validate ¶
func (m *UserCreateResponse) Validate() error
Validate checks the field values on UserCreateResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*UserCreateResponse) ValidateAll ¶
func (m *UserCreateResponse) ValidateAll() error
ValidateAll checks the field values on UserCreateResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in UserCreateResponseMultiError, or nil if none found.
type UserCreateResponseMultiError ¶
type UserCreateResponseMultiError []error
UserCreateResponseMultiError is an error wrapping multiple validation errors returned by UserCreateResponse.ValidateAll() if the designated constraints aren't met.
func (UserCreateResponseMultiError) AllErrors ¶
func (m UserCreateResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UserCreateResponseMultiError) Error ¶
func (m UserCreateResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UserCreateResponseValidationError ¶
type UserCreateResponseValidationError struct {
// contains filtered or unexported fields
}
UserCreateResponseValidationError is the validation error returned by UserCreateResponse.Validate if the designated constraints aren't met.
func (UserCreateResponseValidationError) Cause ¶
func (e UserCreateResponseValidationError) Cause() error
Cause function returns cause value.
func (UserCreateResponseValidationError) Error ¶
func (e UserCreateResponseValidationError) Error() string
Error satisfies the builtin error interface
func (UserCreateResponseValidationError) ErrorName ¶
func (e UserCreateResponseValidationError) ErrorName() string
ErrorName returns error name.
func (UserCreateResponseValidationError) Field ¶
func (e UserCreateResponseValidationError) Field() string
Field function returns field value.
func (UserCreateResponseValidationError) Key ¶
func (e UserCreateResponseValidationError) Key() bool
Key function returns key value.
func (UserCreateResponseValidationError) Reason ¶
func (e UserCreateResponseValidationError) Reason() string
Reason function returns reason value.
type UserEditEMailRequest ¶
type UserEditEMailRequest struct { Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"` Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` // contains filtered or unexported fields }
func (*UserEditEMailRequest) Descriptor
deprecated
func (*UserEditEMailRequest) Descriptor() ([]byte, []int)
Deprecated: Use UserEditEMailRequest.ProtoReflect.Descriptor instead.
func (*UserEditEMailRequest) GetEmail ¶
func (x *UserEditEMailRequest) GetEmail() string
func (*UserEditEMailRequest) GetPassword ¶
func (x *UserEditEMailRequest) GetPassword() string
func (*UserEditEMailRequest) ProtoMessage ¶
func (*UserEditEMailRequest) ProtoMessage()
func (*UserEditEMailRequest) ProtoReflect ¶
func (x *UserEditEMailRequest) ProtoReflect() protoreflect.Message
func (*UserEditEMailRequest) Reset ¶
func (x *UserEditEMailRequest) Reset()
func (*UserEditEMailRequest) String ¶
func (x *UserEditEMailRequest) String() string
func (*UserEditEMailRequest) Validate ¶
func (m *UserEditEMailRequest) Validate() error
Validate checks the field values on UserEditEMailRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*UserEditEMailRequest) ValidateAll ¶
func (m *UserEditEMailRequest) ValidateAll() error
ValidateAll checks the field values on UserEditEMailRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in UserEditEMailRequestMultiError, or nil if none found.
type UserEditEMailRequestMultiError ¶
type UserEditEMailRequestMultiError []error
UserEditEMailRequestMultiError is an error wrapping multiple validation errors returned by UserEditEMailRequest.ValidateAll() if the designated constraints aren't met.
func (UserEditEMailRequestMultiError) AllErrors ¶
func (m UserEditEMailRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UserEditEMailRequestMultiError) Error ¶
func (m UserEditEMailRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UserEditEMailRequestValidationError ¶
type UserEditEMailRequestValidationError struct {
// contains filtered or unexported fields
}
UserEditEMailRequestValidationError is the validation error returned by UserEditEMailRequest.Validate if the designated constraints aren't met.
func (UserEditEMailRequestValidationError) Cause ¶
func (e UserEditEMailRequestValidationError) Cause() error
Cause function returns cause value.
func (UserEditEMailRequestValidationError) Error ¶
func (e UserEditEMailRequestValidationError) Error() string
Error satisfies the builtin error interface
func (UserEditEMailRequestValidationError) ErrorName ¶
func (e UserEditEMailRequestValidationError) ErrorName() string
ErrorName returns error name.
func (UserEditEMailRequestValidationError) Field ¶
func (e UserEditEMailRequestValidationError) Field() string
Field function returns field value.
func (UserEditEMailRequestValidationError) Key ¶
func (e UserEditEMailRequestValidationError) Key() bool
Key function returns key value.
func (UserEditEMailRequestValidationError) Reason ¶
func (e UserEditEMailRequestValidationError) Reason() string
Reason function returns reason value.
type UserEditEMailResponse ¶
type UserEditEMailResponse struct { Code string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"` Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` // contains filtered or unexported fields }
func (*UserEditEMailResponse) Descriptor
deprecated
func (*UserEditEMailResponse) Descriptor() ([]byte, []int)
Deprecated: Use UserEditEMailResponse.ProtoReflect.Descriptor instead.
func (*UserEditEMailResponse) GetCode ¶
func (x *UserEditEMailResponse) GetCode() string
func (*UserEditEMailResponse) GetMessage ¶
func (x *UserEditEMailResponse) GetMessage() string
func (*UserEditEMailResponse) ProtoMessage ¶
func (*UserEditEMailResponse) ProtoMessage()
func (*UserEditEMailResponse) ProtoReflect ¶
func (x *UserEditEMailResponse) ProtoReflect() protoreflect.Message
func (*UserEditEMailResponse) Reset ¶
func (x *UserEditEMailResponse) Reset()
func (*UserEditEMailResponse) String ¶
func (x *UserEditEMailResponse) String() string
func (*UserEditEMailResponse) Validate ¶
func (m *UserEditEMailResponse) Validate() error
Validate checks the field values on UserEditEMailResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*UserEditEMailResponse) ValidateAll ¶
func (m *UserEditEMailResponse) ValidateAll() error
ValidateAll checks the field values on UserEditEMailResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in UserEditEMailResponseMultiError, or nil if none found.
type UserEditEMailResponseMultiError ¶
type UserEditEMailResponseMultiError []error
UserEditEMailResponseMultiError is an error wrapping multiple validation errors returned by UserEditEMailResponse.ValidateAll() if the designated constraints aren't met.
func (UserEditEMailResponseMultiError) AllErrors ¶
func (m UserEditEMailResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UserEditEMailResponseMultiError) Error ¶
func (m UserEditEMailResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UserEditEMailResponseValidationError ¶
type UserEditEMailResponseValidationError struct {
// contains filtered or unexported fields
}
UserEditEMailResponseValidationError is the validation error returned by UserEditEMailResponse.Validate if the designated constraints aren't met.
func (UserEditEMailResponseValidationError) Cause ¶
func (e UserEditEMailResponseValidationError) Cause() error
Cause function returns cause value.
func (UserEditEMailResponseValidationError) Error ¶
func (e UserEditEMailResponseValidationError) Error() string
Error satisfies the builtin error interface
func (UserEditEMailResponseValidationError) ErrorName ¶
func (e UserEditEMailResponseValidationError) ErrorName() string
ErrorName returns error name.
func (UserEditEMailResponseValidationError) Field ¶
func (e UserEditEMailResponseValidationError) Field() string
Field function returns field value.
func (UserEditEMailResponseValidationError) Key ¶
func (e UserEditEMailResponseValidationError) Key() bool
Key function returns key value.
func (UserEditEMailResponseValidationError) Reason ¶
func (e UserEditEMailResponseValidationError) Reason() string
Reason function returns reason value.
type UserEditPasswordRequest ¶
type UserEditPasswordRequest struct { Password string `protobuf:"bytes,1,opt,name=password,proto3" json:"password,omitempty"` NewPassword string `protobuf:"bytes,2,opt,name=new_password,json=newPassword,proto3" json:"new_password,omitempty"` // contains filtered or unexported fields }
func (*UserEditPasswordRequest) Descriptor
deprecated
func (*UserEditPasswordRequest) Descriptor() ([]byte, []int)
Deprecated: Use UserEditPasswordRequest.ProtoReflect.Descriptor instead.
func (*UserEditPasswordRequest) GetNewPassword ¶
func (x *UserEditPasswordRequest) GetNewPassword() string
func (*UserEditPasswordRequest) GetPassword ¶
func (x *UserEditPasswordRequest) GetPassword() string
func (*UserEditPasswordRequest) ProtoMessage ¶
func (*UserEditPasswordRequest) ProtoMessage()
func (*UserEditPasswordRequest) ProtoReflect ¶
func (x *UserEditPasswordRequest) ProtoReflect() protoreflect.Message
func (*UserEditPasswordRequest) Reset ¶
func (x *UserEditPasswordRequest) Reset()
func (*UserEditPasswordRequest) String ¶
func (x *UserEditPasswordRequest) String() string
func (*UserEditPasswordRequest) Validate ¶
func (m *UserEditPasswordRequest) Validate() error
Validate checks the field values on UserEditPasswordRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*UserEditPasswordRequest) ValidateAll ¶
func (m *UserEditPasswordRequest) ValidateAll() error
ValidateAll checks the field values on UserEditPasswordRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in UserEditPasswordRequestMultiError, or nil if none found.
type UserEditPasswordRequestMultiError ¶
type UserEditPasswordRequestMultiError []error
UserEditPasswordRequestMultiError is an error wrapping multiple validation errors returned by UserEditPasswordRequest.ValidateAll() if the designated constraints aren't met.
func (UserEditPasswordRequestMultiError) AllErrors ¶
func (m UserEditPasswordRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UserEditPasswordRequestMultiError) Error ¶
func (m UserEditPasswordRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UserEditPasswordRequestValidationError ¶
type UserEditPasswordRequestValidationError struct {
// contains filtered or unexported fields
}
UserEditPasswordRequestValidationError is the validation error returned by UserEditPasswordRequest.Validate if the designated constraints aren't met.
func (UserEditPasswordRequestValidationError) Cause ¶
func (e UserEditPasswordRequestValidationError) Cause() error
Cause function returns cause value.
func (UserEditPasswordRequestValidationError) Error ¶
func (e UserEditPasswordRequestValidationError) Error() string
Error satisfies the builtin error interface
func (UserEditPasswordRequestValidationError) ErrorName ¶
func (e UserEditPasswordRequestValidationError) ErrorName() string
ErrorName returns error name.
func (UserEditPasswordRequestValidationError) Field ¶
func (e UserEditPasswordRequestValidationError) Field() string
Field function returns field value.
func (UserEditPasswordRequestValidationError) Key ¶
func (e UserEditPasswordRequestValidationError) Key() bool
Key function returns key value.
func (UserEditPasswordRequestValidationError) Reason ¶
func (e UserEditPasswordRequestValidationError) Reason() string
Reason function returns reason value.
type UserEditPasswordResponse ¶
type UserEditPasswordResponse struct { Code string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"` Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` // contains filtered or unexported fields }
func (*UserEditPasswordResponse) Descriptor
deprecated
func (*UserEditPasswordResponse) Descriptor() ([]byte, []int)
Deprecated: Use UserEditPasswordResponse.ProtoReflect.Descriptor instead.
func (*UserEditPasswordResponse) GetCode ¶
func (x *UserEditPasswordResponse) GetCode() string
func (*UserEditPasswordResponse) GetMessage ¶
func (x *UserEditPasswordResponse) GetMessage() string
func (*UserEditPasswordResponse) ProtoMessage ¶
func (*UserEditPasswordResponse) ProtoMessage()
func (*UserEditPasswordResponse) ProtoReflect ¶
func (x *UserEditPasswordResponse) ProtoReflect() protoreflect.Message
func (*UserEditPasswordResponse) Reset ¶
func (x *UserEditPasswordResponse) Reset()
func (*UserEditPasswordResponse) String ¶
func (x *UserEditPasswordResponse) String() string
func (*UserEditPasswordResponse) Validate ¶
func (m *UserEditPasswordResponse) Validate() error
Validate checks the field values on UserEditPasswordResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*UserEditPasswordResponse) ValidateAll ¶
func (m *UserEditPasswordResponse) ValidateAll() error
ValidateAll checks the field values on UserEditPasswordResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in UserEditPasswordResponseMultiError, or nil if none found.
type UserEditPasswordResponseMultiError ¶
type UserEditPasswordResponseMultiError []error
UserEditPasswordResponseMultiError is an error wrapping multiple validation errors returned by UserEditPasswordResponse.ValidateAll() if the designated constraints aren't met.
func (UserEditPasswordResponseMultiError) AllErrors ¶
func (m UserEditPasswordResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UserEditPasswordResponseMultiError) Error ¶
func (m UserEditPasswordResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UserEditPasswordResponseValidationError ¶
type UserEditPasswordResponseValidationError struct {
// contains filtered or unexported fields
}
UserEditPasswordResponseValidationError is the validation error returned by UserEditPasswordResponse.Validate if the designated constraints aren't met.
func (UserEditPasswordResponseValidationError) Cause ¶
func (e UserEditPasswordResponseValidationError) Cause() error
Cause function returns cause value.
func (UserEditPasswordResponseValidationError) Error ¶
func (e UserEditPasswordResponseValidationError) Error() string
Error satisfies the builtin error interface
func (UserEditPasswordResponseValidationError) ErrorName ¶
func (e UserEditPasswordResponseValidationError) ErrorName() string
ErrorName returns error name.
func (UserEditPasswordResponseValidationError) Field ¶
func (e UserEditPasswordResponseValidationError) Field() string
Field function returns field value.
func (UserEditPasswordResponseValidationError) Key ¶
func (e UserEditPasswordResponseValidationError) Key() bool
Key function returns key value.
func (UserEditPasswordResponseValidationError) Reason ¶
func (e UserEditPasswordResponseValidationError) Reason() string
Reason function returns reason value.
type UserEditUsernameRequest ¶
type UserEditUsernameRequest struct { Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"` Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` // contains filtered or unexported fields }
func (*UserEditUsernameRequest) Descriptor
deprecated
func (*UserEditUsernameRequest) Descriptor() ([]byte, []int)
Deprecated: Use UserEditUsernameRequest.ProtoReflect.Descriptor instead.
func (*UserEditUsernameRequest) GetPassword ¶
func (x *UserEditUsernameRequest) GetPassword() string
func (*UserEditUsernameRequest) GetUsername ¶
func (x *UserEditUsernameRequest) GetUsername() string
func (*UserEditUsernameRequest) ProtoMessage ¶
func (*UserEditUsernameRequest) ProtoMessage()
func (*UserEditUsernameRequest) ProtoReflect ¶
func (x *UserEditUsernameRequest) ProtoReflect() protoreflect.Message
func (*UserEditUsernameRequest) Reset ¶
func (x *UserEditUsernameRequest) Reset()
func (*UserEditUsernameRequest) String ¶
func (x *UserEditUsernameRequest) String() string
func (*UserEditUsernameRequest) Validate ¶
func (m *UserEditUsernameRequest) Validate() error
Validate checks the field values on UserEditUsernameRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*UserEditUsernameRequest) ValidateAll ¶
func (m *UserEditUsernameRequest) ValidateAll() error
ValidateAll checks the field values on UserEditUsernameRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in UserEditUsernameRequestMultiError, or nil if none found.
type UserEditUsernameRequestMultiError ¶
type UserEditUsernameRequestMultiError []error
UserEditUsernameRequestMultiError is an error wrapping multiple validation errors returned by UserEditUsernameRequest.ValidateAll() if the designated constraints aren't met.
func (UserEditUsernameRequestMultiError) AllErrors ¶
func (m UserEditUsernameRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UserEditUsernameRequestMultiError) Error ¶
func (m UserEditUsernameRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UserEditUsernameRequestValidationError ¶
type UserEditUsernameRequestValidationError struct {
// contains filtered or unexported fields
}
UserEditUsernameRequestValidationError is the validation error returned by UserEditUsernameRequest.Validate if the designated constraints aren't met.
func (UserEditUsernameRequestValidationError) Cause ¶
func (e UserEditUsernameRequestValidationError) Cause() error
Cause function returns cause value.
func (UserEditUsernameRequestValidationError) Error ¶
func (e UserEditUsernameRequestValidationError) Error() string
Error satisfies the builtin error interface
func (UserEditUsernameRequestValidationError) ErrorName ¶
func (e UserEditUsernameRequestValidationError) ErrorName() string
ErrorName returns error name.
func (UserEditUsernameRequestValidationError) Field ¶
func (e UserEditUsernameRequestValidationError) Field() string
Field function returns field value.
func (UserEditUsernameRequestValidationError) Key ¶
func (e UserEditUsernameRequestValidationError) Key() bool
Key function returns key value.
func (UserEditUsernameRequestValidationError) Reason ¶
func (e UserEditUsernameRequestValidationError) Reason() string
Reason function returns reason value.
type UserEditUsernameResponse ¶
type UserEditUsernameResponse struct { Code string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"` Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` // contains filtered or unexported fields }
func (*UserEditUsernameResponse) Descriptor
deprecated
func (*UserEditUsernameResponse) Descriptor() ([]byte, []int)
Deprecated: Use UserEditUsernameResponse.ProtoReflect.Descriptor instead.
func (*UserEditUsernameResponse) GetCode ¶
func (x *UserEditUsernameResponse) GetCode() string
func (*UserEditUsernameResponse) GetMessage ¶
func (x *UserEditUsernameResponse) GetMessage() string
func (*UserEditUsernameResponse) ProtoMessage ¶
func (*UserEditUsernameResponse) ProtoMessage()
func (*UserEditUsernameResponse) ProtoReflect ¶
func (x *UserEditUsernameResponse) ProtoReflect() protoreflect.Message
func (*UserEditUsernameResponse) Reset ¶
func (x *UserEditUsernameResponse) Reset()
func (*UserEditUsernameResponse) String ¶
func (x *UserEditUsernameResponse) String() string
func (*UserEditUsernameResponse) Validate ¶
func (m *UserEditUsernameResponse) Validate() error
Validate checks the field values on UserEditUsernameResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*UserEditUsernameResponse) ValidateAll ¶
func (m *UserEditUsernameResponse) ValidateAll() error
ValidateAll checks the field values on UserEditUsernameResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in UserEditUsernameResponseMultiError, or nil if none found.
type UserEditUsernameResponseMultiError ¶
type UserEditUsernameResponseMultiError []error
UserEditUsernameResponseMultiError is an error wrapping multiple validation errors returned by UserEditUsernameResponse.ValidateAll() if the designated constraints aren't met.
func (UserEditUsernameResponseMultiError) AllErrors ¶
func (m UserEditUsernameResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UserEditUsernameResponseMultiError) Error ¶
func (m UserEditUsernameResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UserEditUsernameResponseValidationError ¶
type UserEditUsernameResponseValidationError struct {
// contains filtered or unexported fields
}
UserEditUsernameResponseValidationError is the validation error returned by UserEditUsernameResponse.Validate if the designated constraints aren't met.
func (UserEditUsernameResponseValidationError) Cause ¶
func (e UserEditUsernameResponseValidationError) Cause() error
Cause function returns cause value.
func (UserEditUsernameResponseValidationError) Error ¶
func (e UserEditUsernameResponseValidationError) Error() string
Error satisfies the builtin error interface
func (UserEditUsernameResponseValidationError) ErrorName ¶
func (e UserEditUsernameResponseValidationError) ErrorName() string
ErrorName returns error name.
func (UserEditUsernameResponseValidationError) Field ¶
func (e UserEditUsernameResponseValidationError) Field() string
Field function returns field value.
func (UserEditUsernameResponseValidationError) Key ¶
func (e UserEditUsernameResponseValidationError) Key() bool
Key function returns key value.
func (UserEditUsernameResponseValidationError) Reason ¶
func (e UserEditUsernameResponseValidationError) Reason() string
Reason function returns reason value.
type UserGetResponse ¶
type UserGetResponse struct { Code string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"` Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` User *User `protobuf:"bytes,3,opt,name=user,proto3" json:"user,omitempty"` // contains filtered or unexported fields }
func (*UserGetResponse) Descriptor
deprecated
func (*UserGetResponse) Descriptor() ([]byte, []int)
Deprecated: Use UserGetResponse.ProtoReflect.Descriptor instead.
func (*UserGetResponse) GetCode ¶
func (x *UserGetResponse) GetCode() string
func (*UserGetResponse) GetMessage ¶
func (x *UserGetResponse) GetMessage() string
func (*UserGetResponse) GetUser ¶
func (x *UserGetResponse) GetUser() *User
func (*UserGetResponse) ProtoMessage ¶
func (*UserGetResponse) ProtoMessage()
func (*UserGetResponse) ProtoReflect ¶
func (x *UserGetResponse) ProtoReflect() protoreflect.Message
func (*UserGetResponse) Reset ¶
func (x *UserGetResponse) Reset()
func (*UserGetResponse) String ¶
func (x *UserGetResponse) String() string
func (*UserGetResponse) Validate ¶
func (m *UserGetResponse) Validate() error
Validate checks the field values on UserGetResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*UserGetResponse) ValidateAll ¶
func (m *UserGetResponse) ValidateAll() error
ValidateAll checks the field values on UserGetResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in UserGetResponseMultiError, or nil if none found.
type UserGetResponseMultiError ¶
type UserGetResponseMultiError []error
UserGetResponseMultiError is an error wrapping multiple validation errors returned by UserGetResponse.ValidateAll() if the designated constraints aren't met.
func (UserGetResponseMultiError) AllErrors ¶
func (m UserGetResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UserGetResponseMultiError) Error ¶
func (m UserGetResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UserGetResponseValidationError ¶
type UserGetResponseValidationError struct {
// contains filtered or unexported fields
}
UserGetResponseValidationError is the validation error returned by UserGetResponse.Validate if the designated constraints aren't met.
func (UserGetResponseValidationError) Cause ¶
func (e UserGetResponseValidationError) Cause() error
Cause function returns cause value.
func (UserGetResponseValidationError) Error ¶
func (e UserGetResponseValidationError) Error() string
Error satisfies the builtin error interface
func (UserGetResponseValidationError) ErrorName ¶
func (e UserGetResponseValidationError) ErrorName() string
ErrorName returns error name.
func (UserGetResponseValidationError) Field ¶
func (e UserGetResponseValidationError) Field() string
Field function returns field value.
func (UserGetResponseValidationError) Key ¶
func (e UserGetResponseValidationError) Key() bool
Key function returns key value.
func (UserGetResponseValidationError) Reason ¶
func (e UserGetResponseValidationError) Reason() string
Reason function returns reason value.
type UserMultiError ¶
type UserMultiError []error
UserMultiError is an error wrapping multiple validation errors returned by User.ValidateAll() if the designated constraints aren't met.
func (UserMultiError) AllErrors ¶
func (m UserMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UserMultiError) Error ¶
func (m UserMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UserUpdateRequest ¶
type UserUpdateRequest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Bio string `protobuf:"bytes,2,opt,name=bio,proto3" json:"bio,omitempty"` Avatar string `protobuf:"bytes,3,opt,name=avatar,proto3" json:"avatar,omitempty"` Private bool `protobuf:"varint,4,opt,name=private,proto3" json:"private,omitempty"` // contains filtered or unexported fields }
func (*UserUpdateRequest) Descriptor
deprecated
func (*UserUpdateRequest) Descriptor() ([]byte, []int)
Deprecated: Use UserUpdateRequest.ProtoReflect.Descriptor instead.
func (*UserUpdateRequest) GetAvatar ¶
func (x *UserUpdateRequest) GetAvatar() string
func (*UserUpdateRequest) GetBio ¶
func (x *UserUpdateRequest) GetBio() string
func (*UserUpdateRequest) GetName ¶
func (x *UserUpdateRequest) GetName() string
func (*UserUpdateRequest) GetPrivate ¶
func (x *UserUpdateRequest) GetPrivate() bool
func (*UserUpdateRequest) ProtoMessage ¶
func (*UserUpdateRequest) ProtoMessage()
func (*UserUpdateRequest) ProtoReflect ¶
func (x *UserUpdateRequest) ProtoReflect() protoreflect.Message
func (*UserUpdateRequest) Reset ¶
func (x *UserUpdateRequest) Reset()
func (*UserUpdateRequest) String ¶
func (x *UserUpdateRequest) String() string
func (*UserUpdateRequest) Validate ¶
func (m *UserUpdateRequest) Validate() error
Validate checks the field values on UserUpdateRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*UserUpdateRequest) ValidateAll ¶
func (m *UserUpdateRequest) ValidateAll() error
ValidateAll checks the field values on UserUpdateRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in UserUpdateRequestMultiError, or nil if none found.
type UserUpdateRequestMultiError ¶
type UserUpdateRequestMultiError []error
UserUpdateRequestMultiError is an error wrapping multiple validation errors returned by UserUpdateRequest.ValidateAll() if the designated constraints aren't met.
func (UserUpdateRequestMultiError) AllErrors ¶
func (m UserUpdateRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UserUpdateRequestMultiError) Error ¶
func (m UserUpdateRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UserUpdateRequestValidationError ¶
type UserUpdateRequestValidationError struct {
// contains filtered or unexported fields
}
UserUpdateRequestValidationError is the validation error returned by UserUpdateRequest.Validate if the designated constraints aren't met.
func (UserUpdateRequestValidationError) Cause ¶
func (e UserUpdateRequestValidationError) Cause() error
Cause function returns cause value.
func (UserUpdateRequestValidationError) Error ¶
func (e UserUpdateRequestValidationError) Error() string
Error satisfies the builtin error interface
func (UserUpdateRequestValidationError) ErrorName ¶
func (e UserUpdateRequestValidationError) ErrorName() string
ErrorName returns error name.
func (UserUpdateRequestValidationError) Field ¶
func (e UserUpdateRequestValidationError) Field() string
Field function returns field value.
func (UserUpdateRequestValidationError) Key ¶
func (e UserUpdateRequestValidationError) Key() bool
Key function returns key value.
func (UserUpdateRequestValidationError) Reason ¶
func (e UserUpdateRequestValidationError) Reason() string
Reason function returns reason value.
type UserUpdateResponse ¶
type UserUpdateResponse struct { Code string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"` Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` // contains filtered or unexported fields }
func (*UserUpdateResponse) Descriptor
deprecated
func (*UserUpdateResponse) Descriptor() ([]byte, []int)
Deprecated: Use UserUpdateResponse.ProtoReflect.Descriptor instead.
func (*UserUpdateResponse) GetCode ¶
func (x *UserUpdateResponse) GetCode() string
func (*UserUpdateResponse) GetMessage ¶
func (x *UserUpdateResponse) GetMessage() string
func (*UserUpdateResponse) ProtoMessage ¶
func (*UserUpdateResponse) ProtoMessage()
func (*UserUpdateResponse) ProtoReflect ¶
func (x *UserUpdateResponse) ProtoReflect() protoreflect.Message
func (*UserUpdateResponse) Reset ¶
func (x *UserUpdateResponse) Reset()
func (*UserUpdateResponse) String ¶
func (x *UserUpdateResponse) String() string
func (*UserUpdateResponse) Validate ¶
func (m *UserUpdateResponse) Validate() error
Validate checks the field values on UserUpdateResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*UserUpdateResponse) ValidateAll ¶
func (m *UserUpdateResponse) ValidateAll() error
ValidateAll checks the field values on UserUpdateResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in UserUpdateResponseMultiError, or nil if none found.
type UserUpdateResponseMultiError ¶
type UserUpdateResponseMultiError []error
UserUpdateResponseMultiError is an error wrapping multiple validation errors returned by UserUpdateResponse.ValidateAll() if the designated constraints aren't met.
func (UserUpdateResponseMultiError) AllErrors ¶
func (m UserUpdateResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UserUpdateResponseMultiError) Error ¶
func (m UserUpdateResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UserUpdateResponseValidationError ¶
type UserUpdateResponseValidationError struct {
// contains filtered or unexported fields
}
UserUpdateResponseValidationError is the validation error returned by UserUpdateResponse.Validate if the designated constraints aren't met.
func (UserUpdateResponseValidationError) Cause ¶
func (e UserUpdateResponseValidationError) Cause() error
Cause function returns cause value.
func (UserUpdateResponseValidationError) Error ¶
func (e UserUpdateResponseValidationError) Error() string
Error satisfies the builtin error interface
func (UserUpdateResponseValidationError) ErrorName ¶
func (e UserUpdateResponseValidationError) ErrorName() string
ErrorName returns error name.
func (UserUpdateResponseValidationError) Field ¶
func (e UserUpdateResponseValidationError) Field() string
Field function returns field value.
func (UserUpdateResponseValidationError) Key ¶
func (e UserUpdateResponseValidationError) Key() bool
Key function returns key value.
func (UserUpdateResponseValidationError) Reason ¶
func (e UserUpdateResponseValidationError) Reason() string
Reason function returns reason value.
type UserValidationError ¶
type UserValidationError struct {
// contains filtered or unexported fields
}
UserValidationError is the validation error returned by User.Validate if the designated constraints aren't met.
func (UserValidationError) Cause ¶
func (e UserValidationError) Cause() error
Cause function returns cause value.
func (UserValidationError) Error ¶
func (e UserValidationError) Error() string
Error satisfies the builtin error interface
func (UserValidationError) ErrorName ¶
func (e UserValidationError) ErrorName() string
ErrorName returns error name.
func (UserValidationError) Field ¶
func (e UserValidationError) Field() string
Field function returns field value.
func (UserValidationError) Key ¶
func (e UserValidationError) Key() bool
Key function returns key value.
func (UserValidationError) Reason ¶
func (e UserValidationError) Reason() string
Reason function returns reason value.