Documentation ¶
Index ¶
- Variables
- type AuthRequest
- func (*AuthRequest) Descriptor() ([]byte, []int)deprecated
- func (x *AuthRequest) GetSessionId() *SessionID
- func (*AuthRequest) ProtoMessage()
- func (x *AuthRequest) ProtoReflect() protoreflect.Message
- func (x *AuthRequest) Reset()
- func (x *AuthRequest) String() string
- func (m *AuthRequest) Validate() error
- func (m *AuthRequest) ValidateAll() error
- type AuthRequestMultiError
- type AuthRequestValidationError
- func (e AuthRequestValidationError) Cause() error
- func (e AuthRequestValidationError) Error() string
- func (e AuthRequestValidationError) ErrorName() string
- func (e AuthRequestValidationError) Field() string
- func (e AuthRequestValidationError) Key() bool
- func (e AuthRequestValidationError) Reason() string
- type AuthResponse
- func (*AuthResponse) Descriptor() ([]byte, []int)deprecated
- func (x *AuthResponse) GetUserId() int32
- func (*AuthResponse) ProtoMessage()
- func (x *AuthResponse) ProtoReflect() protoreflect.Message
- func (x *AuthResponse) Reset()
- func (x *AuthResponse) String() string
- func (m *AuthResponse) Validate() error
- func (m *AuthResponse) ValidateAll() error
- type AuthResponseMultiError
- type AuthResponseValidationError
- func (e AuthResponseValidationError) Cause() error
- func (e AuthResponseValidationError) Error() string
- func (e AuthResponseValidationError) ErrorName() string
- func (e AuthResponseValidationError) Field() string
- func (e AuthResponseValidationError) Key() bool
- func (e AuthResponseValidationError) Reason() string
- type Balance
- func (*Balance) Descriptor() ([]byte, []int)deprecated
- func (x *Balance) GetCash() int64
- func (*Balance) ProtoMessage()
- func (x *Balance) ProtoReflect() protoreflect.Message
- func (x *Balance) Reset()
- func (x *Balance) String() string
- func (m *Balance) Validate() error
- func (m *Balance) ValidateAll() error
- type BalanceMultiError
- type BalanceValidationError
- type SessionID
- func (*SessionID) Descriptor() ([]byte, []int)deprecated
- func (x *SessionID) GetId() string
- func (*SessionID) ProtoMessage()
- func (x *SessionID) ProtoReflect() protoreflect.Message
- func (x *SessionID) Reset()
- func (x *SessionID) String() string
- func (m *SessionID) Validate() error
- func (m *SessionID) ValidateAll() error
- type SessionIDMultiError
- type SessionIDValidationError
- type SignInRequest
- func (*SignInRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SignInRequest) GetUser() *User
- 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) GetSessionId() *SessionID
- 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) GetSessionId() *SessionID
- 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) GetUser() *User
- 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 (x *SignUpResponse) GetBalance() *Balance
- func (x *SignUpResponse) GetUserId() int32
- 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 User
- func (*User) Descriptor() ([]byte, []int)deprecated
- func (x *User) GetEmail() string
- func (x *User) GetPassword() string
- 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 UserMultiError
- type UserValidationError
Constants ¶
This section is empty.
Variables ¶
var File_user_v1_user_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type AuthRequest ¶
type AuthRequest struct { SessionId *SessionID `protobuf:"bytes,1,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"` // contains filtered or unexported fields }
func (*AuthRequest) Descriptor
deprecated
func (*AuthRequest) Descriptor() ([]byte, []int)
Deprecated: Use AuthRequest.ProtoReflect.Descriptor instead.
func (*AuthRequest) GetSessionId ¶
func (x *AuthRequest) GetSessionId() *SessionID
func (*AuthRequest) ProtoMessage ¶
func (*AuthRequest) ProtoMessage()
func (*AuthRequest) ProtoReflect ¶
func (x *AuthRequest) ProtoReflect() protoreflect.Message
func (*AuthRequest) Reset ¶
func (x *AuthRequest) Reset()
func (*AuthRequest) String ¶
func (x *AuthRequest) String() string
func (*AuthRequest) Validate ¶
func (m *AuthRequest) Validate() error
Validate checks the field values on AuthRequest 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 (*AuthRequest) ValidateAll ¶
func (m *AuthRequest) ValidateAll() error
ValidateAll checks the field values on AuthRequest 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 AuthRequestMultiError, or nil if none found.
type AuthRequestMultiError ¶
type AuthRequestMultiError []error
AuthRequestMultiError is an error wrapping multiple validation errors returned by AuthRequest.ValidateAll() if the designated constraints aren't met.
func (AuthRequestMultiError) AllErrors ¶
func (m AuthRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (AuthRequestMultiError) Error ¶
func (m AuthRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type AuthRequestValidationError ¶
type AuthRequestValidationError struct {
// contains filtered or unexported fields
}
AuthRequestValidationError is the validation error returned by AuthRequest.Validate if the designated constraints aren't met.
func (AuthRequestValidationError) Cause ¶
func (e AuthRequestValidationError) Cause() error
Cause function returns cause value.
func (AuthRequestValidationError) Error ¶
func (e AuthRequestValidationError) Error() string
Error satisfies the builtin error interface
func (AuthRequestValidationError) ErrorName ¶
func (e AuthRequestValidationError) ErrorName() string
ErrorName returns error name.
func (AuthRequestValidationError) Field ¶
func (e AuthRequestValidationError) Field() string
Field function returns field value.
func (AuthRequestValidationError) Key ¶
func (e AuthRequestValidationError) Key() bool
Key function returns key value.
func (AuthRequestValidationError) Reason ¶
func (e AuthRequestValidationError) Reason() string
Reason function returns reason value.
type AuthResponse ¶
type AuthResponse struct { UserId int32 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` // contains filtered or unexported fields }
func (*AuthResponse) Descriptor
deprecated
func (*AuthResponse) Descriptor() ([]byte, []int)
Deprecated: Use AuthResponse.ProtoReflect.Descriptor instead.
func (*AuthResponse) GetUserId ¶
func (x *AuthResponse) GetUserId() int32
func (*AuthResponse) ProtoMessage ¶
func (*AuthResponse) ProtoMessage()
func (*AuthResponse) ProtoReflect ¶
func (x *AuthResponse) ProtoReflect() protoreflect.Message
func (*AuthResponse) Reset ¶
func (x *AuthResponse) Reset()
func (*AuthResponse) String ¶
func (x *AuthResponse) String() string
func (*AuthResponse) Validate ¶
func (m *AuthResponse) Validate() error
Validate checks the field values on AuthResponse 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 (*AuthResponse) ValidateAll ¶
func (m *AuthResponse) ValidateAll() error
ValidateAll checks the field values on AuthResponse 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 AuthResponseMultiError, or nil if none found.
type AuthResponseMultiError ¶
type AuthResponseMultiError []error
AuthResponseMultiError is an error wrapping multiple validation errors returned by AuthResponse.ValidateAll() if the designated constraints aren't met.
func (AuthResponseMultiError) AllErrors ¶
func (m AuthResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (AuthResponseMultiError) Error ¶
func (m AuthResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type AuthResponseValidationError ¶
type AuthResponseValidationError struct {
// contains filtered or unexported fields
}
AuthResponseValidationError is the validation error returned by AuthResponse.Validate if the designated constraints aren't met.
func (AuthResponseValidationError) Cause ¶
func (e AuthResponseValidationError) Cause() error
Cause function returns cause value.
func (AuthResponseValidationError) Error ¶
func (e AuthResponseValidationError) Error() string
Error satisfies the builtin error interface
func (AuthResponseValidationError) ErrorName ¶
func (e AuthResponseValidationError) ErrorName() string
ErrorName returns error name.
func (AuthResponseValidationError) Field ¶
func (e AuthResponseValidationError) Field() string
Field function returns field value.
func (AuthResponseValidationError) Key ¶
func (e AuthResponseValidationError) Key() bool
Key function returns key value.
func (AuthResponseValidationError) Reason ¶
func (e AuthResponseValidationError) Reason() string
Reason function returns reason value.
type Balance ¶
type Balance struct { Cash int64 `protobuf:"varint,1,opt,name=cash,proto3" json:"cash,omitempty"` // contains filtered or unexported fields }
func (*Balance) Descriptor
deprecated
func (*Balance) ProtoMessage ¶
func (*Balance) ProtoMessage()
func (*Balance) ProtoReflect ¶
func (x *Balance) ProtoReflect() protoreflect.Message
func (*Balance) Validate ¶
Validate checks the field values on Balance 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 (*Balance) ValidateAll ¶
ValidateAll checks the field values on Balance 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 BalanceMultiError, or nil if none found.
type BalanceMultiError ¶
type BalanceMultiError []error
BalanceMultiError is an error wrapping multiple validation errors returned by Balance.ValidateAll() if the designated constraints aren't met.
func (BalanceMultiError) AllErrors ¶
func (m BalanceMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (BalanceMultiError) Error ¶
func (m BalanceMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type BalanceValidationError ¶
type BalanceValidationError struct {
// contains filtered or unexported fields
}
BalanceValidationError is the validation error returned by Balance.Validate if the designated constraints aren't met.
func (BalanceValidationError) Cause ¶
func (e BalanceValidationError) Cause() error
Cause function returns cause value.
func (BalanceValidationError) Error ¶
func (e BalanceValidationError) Error() string
Error satisfies the builtin error interface
func (BalanceValidationError) ErrorName ¶
func (e BalanceValidationError) ErrorName() string
ErrorName returns error name.
func (BalanceValidationError) Field ¶
func (e BalanceValidationError) Field() string
Field function returns field value.
func (BalanceValidationError) Key ¶
func (e BalanceValidationError) Key() bool
Key function returns key value.
func (BalanceValidationError) Reason ¶
func (e BalanceValidationError) Reason() string
Reason function returns reason value.
type SessionID ¶
type SessionID struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*SessionID) Descriptor
deprecated
func (*SessionID) ProtoMessage ¶
func (*SessionID) ProtoMessage()
func (*SessionID) ProtoReflect ¶
func (x *SessionID) ProtoReflect() protoreflect.Message
func (*SessionID) Validate ¶
Validate checks the field values on SessionID 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 (*SessionID) ValidateAll ¶
ValidateAll checks the field values on SessionID 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 SessionIDMultiError, or nil if none found.
type SessionIDMultiError ¶
type SessionIDMultiError []error
SessionIDMultiError is an error wrapping multiple validation errors returned by SessionID.ValidateAll() if the designated constraints aren't met.
func (SessionIDMultiError) AllErrors ¶
func (m SessionIDMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (SessionIDMultiError) Error ¶
func (m SessionIDMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type SessionIDValidationError ¶
type SessionIDValidationError struct {
// contains filtered or unexported fields
}
SessionIDValidationError is the validation error returned by SessionID.Validate if the designated constraints aren't met.
func (SessionIDValidationError) Cause ¶
func (e SessionIDValidationError) Cause() error
Cause function returns cause value.
func (SessionIDValidationError) Error ¶
func (e SessionIDValidationError) Error() string
Error satisfies the builtin error interface
func (SessionIDValidationError) ErrorName ¶
func (e SessionIDValidationError) ErrorName() string
ErrorName returns error name.
func (SessionIDValidationError) Field ¶
func (e SessionIDValidationError) Field() string
Field function returns field value.
func (SessionIDValidationError) Key ¶
func (e SessionIDValidationError) Key() bool
Key function returns key value.
func (SessionIDValidationError) Reason ¶
func (e SessionIDValidationError) Reason() string
Reason function returns reason value.
type SignInRequest ¶
type SignInRequest struct { User *User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"` // contains filtered or unexported fields }
func (*SignInRequest) Descriptor
deprecated
func (*SignInRequest) Descriptor() ([]byte, []int)
Deprecated: Use SignInRequest.ProtoReflect.Descriptor instead.
func (*SignInRequest) GetUser ¶
func (x *SignInRequest) GetUser() *User
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 { SessionId *SessionID `protobuf:"bytes,1,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"` // contains filtered or unexported fields }
func (*SignInResponse) Descriptor
deprecated
func (*SignInResponse) Descriptor() ([]byte, []int)
Deprecated: Use SignInResponse.ProtoReflect.Descriptor instead.
func (*SignInResponse) GetSessionId ¶
func (x *SignInResponse) GetSessionId() *SessionID
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 { SessionId *SessionID `protobuf:"bytes,1,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"` // contains filtered or unexported fields }
func (*SignOutRequest) Descriptor
deprecated
func (*SignOutRequest) Descriptor() ([]byte, []int)
Deprecated: Use SignOutRequest.ProtoReflect.Descriptor instead.
func (*SignOutRequest) GetSessionId ¶
func (x *SignOutRequest) GetSessionId() *SessionID
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 { User *User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"` // contains filtered or unexported fields }
func (*SignUpRequest) Descriptor
deprecated
func (*SignUpRequest) Descriptor() ([]byte, []int)
Deprecated: Use SignUpRequest.ProtoReflect.Descriptor instead.
func (*SignUpRequest) GetUser ¶
func (x *SignUpRequest) GetUser() *User
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 { UserId int32 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` Balance *Balance `protobuf:"bytes,2,opt,name=balance,proto3" json:"balance,omitempty"` // contains filtered or unexported fields }
func (*SignUpResponse) Descriptor
deprecated
func (*SignUpResponse) Descriptor() ([]byte, []int)
Deprecated: Use SignUpResponse.ProtoReflect.Descriptor instead.
func (*SignUpResponse) GetBalance ¶
func (x *SignUpResponse) GetBalance() *Balance
func (*SignUpResponse) GetUserId ¶
func (x *SignUpResponse) GetUserId() int32
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 User ¶
type User 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 (*User) Descriptor
deprecated
func (*User) GetPassword ¶
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 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 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.