userv1

package
v0.0.0-...-5122af3 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2022 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
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

Cause function returns cause value.

func (AuthRequestValidationError) Error

Error satisfies the builtin error interface

func (AuthRequestValidationError) ErrorName

func (e AuthRequestValidationError) ErrorName() string

ErrorName returns error name.

func (AuthRequestValidationError) Field

Field function returns field value.

func (AuthRequestValidationError) Key

Key function returns key value.

func (AuthRequestValidationError) Reason

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

Cause function returns cause value.

func (AuthResponseValidationError) Error

Error satisfies the builtin error interface

func (AuthResponseValidationError) ErrorName

func (e AuthResponseValidationError) ErrorName() string

ErrorName returns error name.

func (AuthResponseValidationError) Field

Field function returns field value.

func (AuthResponseValidationError) Key

Key function returns key value.

func (AuthResponseValidationError) Reason

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) Descriptor() ([]byte, []int)

Deprecated: Use Balance.ProtoReflect.Descriptor instead.

func (*Balance) GetCash

func (x *Balance) GetCash() int64

func (*Balance) ProtoMessage

func (*Balance) ProtoMessage()

func (*Balance) ProtoReflect

func (x *Balance) ProtoReflect() protoreflect.Message

func (*Balance) Reset

func (x *Balance) Reset()

func (*Balance) String

func (x *Balance) String() string

func (*Balance) Validate

func (m *Balance) Validate() error

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

func (m *Balance) ValidateAll() error

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) Descriptor() ([]byte, []int)

Deprecated: Use SessionID.ProtoReflect.Descriptor instead.

func (*SessionID) GetId

func (x *SessionID) GetId() string

func (*SessionID) ProtoMessage

func (*SessionID) ProtoMessage()

func (*SessionID) ProtoReflect

func (x *SessionID) ProtoReflect() protoreflect.Message

func (*SessionID) Reset

func (x *SessionID) Reset()

func (*SessionID) String

func (x *SessionID) String() string

func (*SessionID) Validate

func (m *SessionID) Validate() error

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

func (m *SessionID) ValidateAll() error

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

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

Cause function returns cause value.

func (SignInRequestValidationError) Error

Error satisfies the builtin error interface

func (SignInRequestValidationError) ErrorName

func (e SignInRequestValidationError) ErrorName() string

ErrorName returns error name.

func (SignInRequestValidationError) Field

Field function returns field value.

func (SignInRequestValidationError) Key

Key function returns key value.

func (SignInRequestValidationError) Reason

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

Cause function returns cause value.

func (SignInResponseValidationError) Error

Error satisfies the builtin error interface

func (SignInResponseValidationError) ErrorName

func (e SignInResponseValidationError) ErrorName() string

ErrorName returns error name.

func (SignInResponseValidationError) Field

Field function returns field value.

func (SignInResponseValidationError) Key

Key function returns key value.

func (SignInResponseValidationError) Reason

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

Cause function returns cause value.

func (SignOutRequestValidationError) Error

Error satisfies the builtin error interface

func (SignOutRequestValidationError) ErrorName

func (e SignOutRequestValidationError) ErrorName() string

ErrorName returns error name.

func (SignOutRequestValidationError) Field

Field function returns field value.

func (SignOutRequestValidationError) Key

Key function returns key value.

func (SignOutRequestValidationError) Reason

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

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

Cause function returns cause value.

func (SignOutResponseValidationError) Error

Error satisfies the builtin error interface

func (SignOutResponseValidationError) ErrorName

func (e SignOutResponseValidationError) ErrorName() string

ErrorName returns error name.

func (SignOutResponseValidationError) Field

Field function returns field value.

func (SignOutResponseValidationError) Key

Key function returns key value.

func (SignOutResponseValidationError) Reason

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

Cause function returns cause value.

func (SignUpRequestValidationError) Error

Error satisfies the builtin error interface

func (SignUpRequestValidationError) ErrorName

func (e SignUpRequestValidationError) ErrorName() string

ErrorName returns error name.

func (SignUpRequestValidationError) Field

Field function returns field value.

func (SignUpRequestValidationError) Key

Key function returns key value.

func (SignUpRequestValidationError) Reason

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

Cause function returns cause value.

func (SignUpResponseValidationError) Error

Error satisfies the builtin error interface

func (SignUpResponseValidationError) ErrorName

func (e SignUpResponseValidationError) ErrorName() string

ErrorName returns error name.

func (SignUpResponseValidationError) Field

Field function returns field value.

func (SignUpResponseValidationError) Key

Key function returns key value.

func (SignUpResponseValidationError) Reason

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) Descriptor() ([]byte, []int)

Deprecated: Use User.ProtoReflect.Descriptor instead.

func (*User) GetEmail

func (x *User) GetEmail() string

func (*User) GetPassword

func (x *User) GetPassword() string

func (*User) ProtoMessage

func (*User) ProtoMessage()

func (*User) ProtoReflect

func (x *User) ProtoReflect() protoreflect.Message

func (*User) Reset

func (x *User) Reset()

func (*User) String

func (x *User) String() string

func (*User) Validate

func (m *User) Validate() error

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

func (m *User) ValidateAll() error

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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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