Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterOAuth2ServiceServer(s grpc.ServiceRegistrar, srv OAuth2ServiceServer)
- type OAuth2ServiceClient
- type OAuth2ServiceServer
- type RefreshRequest
- func (*RefreshRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RefreshRequest) GetRefreshToken() string
- func (*RefreshRequest) ProtoMessage()
- func (x *RefreshRequest) ProtoReflect() protoreflect.Message
- func (x *RefreshRequest) Reset()
- func (x *RefreshRequest) String() string
- func (m *RefreshRequest) Validate() error
- func (m *RefreshRequest) ValidateAll() error
- type RefreshRequestMultiError
- type RefreshRequestValidationError
- func (e RefreshRequestValidationError) Cause() error
- func (e RefreshRequestValidationError) Error() string
- func (e RefreshRequestValidationError) ErrorName() string
- func (e RefreshRequestValidationError) Field() string
- func (e RefreshRequestValidationError) Key() bool
- func (e RefreshRequestValidationError) Reason() string
- type RefreshResponse
- func (*RefreshResponse) Descriptor() ([]byte, []int)deprecated
- func (x *RefreshResponse) GetAccessToken() string
- func (x *RefreshResponse) GetRefreshToken() string
- func (*RefreshResponse) ProtoMessage()
- func (x *RefreshResponse) ProtoReflect() protoreflect.Message
- func (x *RefreshResponse) Reset()
- func (x *RefreshResponse) String() string
- func (m *RefreshResponse) Validate() error
- func (m *RefreshResponse) ValidateAll() error
- type RefreshResponseMultiError
- type RefreshResponseValidationError
- func (e RefreshResponseValidationError) Cause() error
- func (e RefreshResponseValidationError) Error() string
- func (e RefreshResponseValidationError) ErrorName() string
- func (e RefreshResponseValidationError) Field() string
- func (e RefreshResponseValidationError) Key() bool
- func (e RefreshResponseValidationError) Reason() string
- type SignInRequest
- func (*SignInRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SignInRequest) GetPassword() string
- func (x *SignInRequest) GetUsername() string
- func (*SignInRequest) ProtoMessage()
- func (x *SignInRequest) ProtoReflect() protoreflect.Message
- func (x *SignInRequest) Reset()
- func (x *SignInRequest) String() string
- func (m *SignInRequest) Validate() error
- func (m *SignInRequest) ValidateAll() error
- type SignInRequestMultiError
- type SignInRequestValidationError
- func (e SignInRequestValidationError) Cause() error
- func (e SignInRequestValidationError) Error() string
- func (e SignInRequestValidationError) ErrorName() string
- func (e SignInRequestValidationError) Field() string
- func (e SignInRequestValidationError) Key() bool
- func (e SignInRequestValidationError) Reason() string
- type SignInResponse
- func (*SignInResponse) Descriptor() ([]byte, []int)deprecated
- func (x *SignInResponse) GetAccessToken() string
- func (x *SignInResponse) GetRefreshToken() string
- func (*SignInResponse) ProtoMessage()
- func (x *SignInResponse) ProtoReflect() protoreflect.Message
- func (x *SignInResponse) Reset()
- func (x *SignInResponse) String() string
- func (m *SignInResponse) Validate() error
- func (m *SignInResponse) ValidateAll() error
- type SignInResponseMultiError
- type SignInResponseValidationError
- func (e SignInResponseValidationError) Cause() error
- func (e SignInResponseValidationError) Error() string
- func (e SignInResponseValidationError) ErrorName() string
- func (e SignInResponseValidationError) Field() string
- func (e SignInResponseValidationError) Key() bool
- func (e SignInResponseValidationError) Reason() string
- type SignOutRequest
- func (*SignOutRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SignOutRequest) GetAccessToken() string
- func (*SignOutRequest) ProtoMessage()
- func (x *SignOutRequest) ProtoReflect() protoreflect.Message
- func (x *SignOutRequest) Reset()
- func (x *SignOutRequest) String() string
- func (m *SignOutRequest) Validate() error
- func (m *SignOutRequest) ValidateAll() error
- type SignOutRequestMultiError
- type SignOutRequestValidationError
- func (e SignOutRequestValidationError) Cause() error
- func (e SignOutRequestValidationError) Error() string
- func (e SignOutRequestValidationError) ErrorName() string
- func (e SignOutRequestValidationError) Field() string
- func (e SignOutRequestValidationError) Key() bool
- func (e SignOutRequestValidationError) Reason() string
- type SignOutResponse
- func (*SignOutResponse) Descriptor() ([]byte, []int)deprecated
- func (*SignOutResponse) ProtoMessage()
- func (x *SignOutResponse) ProtoReflect() protoreflect.Message
- func (x *SignOutResponse) Reset()
- func (x *SignOutResponse) String() string
- func (m *SignOutResponse) Validate() error
- func (m *SignOutResponse) ValidateAll() error
- type SignOutResponseMultiError
- type SignOutResponseValidationError
- func (e SignOutResponseValidationError) Cause() error
- func (e SignOutResponseValidationError) Error() string
- func (e SignOutResponseValidationError) ErrorName() string
- func (e SignOutResponseValidationError) Field() string
- func (e SignOutResponseValidationError) Key() bool
- func (e SignOutResponseValidationError) Reason() string
- type SignUpRequest
- func (*SignUpRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SignUpRequest) GetPassword() string
- func (x *SignUpRequest) GetUsername() string
- func (*SignUpRequest) ProtoMessage()
- func (x *SignUpRequest) ProtoReflect() protoreflect.Message
- func (x *SignUpRequest) Reset()
- func (x *SignUpRequest) String() string
- func (m *SignUpRequest) Validate() error
- func (m *SignUpRequest) ValidateAll() error
- type SignUpRequestMultiError
- type SignUpRequestValidationError
- func (e SignUpRequestValidationError) Cause() error
- func (e SignUpRequestValidationError) Error() string
- func (e SignUpRequestValidationError) ErrorName() string
- func (e SignUpRequestValidationError) Field() string
- func (e SignUpRequestValidationError) Key() bool
- func (e SignUpRequestValidationError) Reason() string
- type SignUpResponse
- func (*SignUpResponse) Descriptor() ([]byte, []int)deprecated
- func (*SignUpResponse) ProtoMessage()
- func (x *SignUpResponse) ProtoReflect() protoreflect.Message
- func (x *SignUpResponse) Reset()
- func (x *SignUpResponse) String() string
- func (m *SignUpResponse) Validate() error
- func (m *SignUpResponse) ValidateAll() error
- type SignUpResponseMultiError
- type SignUpResponseValidationError
- func (e SignUpResponseValidationError) Cause() error
- func (e SignUpResponseValidationError) Error() string
- func (e SignUpResponseValidationError) ErrorName() string
- func (e SignUpResponseValidationError) Field() string
- func (e SignUpResponseValidationError) Key() bool
- func (e SignUpResponseValidationError) Reason() string
- type UnimplementedOAuth2ServiceServer
- func (UnimplementedOAuth2ServiceServer) Refresh(context.Context, *RefreshRequest) (*RefreshResponse, error)
- func (UnimplementedOAuth2ServiceServer) SignIn(context.Context, *SignInRequest) (*SignInResponse, error)
- func (UnimplementedOAuth2ServiceServer) SignOut(context.Context, *SignOutRequest) (*SignOutResponse, error)
- func (UnimplementedOAuth2ServiceServer) SignUp(context.Context, *SignUpRequest) (*SignUpResponse, error)
- type UnsafeOAuth2ServiceServer
Constants ¶
const ( OAuth2Service_SignUp_FullMethodName = "/OAuth2Service/SignUp" OAuth2Service_SignIn_FullMethodName = "/OAuth2Service/SignIn" OAuth2Service_SignOut_FullMethodName = "/OAuth2Service/SignOut" OAuth2Service_Refresh_FullMethodName = "/OAuth2Service/Refresh" )
Variables ¶
var File_oauth2_proto protoreflect.FileDescriptor
var File_oauth2_refresh_proto protoreflect.FileDescriptor
var File_oauth2_signin_proto protoreflect.FileDescriptor
var File_oauth2_signout_proto protoreflect.FileDescriptor
var File_oauth2_signup_proto protoreflect.FileDescriptor
var OAuth2Service_ServiceDesc = grpc.ServiceDesc{ ServiceName: "OAuth2Service", HandlerType: (*OAuth2ServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "SignUp", Handler: _OAuth2Service_SignUp_Handler, }, { MethodName: "SignIn", Handler: _OAuth2Service_SignIn_Handler, }, { MethodName: "SignOut", Handler: _OAuth2Service_SignOut_Handler, }, { MethodName: "Refresh", Handler: _OAuth2Service_Refresh_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "oauth2.proto", }
OAuth2Service_ServiceDesc is the grpc.ServiceDesc for OAuth2Service service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterOAuth2ServiceServer ¶
func RegisterOAuth2ServiceServer(s grpc.ServiceRegistrar, srv OAuth2ServiceServer)
Types ¶
type OAuth2ServiceClient ¶
type OAuth2ServiceClient interface { SignUp(ctx context.Context, in *SignUpRequest, opts ...grpc.CallOption) (*SignUpResponse, error) SignIn(ctx context.Context, in *SignInRequest, opts ...grpc.CallOption) (*SignInResponse, error) SignOut(ctx context.Context, in *SignOutRequest, opts ...grpc.CallOption) (*SignOutResponse, error) Refresh(ctx context.Context, in *RefreshRequest, opts ...grpc.CallOption) (*RefreshResponse, error) }
OAuth2ServiceClient is the client API for OAuth2Service 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 NewOAuth2ServiceClient ¶
func NewOAuth2ServiceClient(cc grpc.ClientConnInterface) OAuth2ServiceClient
type OAuth2ServiceServer ¶
type OAuth2ServiceServer interface { SignUp(context.Context, *SignUpRequest) (*SignUpResponse, error) SignIn(context.Context, *SignInRequest) (*SignInResponse, error) SignOut(context.Context, *SignOutRequest) (*SignOutResponse, error) Refresh(context.Context, *RefreshRequest) (*RefreshResponse, error) // contains filtered or unexported methods }
OAuth2ServiceServer is the server API for OAuth2Service service. All implementations must embed UnimplementedOAuth2ServiceServer for forward compatibility
type RefreshRequest ¶
type RefreshRequest struct { RefreshToken string `protobuf:"bytes,1,opt,name=refresh_token,json=refreshToken,proto3" json:"refresh_token,omitempty"` // contains filtered or unexported fields }
func (*RefreshRequest) Descriptor
deprecated
func (*RefreshRequest) Descriptor() ([]byte, []int)
Deprecated: Use RefreshRequest.ProtoReflect.Descriptor instead.
func (*RefreshRequest) GetRefreshToken ¶
func (x *RefreshRequest) GetRefreshToken() string
func (*RefreshRequest) ProtoMessage ¶
func (*RefreshRequest) ProtoMessage()
func (*RefreshRequest) ProtoReflect ¶
func (x *RefreshRequest) ProtoReflect() protoreflect.Message
func (*RefreshRequest) Reset ¶
func (x *RefreshRequest) Reset()
func (*RefreshRequest) String ¶
func (x *RefreshRequest) String() string
func (*RefreshRequest) Validate ¶
func (m *RefreshRequest) Validate() error
Validate checks the field values on RefreshRequest 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 (*RefreshRequest) ValidateAll ¶
func (m *RefreshRequest) ValidateAll() error
ValidateAll checks the field values on RefreshRequest 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 RefreshRequestMultiError, or nil if none found.
type RefreshRequestMultiError ¶
type RefreshRequestMultiError []error
RefreshRequestMultiError is an error wrapping multiple validation errors returned by RefreshRequest.ValidateAll() if the designated constraints aren't met.
func (RefreshRequestMultiError) AllErrors ¶
func (m RefreshRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (RefreshRequestMultiError) Error ¶
func (m RefreshRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type RefreshRequestValidationError ¶
type RefreshRequestValidationError struct {
// contains filtered or unexported fields
}
RefreshRequestValidationError is the validation error returned by RefreshRequest.Validate if the designated constraints aren't met.
func (RefreshRequestValidationError) Cause ¶
func (e RefreshRequestValidationError) Cause() error
Cause function returns cause value.
func (RefreshRequestValidationError) Error ¶
func (e RefreshRequestValidationError) Error() string
Error satisfies the builtin error interface
func (RefreshRequestValidationError) ErrorName ¶
func (e RefreshRequestValidationError) ErrorName() string
ErrorName returns error name.
func (RefreshRequestValidationError) Field ¶
func (e RefreshRequestValidationError) Field() string
Field function returns field value.
func (RefreshRequestValidationError) Key ¶
func (e RefreshRequestValidationError) Key() bool
Key function returns key value.
func (RefreshRequestValidationError) Reason ¶
func (e RefreshRequestValidationError) Reason() string
Reason function returns reason value.
type RefreshResponse ¶
type RefreshResponse struct { AccessToken string `protobuf:"bytes,1,opt,name=access_token,json=accessToken,proto3" json:"access_token,omitempty"` RefreshToken string `protobuf:"bytes,2,opt,name=refresh_token,json=refreshToken,proto3" json:"refresh_token,omitempty"` // contains filtered or unexported fields }
func (*RefreshResponse) Descriptor
deprecated
func (*RefreshResponse) Descriptor() ([]byte, []int)
Deprecated: Use RefreshResponse.ProtoReflect.Descriptor instead.
func (*RefreshResponse) GetAccessToken ¶
func (x *RefreshResponse) GetAccessToken() string
func (*RefreshResponse) GetRefreshToken ¶
func (x *RefreshResponse) GetRefreshToken() string
func (*RefreshResponse) ProtoMessage ¶
func (*RefreshResponse) ProtoMessage()
func (*RefreshResponse) ProtoReflect ¶
func (x *RefreshResponse) ProtoReflect() protoreflect.Message
func (*RefreshResponse) Reset ¶
func (x *RefreshResponse) Reset()
func (*RefreshResponse) String ¶
func (x *RefreshResponse) String() string
func (*RefreshResponse) Validate ¶
func (m *RefreshResponse) Validate() error
Validate checks the field values on RefreshResponse 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 (*RefreshResponse) ValidateAll ¶
func (m *RefreshResponse) ValidateAll() error
ValidateAll checks the field values on RefreshResponse 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 RefreshResponseMultiError, or nil if none found.
type RefreshResponseMultiError ¶
type RefreshResponseMultiError []error
RefreshResponseMultiError is an error wrapping multiple validation errors returned by RefreshResponse.ValidateAll() if the designated constraints aren't met.
func (RefreshResponseMultiError) AllErrors ¶
func (m RefreshResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (RefreshResponseMultiError) Error ¶
func (m RefreshResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type RefreshResponseValidationError ¶
type RefreshResponseValidationError struct {
// contains filtered or unexported fields
}
RefreshResponseValidationError is the validation error returned by RefreshResponse.Validate if the designated constraints aren't met.
func (RefreshResponseValidationError) Cause ¶
func (e RefreshResponseValidationError) Cause() error
Cause function returns cause value.
func (RefreshResponseValidationError) Error ¶
func (e RefreshResponseValidationError) Error() string
Error satisfies the builtin error interface
func (RefreshResponseValidationError) ErrorName ¶
func (e RefreshResponseValidationError) ErrorName() string
ErrorName returns error name.
func (RefreshResponseValidationError) Field ¶
func (e RefreshResponseValidationError) Field() string
Field function returns field value.
func (RefreshResponseValidationError) Key ¶
func (e RefreshResponseValidationError) Key() bool
Key function returns key value.
func (RefreshResponseValidationError) Reason ¶
func (e RefreshResponseValidationError) Reason() string
Reason function returns reason value.
type SignInRequest ¶
type SignInRequest 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 (*SignInRequest) Descriptor
deprecated
func (*SignInRequest) Descriptor() ([]byte, []int)
Deprecated: Use SignInRequest.ProtoReflect.Descriptor instead.
func (*SignInRequest) GetPassword ¶
func (x *SignInRequest) GetPassword() string
func (*SignInRequest) GetUsername ¶
func (x *SignInRequest) GetUsername() string
func (*SignInRequest) ProtoMessage ¶
func (*SignInRequest) ProtoMessage()
func (*SignInRequest) ProtoReflect ¶
func (x *SignInRequest) ProtoReflect() protoreflect.Message
func (*SignInRequest) Reset ¶
func (x *SignInRequest) Reset()
func (*SignInRequest) String ¶
func (x *SignInRequest) String() string
func (*SignInRequest) Validate ¶
func (m *SignInRequest) Validate() error
Validate checks the field values on SignInRequest 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 (*SignInRequest) ValidateAll ¶
func (m *SignInRequest) ValidateAll() error
ValidateAll checks the field values on SignInRequest 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 SignInRequestMultiError, or nil if none found.
type SignInRequestMultiError ¶
type SignInRequestMultiError []error
SignInRequestMultiError is an error wrapping multiple validation errors returned by SignInRequest.ValidateAll() if the designated constraints aren't met.
func (SignInRequestMultiError) AllErrors ¶
func (m SignInRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (SignInRequestMultiError) Error ¶
func (m SignInRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type SignInRequestValidationError ¶
type SignInRequestValidationError struct {
// contains filtered or unexported fields
}
SignInRequestValidationError is the validation error returned by SignInRequest.Validate if the designated constraints aren't met.
func (SignInRequestValidationError) Cause ¶
func (e SignInRequestValidationError) Cause() error
Cause function returns cause value.
func (SignInRequestValidationError) Error ¶
func (e SignInRequestValidationError) Error() string
Error satisfies the builtin error interface
func (SignInRequestValidationError) ErrorName ¶
func (e SignInRequestValidationError) ErrorName() string
ErrorName returns error name.
func (SignInRequestValidationError) Field ¶
func (e SignInRequestValidationError) Field() string
Field function returns field value.
func (SignInRequestValidationError) Key ¶
func (e SignInRequestValidationError) Key() bool
Key function returns key value.
func (SignInRequestValidationError) Reason ¶
func (e SignInRequestValidationError) Reason() string
Reason function returns reason value.
type SignInResponse ¶
type SignInResponse struct { AccessToken string `protobuf:"bytes,1,opt,name=access_token,json=accessToken,proto3" json:"access_token,omitempty"` RefreshToken string `protobuf:"bytes,2,opt,name=refresh_token,json=refreshToken,proto3" json:"refresh_token,omitempty"` // contains filtered or unexported fields }
func (*SignInResponse) Descriptor
deprecated
func (*SignInResponse) Descriptor() ([]byte, []int)
Deprecated: Use SignInResponse.ProtoReflect.Descriptor instead.
func (*SignInResponse) GetAccessToken ¶
func (x *SignInResponse) GetAccessToken() string
func (*SignInResponse) GetRefreshToken ¶
func (x *SignInResponse) GetRefreshToken() string
func (*SignInResponse) ProtoMessage ¶
func (*SignInResponse) ProtoMessage()
func (*SignInResponse) ProtoReflect ¶
func (x *SignInResponse) ProtoReflect() protoreflect.Message
func (*SignInResponse) Reset ¶
func (x *SignInResponse) Reset()
func (*SignInResponse) String ¶
func (x *SignInResponse) String() string
func (*SignInResponse) Validate ¶
func (m *SignInResponse) Validate() error
Validate checks the field values on SignInResponse 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 (*SignInResponse) ValidateAll ¶
func (m *SignInResponse) ValidateAll() error
ValidateAll checks the field values on SignInResponse 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 SignInResponseMultiError, or nil if none found.
type SignInResponseMultiError ¶
type SignInResponseMultiError []error
SignInResponseMultiError is an error wrapping multiple validation errors returned by SignInResponse.ValidateAll() if the designated constraints aren't met.
func (SignInResponseMultiError) AllErrors ¶
func (m SignInResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (SignInResponseMultiError) Error ¶
func (m SignInResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type SignInResponseValidationError ¶
type SignInResponseValidationError struct {
// contains filtered or unexported fields
}
SignInResponseValidationError is the validation error returned by SignInResponse.Validate if the designated constraints aren't met.
func (SignInResponseValidationError) Cause ¶
func (e SignInResponseValidationError) Cause() error
Cause function returns cause value.
func (SignInResponseValidationError) Error ¶
func (e SignInResponseValidationError) Error() string
Error satisfies the builtin error interface
func (SignInResponseValidationError) ErrorName ¶
func (e SignInResponseValidationError) ErrorName() string
ErrorName returns error name.
func (SignInResponseValidationError) Field ¶
func (e SignInResponseValidationError) Field() string
Field function returns field value.
func (SignInResponseValidationError) Key ¶
func (e SignInResponseValidationError) Key() bool
Key function returns key value.
func (SignInResponseValidationError) Reason ¶
func (e SignInResponseValidationError) Reason() string
Reason function returns reason value.
type SignOutRequest ¶
type SignOutRequest struct { AccessToken string `protobuf:"bytes,1,opt,name=access_token,json=accessToken,proto3" json:"access_token,omitempty"` // contains filtered or unexported fields }
func (*SignOutRequest) Descriptor
deprecated
func (*SignOutRequest) Descriptor() ([]byte, []int)
Deprecated: Use SignOutRequest.ProtoReflect.Descriptor instead.
func (*SignOutRequest) GetAccessToken ¶
func (x *SignOutRequest) GetAccessToken() string
func (*SignOutRequest) ProtoMessage ¶
func (*SignOutRequest) ProtoMessage()
func (*SignOutRequest) ProtoReflect ¶
func (x *SignOutRequest) ProtoReflect() protoreflect.Message
func (*SignOutRequest) Reset ¶
func (x *SignOutRequest) Reset()
func (*SignOutRequest) String ¶
func (x *SignOutRequest) String() string
func (*SignOutRequest) Validate ¶
func (m *SignOutRequest) Validate() error
Validate checks the field values on SignOutRequest 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 (*SignOutRequest) ValidateAll ¶
func (m *SignOutRequest) ValidateAll() error
ValidateAll checks the field values on SignOutRequest 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 SignOutRequestMultiError, or nil if none found.
type SignOutRequestMultiError ¶
type SignOutRequestMultiError []error
SignOutRequestMultiError is an error wrapping multiple validation errors returned by SignOutRequest.ValidateAll() if the designated constraints aren't met.
func (SignOutRequestMultiError) AllErrors ¶
func (m SignOutRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (SignOutRequestMultiError) Error ¶
func (m SignOutRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type SignOutRequestValidationError ¶
type SignOutRequestValidationError struct {
// contains filtered or unexported fields
}
SignOutRequestValidationError is the validation error returned by SignOutRequest.Validate if the designated constraints aren't met.
func (SignOutRequestValidationError) Cause ¶
func (e SignOutRequestValidationError) Cause() error
Cause function returns cause value.
func (SignOutRequestValidationError) Error ¶
func (e SignOutRequestValidationError) Error() string
Error satisfies the builtin error interface
func (SignOutRequestValidationError) ErrorName ¶
func (e SignOutRequestValidationError) ErrorName() string
ErrorName returns error name.
func (SignOutRequestValidationError) Field ¶
func (e SignOutRequestValidationError) Field() string
Field function returns field value.
func (SignOutRequestValidationError) Key ¶
func (e SignOutRequestValidationError) Key() bool
Key function returns key value.
func (SignOutRequestValidationError) Reason ¶
func (e SignOutRequestValidationError) Reason() string
Reason function returns reason value.
type SignOutResponse ¶
type SignOutResponse struct {
// contains filtered or unexported fields
}
func (*SignOutResponse) Descriptor
deprecated
func (*SignOutResponse) Descriptor() ([]byte, []int)
Deprecated: Use SignOutResponse.ProtoReflect.Descriptor instead.
func (*SignOutResponse) ProtoMessage ¶
func (*SignOutResponse) ProtoMessage()
func (*SignOutResponse) ProtoReflect ¶
func (x *SignOutResponse) ProtoReflect() protoreflect.Message
func (*SignOutResponse) Reset ¶
func (x *SignOutResponse) Reset()
func (*SignOutResponse) String ¶
func (x *SignOutResponse) String() string
func (*SignOutResponse) Validate ¶
func (m *SignOutResponse) Validate() error
Validate checks the field values on SignOutResponse 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 (*SignOutResponse) ValidateAll ¶
func (m *SignOutResponse) ValidateAll() error
ValidateAll checks the field values on SignOutResponse 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 SignOutResponseMultiError, or nil if none found.
type SignOutResponseMultiError ¶
type SignOutResponseMultiError []error
SignOutResponseMultiError is an error wrapping multiple validation errors returned by SignOutResponse.ValidateAll() if the designated constraints aren't met.
func (SignOutResponseMultiError) AllErrors ¶
func (m SignOutResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (SignOutResponseMultiError) Error ¶
func (m SignOutResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type SignOutResponseValidationError ¶
type SignOutResponseValidationError struct {
// contains filtered or unexported fields
}
SignOutResponseValidationError is the validation error returned by SignOutResponse.Validate if the designated constraints aren't met.
func (SignOutResponseValidationError) Cause ¶
func (e SignOutResponseValidationError) Cause() error
Cause function returns cause value.
func (SignOutResponseValidationError) Error ¶
func (e SignOutResponseValidationError) Error() string
Error satisfies the builtin error interface
func (SignOutResponseValidationError) ErrorName ¶
func (e SignOutResponseValidationError) ErrorName() string
ErrorName returns error name.
func (SignOutResponseValidationError) Field ¶
func (e SignOutResponseValidationError) Field() string
Field function returns field value.
func (SignOutResponseValidationError) Key ¶
func (e SignOutResponseValidationError) Key() bool
Key function returns key value.
func (SignOutResponseValidationError) Reason ¶
func (e SignOutResponseValidationError) Reason() string
Reason function returns reason value.
type SignUpRequest ¶
type SignUpRequest 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 (*SignUpRequest) Descriptor
deprecated
func (*SignUpRequest) Descriptor() ([]byte, []int)
Deprecated: Use SignUpRequest.ProtoReflect.Descriptor instead.
func (*SignUpRequest) GetPassword ¶
func (x *SignUpRequest) GetPassword() string
func (*SignUpRequest) GetUsername ¶
func (x *SignUpRequest) GetUsername() string
func (*SignUpRequest) ProtoMessage ¶
func (*SignUpRequest) ProtoMessage()
func (*SignUpRequest) ProtoReflect ¶
func (x *SignUpRequest) ProtoReflect() protoreflect.Message
func (*SignUpRequest) Reset ¶
func (x *SignUpRequest) Reset()
func (*SignUpRequest) String ¶
func (x *SignUpRequest) String() string
func (*SignUpRequest) Validate ¶
func (m *SignUpRequest) Validate() error
Validate checks the field values on SignUpRequest 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 (*SignUpRequest) ValidateAll ¶
func (m *SignUpRequest) ValidateAll() error
ValidateAll checks the field values on SignUpRequest 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 SignUpRequestMultiError, or nil if none found.
type SignUpRequestMultiError ¶
type SignUpRequestMultiError []error
SignUpRequestMultiError is an error wrapping multiple validation errors returned by SignUpRequest.ValidateAll() if the designated constraints aren't met.
func (SignUpRequestMultiError) AllErrors ¶
func (m SignUpRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (SignUpRequestMultiError) Error ¶
func (m SignUpRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type SignUpRequestValidationError ¶
type SignUpRequestValidationError struct {
// contains filtered or unexported fields
}
SignUpRequestValidationError is the validation error returned by SignUpRequest.Validate if the designated constraints aren't met.
func (SignUpRequestValidationError) Cause ¶
func (e SignUpRequestValidationError) Cause() error
Cause function returns cause value.
func (SignUpRequestValidationError) Error ¶
func (e SignUpRequestValidationError) Error() string
Error satisfies the builtin error interface
func (SignUpRequestValidationError) ErrorName ¶
func (e SignUpRequestValidationError) ErrorName() string
ErrorName returns error name.
func (SignUpRequestValidationError) Field ¶
func (e SignUpRequestValidationError) Field() string
Field function returns field value.
func (SignUpRequestValidationError) Key ¶
func (e SignUpRequestValidationError) Key() bool
Key function returns key value.
func (SignUpRequestValidationError) Reason ¶
func (e SignUpRequestValidationError) Reason() string
Reason function returns reason value.
type SignUpResponse ¶
type SignUpResponse struct {
// contains filtered or unexported fields
}
func (*SignUpResponse) Descriptor
deprecated
func (*SignUpResponse) Descriptor() ([]byte, []int)
Deprecated: Use SignUpResponse.ProtoReflect.Descriptor instead.
func (*SignUpResponse) ProtoMessage ¶
func (*SignUpResponse) ProtoMessage()
func (*SignUpResponse) ProtoReflect ¶
func (x *SignUpResponse) ProtoReflect() protoreflect.Message
func (*SignUpResponse) Reset ¶
func (x *SignUpResponse) Reset()
func (*SignUpResponse) String ¶
func (x *SignUpResponse) String() string
func (*SignUpResponse) Validate ¶
func (m *SignUpResponse) Validate() error
Validate checks the field values on SignUpResponse 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 (*SignUpResponse) ValidateAll ¶
func (m *SignUpResponse) ValidateAll() error
ValidateAll checks the field values on SignUpResponse 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 SignUpResponseMultiError, or nil if none found.
type SignUpResponseMultiError ¶
type SignUpResponseMultiError []error
SignUpResponseMultiError is an error wrapping multiple validation errors returned by SignUpResponse.ValidateAll() if the designated constraints aren't met.
func (SignUpResponseMultiError) AllErrors ¶
func (m SignUpResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (SignUpResponseMultiError) Error ¶
func (m SignUpResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type SignUpResponseValidationError ¶
type SignUpResponseValidationError struct {
// contains filtered or unexported fields
}
SignUpResponseValidationError is the validation error returned by SignUpResponse.Validate if the designated constraints aren't met.
func (SignUpResponseValidationError) Cause ¶
func (e SignUpResponseValidationError) Cause() error
Cause function returns cause value.
func (SignUpResponseValidationError) Error ¶
func (e SignUpResponseValidationError) Error() string
Error satisfies the builtin error interface
func (SignUpResponseValidationError) ErrorName ¶
func (e SignUpResponseValidationError) ErrorName() string
ErrorName returns error name.
func (SignUpResponseValidationError) Field ¶
func (e SignUpResponseValidationError) Field() string
Field function returns field value.
func (SignUpResponseValidationError) Key ¶
func (e SignUpResponseValidationError) Key() bool
Key function returns key value.
func (SignUpResponseValidationError) Reason ¶
func (e SignUpResponseValidationError) Reason() string
Reason function returns reason value.
type UnimplementedOAuth2ServiceServer ¶
type UnimplementedOAuth2ServiceServer struct { }
UnimplementedOAuth2ServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedOAuth2ServiceServer) Refresh ¶
func (UnimplementedOAuth2ServiceServer) Refresh(context.Context, *RefreshRequest) (*RefreshResponse, error)
func (UnimplementedOAuth2ServiceServer) SignIn ¶
func (UnimplementedOAuth2ServiceServer) SignIn(context.Context, *SignInRequest) (*SignInResponse, error)
func (UnimplementedOAuth2ServiceServer) SignOut ¶
func (UnimplementedOAuth2ServiceServer) SignOut(context.Context, *SignOutRequest) (*SignOutResponse, error)
func (UnimplementedOAuth2ServiceServer) SignUp ¶
func (UnimplementedOAuth2ServiceServer) SignUp(context.Context, *SignUpRequest) (*SignUpResponse, error)
type UnsafeOAuth2ServiceServer ¶
type UnsafeOAuth2ServiceServer interface {
// contains filtered or unexported methods
}
UnsafeOAuth2ServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to OAuth2ServiceServer will result in compilation errors.