Documentation
¶
Index ¶
- Variables
- func RegisterBankHTTPServer(r gin.IRouter, srv BankHTTPServer, deps *deps.Info)
- type Account
- func (*Account) Descriptor() ([]byte, []int)deprecated
- func (x *Account) GetBalance() int64
- func (x *Account) GetCreateAt() *timestamppb.Timestamp
- func (x *Account) GetCurrency() string
- func (x *Account) GetId() int64
- func (x *Account) GetOwner() string
- func (*Account) ProtoMessage()
- func (x *Account) ProtoReflect() protoreflect.Message
- func (x *Account) Reset()
- func (x *Account) String() string
- func (m *Account) Validate() error
- func (m *Account) ValidateAll() error
- type AccountMultiError
- type AccountValidationError
- type Bank
- func (s *Bank) CreateAccount_0(ctx *gin.Context)
- func (s *Bank) CreateUser_0(ctx *gin.Context)
- func (s *Bank) GetAccount_0(ctx *gin.Context)
- func (s *Bank) ListAccounts_0(ctx *gin.Context)
- func (s *Bank) Login_0(ctx *gin.Context)
- func (s *Bank) RegisterService(deps *deps.Info)
- func (s *Bank) Transfer_0(ctx *gin.Context)
- type BankHTTPServer
- type CreateAccountReq
- func (*CreateAccountReq) Descriptor() ([]byte, []int)deprecated
- func (x *CreateAccountReq) GetCurrency() string
- func (x *CreateAccountReq) GetOwner() string
- func (*CreateAccountReq) ProtoMessage()
- func (x *CreateAccountReq) ProtoReflect() protoreflect.Message
- func (x *CreateAccountReq) Reset()
- func (x *CreateAccountReq) String() string
- func (m *CreateAccountReq) Validate() error
- func (m *CreateAccountReq) ValidateAll() error
- type CreateAccountReqMultiError
- type CreateAccountReqValidationError
- func (e CreateAccountReqValidationError) Cause() error
- func (e CreateAccountReqValidationError) Error() string
- func (e CreateAccountReqValidationError) ErrorName() string
- func (e CreateAccountReqValidationError) Field() string
- func (e CreateAccountReqValidationError) Key() bool
- func (e CreateAccountReqValidationError) Reason() string
- type CreateAccountRsp
- func (*CreateAccountRsp) Descriptor() ([]byte, []int)deprecated
- func (x *CreateAccountRsp) GetCreatedAccount() *Account
- func (*CreateAccountRsp) ProtoMessage()
- func (x *CreateAccountRsp) ProtoReflect() protoreflect.Message
- func (x *CreateAccountRsp) Reset()
- func (x *CreateAccountRsp) String() string
- func (m *CreateAccountRsp) Validate() error
- func (m *CreateAccountRsp) ValidateAll() error
- type CreateAccountRspMultiError
- type CreateAccountRspValidationError
- func (e CreateAccountRspValidationError) Cause() error
- func (e CreateAccountRspValidationError) Error() string
- func (e CreateAccountRspValidationError) ErrorName() string
- func (e CreateAccountRspValidationError) Field() string
- func (e CreateAccountRspValidationError) Key() bool
- func (e CreateAccountRspValidationError) Reason() string
- type CreateUserReq
- func (*CreateUserReq) Descriptor() ([]byte, []int)deprecated
- func (x *CreateUserReq) GetEmail() string
- func (x *CreateUserReq) GetFullName() string
- func (x *CreateUserReq) GetPassword() string
- func (x *CreateUserReq) GetUserName() string
- func (*CreateUserReq) ProtoMessage()
- func (x *CreateUserReq) ProtoReflect() protoreflect.Message
- func (x *CreateUserReq) Reset()
- func (x *CreateUserReq) String() string
- func (m *CreateUserReq) Validate() error
- func (m *CreateUserReq) ValidateAll() error
- type CreateUserReqMultiError
- type CreateUserReqValidationError
- func (e CreateUserReqValidationError) Cause() error
- func (e CreateUserReqValidationError) Error() string
- func (e CreateUserReqValidationError) ErrorName() string
- func (e CreateUserReqValidationError) Field() string
- func (e CreateUserReqValidationError) Key() bool
- func (e CreateUserReqValidationError) Reason() string
- type CreateUserRsp
- func (*CreateUserRsp) Descriptor() ([]byte, []int)deprecated
- func (x *CreateUserRsp) GetCreatedUser() *User
- func (*CreateUserRsp) ProtoMessage()
- func (x *CreateUserRsp) ProtoReflect() protoreflect.Message
- func (x *CreateUserRsp) Reset()
- func (x *CreateUserRsp) String() string
- func (m *CreateUserRsp) Validate() error
- func (m *CreateUserRsp) ValidateAll() error
- type CreateUserRspMultiError
- type CreateUserRspValidationError
- func (e CreateUserRspValidationError) Cause() error
- func (e CreateUserRspValidationError) Error() string
- func (e CreateUserRspValidationError) ErrorName() string
- func (e CreateUserRspValidationError) Field() string
- func (e CreateUserRspValidationError) Key() bool
- func (e CreateUserRspValidationError) Reason() string
- type GetAccountReq
- func (*GetAccountReq) Descriptor() ([]byte, []int)deprecated
- func (x *GetAccountReq) GetId() int64
- func (*GetAccountReq) ProtoMessage()
- func (x *GetAccountReq) ProtoReflect() protoreflect.Message
- func (x *GetAccountReq) Reset()
- func (x *GetAccountReq) String() string
- func (m *GetAccountReq) Validate() error
- func (m *GetAccountReq) ValidateAll() error
- type GetAccountReqMultiError
- type GetAccountReqValidationError
- func (e GetAccountReqValidationError) Cause() error
- func (e GetAccountReqValidationError) Error() string
- func (e GetAccountReqValidationError) ErrorName() string
- func (e GetAccountReqValidationError) Field() string
- func (e GetAccountReqValidationError) Key() bool
- func (e GetAccountReqValidationError) Reason() string
- type GetAccountRsp
- func (*GetAccountRsp) Descriptor() ([]byte, []int)deprecated
- func (x *GetAccountRsp) GetAccount() *Account
- func (*GetAccountRsp) ProtoMessage()
- func (x *GetAccountRsp) ProtoReflect() protoreflect.Message
- func (x *GetAccountRsp) Reset()
- func (x *GetAccountRsp) String() string
- func (m *GetAccountRsp) Validate() error
- func (m *GetAccountRsp) ValidateAll() error
- type GetAccountRspMultiError
- type GetAccountRspValidationError
- func (e GetAccountRspValidationError) Cause() error
- func (e GetAccountRspValidationError) Error() string
- func (e GetAccountRspValidationError) ErrorName() string
- func (e GetAccountRspValidationError) Field() string
- func (e GetAccountRspValidationError) Key() bool
- func (e GetAccountRspValidationError) Reason() string
- type ListAccountsReq
- func (*ListAccountsReq) Descriptor() ([]byte, []int)deprecated
- func (x *ListAccountsReq) GetLimit() uint32
- func (x *ListAccountsReq) GetOffset() uint32
- func (*ListAccountsReq) ProtoMessage()
- func (x *ListAccountsReq) ProtoReflect() protoreflect.Message
- func (x *ListAccountsReq) Reset()
- func (x *ListAccountsReq) String() string
- func (m *ListAccountsReq) Validate() error
- func (m *ListAccountsReq) ValidateAll() error
- type ListAccountsReqMultiError
- type ListAccountsReqValidationError
- func (e ListAccountsReqValidationError) Cause() error
- func (e ListAccountsReqValidationError) Error() string
- func (e ListAccountsReqValidationError) ErrorName() string
- func (e ListAccountsReqValidationError) Field() string
- func (e ListAccountsReqValidationError) Key() bool
- func (e ListAccountsReqValidationError) Reason() string
- type ListAccountsRsp
- func (*ListAccountsRsp) Descriptor() ([]byte, []int)deprecated
- func (x *ListAccountsRsp) GetAccounts() []*Account
- func (*ListAccountsRsp) ProtoMessage()
- func (x *ListAccountsRsp) ProtoReflect() protoreflect.Message
- func (x *ListAccountsRsp) Reset()
- func (x *ListAccountsRsp) String() string
- func (m *ListAccountsRsp) Validate() error
- func (m *ListAccountsRsp) ValidateAll() error
- type ListAccountsRspMultiError
- type ListAccountsRspValidationError
- func (e ListAccountsRspValidationError) Cause() error
- func (e ListAccountsRspValidationError) Error() string
- func (e ListAccountsRspValidationError) ErrorName() string
- func (e ListAccountsRspValidationError) Field() string
- func (e ListAccountsRspValidationError) Key() bool
- func (e ListAccountsRspValidationError) Reason() string
- type LoginReq
- func (*LoginReq) Descriptor() ([]byte, []int)deprecated
- func (x *LoginReq) GetPassword() string
- func (x *LoginReq) GetUserName() string
- func (*LoginReq) ProtoMessage()
- func (x *LoginReq) ProtoReflect() protoreflect.Message
- func (x *LoginReq) Reset()
- func (x *LoginReq) String() string
- func (m *LoginReq) Validate() error
- func (m *LoginReq) ValidateAll() error
- type LoginReqMultiError
- type LoginReqValidationError
- type LoginRsp
- func (*LoginRsp) Descriptor() ([]byte, []int)deprecated
- func (x *LoginRsp) GetAccessToken() string
- func (x *LoginRsp) GetUserInfo() *User
- func (*LoginRsp) ProtoMessage()
- func (x *LoginRsp) ProtoReflect() protoreflect.Message
- func (x *LoginRsp) Reset()
- func (x *LoginRsp) String() string
- func (m *LoginRsp) Validate() error
- func (m *LoginRsp) ValidateAll() error
- type LoginRspMultiError
- type LoginRspValidationError
- type TransferReq
- func (*TransferReq) Descriptor() ([]byte, []int)deprecated
- func (x *TransferReq) GetAmount() int64
- func (x *TransferReq) GetCurrency() string
- func (x *TransferReq) GetFromAccountId() int64
- func (x *TransferReq) GetToAccountId() int64
- func (*TransferReq) ProtoMessage()
- func (x *TransferReq) ProtoReflect() protoreflect.Message
- func (x *TransferReq) Reset()
- func (x *TransferReq) String() string
- func (m *TransferReq) Validate() error
- func (m *TransferReq) ValidateAll() error
- type TransferReqMultiError
- type TransferReqValidationError
- func (e TransferReqValidationError) Cause() error
- func (e TransferReqValidationError) Error() string
- func (e TransferReqValidationError) ErrorName() string
- func (e TransferReqValidationError) Field() string
- func (e TransferReqValidationError) Key() bool
- func (e TransferReqValidationError) Reason() string
- type TransferRsp
- func (*TransferRsp) Descriptor() ([]byte, []int)deprecated
- func (x *TransferRsp) GetFromAccount() *Account
- func (x *TransferRsp) GetToAccount() *Account
- func (*TransferRsp) ProtoMessage()
- func (x *TransferRsp) ProtoReflect() protoreflect.Message
- func (x *TransferRsp) Reset()
- func (x *TransferRsp) String() string
- func (m *TransferRsp) Validate() error
- func (m *TransferRsp) ValidateAll() error
- type TransferRspMultiError
- type TransferRspValidationError
- func (e TransferRspValidationError) Cause() error
- func (e TransferRspValidationError) Error() string
- func (e TransferRspValidationError) ErrorName() string
- func (e TransferRspValidationError) Field() string
- func (e TransferRspValidationError) Key() bool
- func (e TransferRspValidationError) Reason() string
- type User
- func (*User) Descriptor() ([]byte, []int)deprecated
- func (x *User) GetCreateAt() *timestamppb.Timestamp
- func (x *User) GetEmail() string
- func (x *User) GetFullName() string
- func (x *User) GetPasswordChangedAt() *timestamppb.Timestamp
- func (x *User) GetUserName() 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_bank_proto protoreflect.FileDescriptor
Functions ¶
func RegisterBankHTTPServer ¶
func RegisterBankHTTPServer(r gin.IRouter, srv BankHTTPServer, deps *deps.Info)
Types ¶
type Account ¶
type Account struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Owner string `protobuf:"bytes,2,opt,name=owner,proto3" json:"owner,omitempty"` Balance int64 `protobuf:"varint,3,opt,name=balance,proto3" json:"balance,omitempty"` Currency string `protobuf:"bytes,4,opt,name=currency,proto3" json:"currency,omitempty"` CreateAt *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=create_at,json=createAt,proto3" json:"create_at,omitempty"` // contains filtered or unexported fields }
func (*Account) Descriptor
deprecated
func (*Account) GetBalance ¶
func (*Account) GetCreateAt ¶
func (x *Account) GetCreateAt() *timestamppb.Timestamp
func (*Account) GetCurrency ¶
func (*Account) ProtoMessage ¶
func (*Account) ProtoMessage()
func (*Account) ProtoReflect ¶
func (x *Account) ProtoReflect() protoreflect.Message
func (*Account) Validate ¶
Validate checks the field values on Account 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 (*Account) ValidateAll ¶
ValidateAll checks the field values on Account 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 AccountMultiError, or nil if none found.
type AccountMultiError ¶
type AccountMultiError []error
AccountMultiError is an error wrapping multiple validation errors returned by Account.ValidateAll() if the designated constraints aren't met.
func (AccountMultiError) AllErrors ¶
func (m AccountMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (AccountMultiError) Error ¶
func (m AccountMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type AccountValidationError ¶
type AccountValidationError struct {
// contains filtered or unexported fields
}
AccountValidationError is the validation error returned by Account.Validate if the designated constraints aren't met.
func (AccountValidationError) Cause ¶
func (e AccountValidationError) Cause() error
Cause function returns cause value.
func (AccountValidationError) Error ¶
func (e AccountValidationError) Error() string
Error satisfies the builtin error interface
func (AccountValidationError) ErrorName ¶
func (e AccountValidationError) ErrorName() string
ErrorName returns error name.
func (AccountValidationError) Field ¶
func (e AccountValidationError) Field() string
Field function returns field value.
func (AccountValidationError) Key ¶
func (e AccountValidationError) Key() bool
Key function returns key value.
func (AccountValidationError) Reason ¶
func (e AccountValidationError) Reason() string
Reason function returns reason value.
type Bank ¶
type Bank struct {
// contains filtered or unexported fields
}
func (*Bank) CreateAccount_0 ¶
func (*Bank) CreateUser_0 ¶
func (*Bank) GetAccount_0 ¶
func (*Bank) ListAccounts_0 ¶
func (*Bank) RegisterService ¶
func (*Bank) Transfer_0 ¶
type BankHTTPServer ¶
type BankHTTPServer interface { CreateAccount(context.Context, *CreateAccountReq) (*CreateAccountRsp, error) CreateUser(context.Context, *CreateUserReq) (*CreateUserRsp, error) GetAccount(context.Context, *GetAccountReq) (*GetAccountRsp, error) ListAccounts(context.Context, *ListAccountsReq) (*ListAccountsRsp, error) Login(context.Context, *LoginReq) (*LoginRsp, error) Transfer(context.Context, *TransferReq) (*TransferRsp, error) }
type CreateAccountReq ¶
type CreateAccountReq struct { Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"` Currency string `protobuf:"bytes,2,opt,name=currency,proto3" json:"currency,omitempty" binding:"required,currency"` // @gotags: binding:"required,currency" // contains filtered or unexported fields }
func (*CreateAccountReq) Descriptor
deprecated
func (*CreateAccountReq) Descriptor() ([]byte, []int)
Deprecated: Use CreateAccountReq.ProtoReflect.Descriptor instead.
func (*CreateAccountReq) GetCurrency ¶
func (x *CreateAccountReq) GetCurrency() string
func (*CreateAccountReq) GetOwner ¶
func (x *CreateAccountReq) GetOwner() string
func (*CreateAccountReq) ProtoMessage ¶
func (*CreateAccountReq) ProtoMessage()
func (*CreateAccountReq) ProtoReflect ¶
func (x *CreateAccountReq) ProtoReflect() protoreflect.Message
func (*CreateAccountReq) Reset ¶
func (x *CreateAccountReq) Reset()
func (*CreateAccountReq) String ¶
func (x *CreateAccountReq) String() string
func (*CreateAccountReq) Validate ¶
func (m *CreateAccountReq) Validate() error
Validate checks the field values on CreateAccountReq 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 (*CreateAccountReq) ValidateAll ¶
func (m *CreateAccountReq) ValidateAll() error
ValidateAll checks the field values on CreateAccountReq 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 CreateAccountReqMultiError, or nil if none found.
type CreateAccountReqMultiError ¶
type CreateAccountReqMultiError []error
CreateAccountReqMultiError is an error wrapping multiple validation errors returned by CreateAccountReq.ValidateAll() if the designated constraints aren't met.
func (CreateAccountReqMultiError) AllErrors ¶
func (m CreateAccountReqMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (CreateAccountReqMultiError) Error ¶
func (m CreateAccountReqMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type CreateAccountReqValidationError ¶
type CreateAccountReqValidationError struct {
// contains filtered or unexported fields
}
CreateAccountReqValidationError is the validation error returned by CreateAccountReq.Validate if the designated constraints aren't met.
func (CreateAccountReqValidationError) Cause ¶
func (e CreateAccountReqValidationError) Cause() error
Cause function returns cause value.
func (CreateAccountReqValidationError) Error ¶
func (e CreateAccountReqValidationError) Error() string
Error satisfies the builtin error interface
func (CreateAccountReqValidationError) ErrorName ¶
func (e CreateAccountReqValidationError) ErrorName() string
ErrorName returns error name.
func (CreateAccountReqValidationError) Field ¶
func (e CreateAccountReqValidationError) Field() string
Field function returns field value.
func (CreateAccountReqValidationError) Key ¶
func (e CreateAccountReqValidationError) Key() bool
Key function returns key value.
func (CreateAccountReqValidationError) Reason ¶
func (e CreateAccountReqValidationError) Reason() string
Reason function returns reason value.
type CreateAccountRsp ¶
type CreateAccountRsp struct { CreatedAccount *Account `protobuf:"bytes,1,opt,name=created_account,json=createdAccount,proto3" json:"created_account,omitempty"` // contains filtered or unexported fields }
func (*CreateAccountRsp) Descriptor
deprecated
func (*CreateAccountRsp) Descriptor() ([]byte, []int)
Deprecated: Use CreateAccountRsp.ProtoReflect.Descriptor instead.
func (*CreateAccountRsp) GetCreatedAccount ¶
func (x *CreateAccountRsp) GetCreatedAccount() *Account
func (*CreateAccountRsp) ProtoMessage ¶
func (*CreateAccountRsp) ProtoMessage()
func (*CreateAccountRsp) ProtoReflect ¶
func (x *CreateAccountRsp) ProtoReflect() protoreflect.Message
func (*CreateAccountRsp) Reset ¶
func (x *CreateAccountRsp) Reset()
func (*CreateAccountRsp) String ¶
func (x *CreateAccountRsp) String() string
func (*CreateAccountRsp) Validate ¶
func (m *CreateAccountRsp) Validate() error
Validate checks the field values on CreateAccountRsp 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 (*CreateAccountRsp) ValidateAll ¶
func (m *CreateAccountRsp) ValidateAll() error
ValidateAll checks the field values on CreateAccountRsp 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 CreateAccountRspMultiError, or nil if none found.
type CreateAccountRspMultiError ¶
type CreateAccountRspMultiError []error
CreateAccountRspMultiError is an error wrapping multiple validation errors returned by CreateAccountRsp.ValidateAll() if the designated constraints aren't met.
func (CreateAccountRspMultiError) AllErrors ¶
func (m CreateAccountRspMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (CreateAccountRspMultiError) Error ¶
func (m CreateAccountRspMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type CreateAccountRspValidationError ¶
type CreateAccountRspValidationError struct {
// contains filtered or unexported fields
}
CreateAccountRspValidationError is the validation error returned by CreateAccountRsp.Validate if the designated constraints aren't met.
func (CreateAccountRspValidationError) Cause ¶
func (e CreateAccountRspValidationError) Cause() error
Cause function returns cause value.
func (CreateAccountRspValidationError) Error ¶
func (e CreateAccountRspValidationError) Error() string
Error satisfies the builtin error interface
func (CreateAccountRspValidationError) ErrorName ¶
func (e CreateAccountRspValidationError) ErrorName() string
ErrorName returns error name.
func (CreateAccountRspValidationError) Field ¶
func (e CreateAccountRspValidationError) Field() string
Field function returns field value.
func (CreateAccountRspValidationError) Key ¶
func (e CreateAccountRspValidationError) Key() bool
Key function returns key value.
func (CreateAccountRspValidationError) Reason ¶
func (e CreateAccountRspValidationError) Reason() string
Reason function returns reason value.
type CreateUserReq ¶
type CreateUserReq struct { UserName string `protobuf:"bytes,1,opt,name=user_name,json=userName,proto3" json:"user_name,omitempty"` FullName string `protobuf:"bytes,2,opt,name=full_name,json=fullName,proto3" json:"full_name,omitempty"` Password string `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty"` Email string `protobuf:"bytes,4,opt,name=email,proto3" json:"email,omitempty"` // contains filtered or unexported fields }
func (*CreateUserReq) Descriptor
deprecated
func (*CreateUserReq) Descriptor() ([]byte, []int)
Deprecated: Use CreateUserReq.ProtoReflect.Descriptor instead.
func (*CreateUserReq) GetEmail ¶
func (x *CreateUserReq) GetEmail() string
func (*CreateUserReq) GetFullName ¶
func (x *CreateUserReq) GetFullName() string
func (*CreateUserReq) GetPassword ¶
func (x *CreateUserReq) GetPassword() string
func (*CreateUserReq) GetUserName ¶
func (x *CreateUserReq) GetUserName() string
func (*CreateUserReq) ProtoMessage ¶
func (*CreateUserReq) ProtoMessage()
func (*CreateUserReq) ProtoReflect ¶
func (x *CreateUserReq) ProtoReflect() protoreflect.Message
func (*CreateUserReq) Reset ¶
func (x *CreateUserReq) Reset()
func (*CreateUserReq) String ¶
func (x *CreateUserReq) String() string
func (*CreateUserReq) Validate ¶
func (m *CreateUserReq) Validate() error
Validate checks the field values on CreateUserReq 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 (*CreateUserReq) ValidateAll ¶
func (m *CreateUserReq) ValidateAll() error
ValidateAll checks the field values on CreateUserReq 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 CreateUserReqMultiError, or nil if none found.
type CreateUserReqMultiError ¶
type CreateUserReqMultiError []error
CreateUserReqMultiError is an error wrapping multiple validation errors returned by CreateUserReq.ValidateAll() if the designated constraints aren't met.
func (CreateUserReqMultiError) AllErrors ¶
func (m CreateUserReqMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (CreateUserReqMultiError) Error ¶
func (m CreateUserReqMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type CreateUserReqValidationError ¶
type CreateUserReqValidationError struct {
// contains filtered or unexported fields
}
CreateUserReqValidationError is the validation error returned by CreateUserReq.Validate if the designated constraints aren't met.
func (CreateUserReqValidationError) Cause ¶
func (e CreateUserReqValidationError) Cause() error
Cause function returns cause value.
func (CreateUserReqValidationError) Error ¶
func (e CreateUserReqValidationError) Error() string
Error satisfies the builtin error interface
func (CreateUserReqValidationError) ErrorName ¶
func (e CreateUserReqValidationError) ErrorName() string
ErrorName returns error name.
func (CreateUserReqValidationError) Field ¶
func (e CreateUserReqValidationError) Field() string
Field function returns field value.
func (CreateUserReqValidationError) Key ¶
func (e CreateUserReqValidationError) Key() bool
Key function returns key value.
func (CreateUserReqValidationError) Reason ¶
func (e CreateUserReqValidationError) Reason() string
Reason function returns reason value.
type CreateUserRsp ¶
type CreateUserRsp struct { CreatedUser *User `protobuf:"bytes,1,opt,name=created_user,json=createdUser,proto3" json:"created_user,omitempty"` // contains filtered or unexported fields }
func (*CreateUserRsp) Descriptor
deprecated
func (*CreateUserRsp) Descriptor() ([]byte, []int)
Deprecated: Use CreateUserRsp.ProtoReflect.Descriptor instead.
func (*CreateUserRsp) GetCreatedUser ¶
func (x *CreateUserRsp) GetCreatedUser() *User
func (*CreateUserRsp) ProtoMessage ¶
func (*CreateUserRsp) ProtoMessage()
func (*CreateUserRsp) ProtoReflect ¶
func (x *CreateUserRsp) ProtoReflect() protoreflect.Message
func (*CreateUserRsp) Reset ¶
func (x *CreateUserRsp) Reset()
func (*CreateUserRsp) String ¶
func (x *CreateUserRsp) String() string
func (*CreateUserRsp) Validate ¶
func (m *CreateUserRsp) Validate() error
Validate checks the field values on CreateUserRsp 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 (*CreateUserRsp) ValidateAll ¶
func (m *CreateUserRsp) ValidateAll() error
ValidateAll checks the field values on CreateUserRsp 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 CreateUserRspMultiError, or nil if none found.
type CreateUserRspMultiError ¶
type CreateUserRspMultiError []error
CreateUserRspMultiError is an error wrapping multiple validation errors returned by CreateUserRsp.ValidateAll() if the designated constraints aren't met.
func (CreateUserRspMultiError) AllErrors ¶
func (m CreateUserRspMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (CreateUserRspMultiError) Error ¶
func (m CreateUserRspMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type CreateUserRspValidationError ¶
type CreateUserRspValidationError struct {
// contains filtered or unexported fields
}
CreateUserRspValidationError is the validation error returned by CreateUserRsp.Validate if the designated constraints aren't met.
func (CreateUserRspValidationError) Cause ¶
func (e CreateUserRspValidationError) Cause() error
Cause function returns cause value.
func (CreateUserRspValidationError) Error ¶
func (e CreateUserRspValidationError) Error() string
Error satisfies the builtin error interface
func (CreateUserRspValidationError) ErrorName ¶
func (e CreateUserRspValidationError) ErrorName() string
ErrorName returns error name.
func (CreateUserRspValidationError) Field ¶
func (e CreateUserRspValidationError) Field() string
Field function returns field value.
func (CreateUserRspValidationError) Key ¶
func (e CreateUserRspValidationError) Key() bool
Key function returns key value.
func (CreateUserRspValidationError) Reason ¶
func (e CreateUserRspValidationError) Reason() string
Reason function returns reason value.
type GetAccountReq ¶
type GetAccountReq struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty" uri:"id"` // @gotags: uri:"id" // contains filtered or unexported fields }
func (*GetAccountReq) Descriptor
deprecated
func (*GetAccountReq) Descriptor() ([]byte, []int)
Deprecated: Use GetAccountReq.ProtoReflect.Descriptor instead.
func (*GetAccountReq) GetId ¶
func (x *GetAccountReq) GetId() int64
func (*GetAccountReq) ProtoMessage ¶
func (*GetAccountReq) ProtoMessage()
func (*GetAccountReq) ProtoReflect ¶
func (x *GetAccountReq) ProtoReflect() protoreflect.Message
func (*GetAccountReq) Reset ¶
func (x *GetAccountReq) Reset()
func (*GetAccountReq) String ¶
func (x *GetAccountReq) String() string
func (*GetAccountReq) Validate ¶
func (m *GetAccountReq) Validate() error
Validate checks the field values on GetAccountReq 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 (*GetAccountReq) ValidateAll ¶
func (m *GetAccountReq) ValidateAll() error
ValidateAll checks the field values on GetAccountReq 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 GetAccountReqMultiError, or nil if none found.
type GetAccountReqMultiError ¶
type GetAccountReqMultiError []error
GetAccountReqMultiError is an error wrapping multiple validation errors returned by GetAccountReq.ValidateAll() if the designated constraints aren't met.
func (GetAccountReqMultiError) AllErrors ¶
func (m GetAccountReqMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetAccountReqMultiError) Error ¶
func (m GetAccountReqMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetAccountReqValidationError ¶
type GetAccountReqValidationError struct {
// contains filtered or unexported fields
}
GetAccountReqValidationError is the validation error returned by GetAccountReq.Validate if the designated constraints aren't met.
func (GetAccountReqValidationError) Cause ¶
func (e GetAccountReqValidationError) Cause() error
Cause function returns cause value.
func (GetAccountReqValidationError) Error ¶
func (e GetAccountReqValidationError) Error() string
Error satisfies the builtin error interface
func (GetAccountReqValidationError) ErrorName ¶
func (e GetAccountReqValidationError) ErrorName() string
ErrorName returns error name.
func (GetAccountReqValidationError) Field ¶
func (e GetAccountReqValidationError) Field() string
Field function returns field value.
func (GetAccountReqValidationError) Key ¶
func (e GetAccountReqValidationError) Key() bool
Key function returns key value.
func (GetAccountReqValidationError) Reason ¶
func (e GetAccountReqValidationError) Reason() string
Reason function returns reason value.
type GetAccountRsp ¶
type GetAccountRsp struct { Account *Account `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"` // contains filtered or unexported fields }
func (*GetAccountRsp) Descriptor
deprecated
func (*GetAccountRsp) Descriptor() ([]byte, []int)
Deprecated: Use GetAccountRsp.ProtoReflect.Descriptor instead.
func (*GetAccountRsp) GetAccount ¶
func (x *GetAccountRsp) GetAccount() *Account
func (*GetAccountRsp) ProtoMessage ¶
func (*GetAccountRsp) ProtoMessage()
func (*GetAccountRsp) ProtoReflect ¶
func (x *GetAccountRsp) ProtoReflect() protoreflect.Message
func (*GetAccountRsp) Reset ¶
func (x *GetAccountRsp) Reset()
func (*GetAccountRsp) String ¶
func (x *GetAccountRsp) String() string
func (*GetAccountRsp) Validate ¶
func (m *GetAccountRsp) Validate() error
Validate checks the field values on GetAccountRsp 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 (*GetAccountRsp) ValidateAll ¶
func (m *GetAccountRsp) ValidateAll() error
ValidateAll checks the field values on GetAccountRsp 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 GetAccountRspMultiError, or nil if none found.
type GetAccountRspMultiError ¶
type GetAccountRspMultiError []error
GetAccountRspMultiError is an error wrapping multiple validation errors returned by GetAccountRsp.ValidateAll() if the designated constraints aren't met.
func (GetAccountRspMultiError) AllErrors ¶
func (m GetAccountRspMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetAccountRspMultiError) Error ¶
func (m GetAccountRspMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetAccountRspValidationError ¶
type GetAccountRspValidationError struct {
// contains filtered or unexported fields
}
GetAccountRspValidationError is the validation error returned by GetAccountRsp.Validate if the designated constraints aren't met.
func (GetAccountRspValidationError) Cause ¶
func (e GetAccountRspValidationError) Cause() error
Cause function returns cause value.
func (GetAccountRspValidationError) Error ¶
func (e GetAccountRspValidationError) Error() string
Error satisfies the builtin error interface
func (GetAccountRspValidationError) ErrorName ¶
func (e GetAccountRspValidationError) ErrorName() string
ErrorName returns error name.
func (GetAccountRspValidationError) Field ¶
func (e GetAccountRspValidationError) Field() string
Field function returns field value.
func (GetAccountRspValidationError) Key ¶
func (e GetAccountRspValidationError) Key() bool
Key function returns key value.
func (GetAccountRspValidationError) Reason ¶
func (e GetAccountRspValidationError) Reason() string
Reason function returns reason value.
type ListAccountsReq ¶
type ListAccountsReq struct { Limit uint32 `protobuf:"varint,1,opt,name=limit,proto3" json:"limit,omitempty" form:"limit"` // @gotags: form:"limit" Offset uint32 `protobuf:"varint,2,opt,name=offset,proto3" json:"offset,omitempty" form:"offset"` // @gotags: form:"offset" // contains filtered or unexported fields }
func (*ListAccountsReq) Descriptor
deprecated
func (*ListAccountsReq) Descriptor() ([]byte, []int)
Deprecated: Use ListAccountsReq.ProtoReflect.Descriptor instead.
func (*ListAccountsReq) GetLimit ¶
func (x *ListAccountsReq) GetLimit() uint32
func (*ListAccountsReq) GetOffset ¶
func (x *ListAccountsReq) GetOffset() uint32
func (*ListAccountsReq) ProtoMessage ¶
func (*ListAccountsReq) ProtoMessage()
func (*ListAccountsReq) ProtoReflect ¶
func (x *ListAccountsReq) ProtoReflect() protoreflect.Message
func (*ListAccountsReq) Reset ¶
func (x *ListAccountsReq) Reset()
func (*ListAccountsReq) String ¶
func (x *ListAccountsReq) String() string
func (*ListAccountsReq) Validate ¶
func (m *ListAccountsReq) Validate() error
Validate checks the field values on ListAccountsReq 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 (*ListAccountsReq) ValidateAll ¶
func (m *ListAccountsReq) ValidateAll() error
ValidateAll checks the field values on ListAccountsReq 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 ListAccountsReqMultiError, or nil if none found.
type ListAccountsReqMultiError ¶
type ListAccountsReqMultiError []error
ListAccountsReqMultiError is an error wrapping multiple validation errors returned by ListAccountsReq.ValidateAll() if the designated constraints aren't met.
func (ListAccountsReqMultiError) AllErrors ¶
func (m ListAccountsReqMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ListAccountsReqMultiError) Error ¶
func (m ListAccountsReqMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ListAccountsReqValidationError ¶
type ListAccountsReqValidationError struct {
// contains filtered or unexported fields
}
ListAccountsReqValidationError is the validation error returned by ListAccountsReq.Validate if the designated constraints aren't met.
func (ListAccountsReqValidationError) Cause ¶
func (e ListAccountsReqValidationError) Cause() error
Cause function returns cause value.
func (ListAccountsReqValidationError) Error ¶
func (e ListAccountsReqValidationError) Error() string
Error satisfies the builtin error interface
func (ListAccountsReqValidationError) ErrorName ¶
func (e ListAccountsReqValidationError) ErrorName() string
ErrorName returns error name.
func (ListAccountsReqValidationError) Field ¶
func (e ListAccountsReqValidationError) Field() string
Field function returns field value.
func (ListAccountsReqValidationError) Key ¶
func (e ListAccountsReqValidationError) Key() bool
Key function returns key value.
func (ListAccountsReqValidationError) Reason ¶
func (e ListAccountsReqValidationError) Reason() string
Reason function returns reason value.
type ListAccountsRsp ¶
type ListAccountsRsp struct { Accounts []*Account `protobuf:"bytes,1,rep,name=accounts,proto3" json:"accounts,omitempty"` // contains filtered or unexported fields }
func (*ListAccountsRsp) Descriptor
deprecated
func (*ListAccountsRsp) Descriptor() ([]byte, []int)
Deprecated: Use ListAccountsRsp.ProtoReflect.Descriptor instead.
func (*ListAccountsRsp) GetAccounts ¶
func (x *ListAccountsRsp) GetAccounts() []*Account
func (*ListAccountsRsp) ProtoMessage ¶
func (*ListAccountsRsp) ProtoMessage()
func (*ListAccountsRsp) ProtoReflect ¶
func (x *ListAccountsRsp) ProtoReflect() protoreflect.Message
func (*ListAccountsRsp) Reset ¶
func (x *ListAccountsRsp) Reset()
func (*ListAccountsRsp) String ¶
func (x *ListAccountsRsp) String() string
func (*ListAccountsRsp) Validate ¶
func (m *ListAccountsRsp) Validate() error
Validate checks the field values on ListAccountsRsp 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 (*ListAccountsRsp) ValidateAll ¶
func (m *ListAccountsRsp) ValidateAll() error
ValidateAll checks the field values on ListAccountsRsp 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 ListAccountsRspMultiError, or nil if none found.
type ListAccountsRspMultiError ¶
type ListAccountsRspMultiError []error
ListAccountsRspMultiError is an error wrapping multiple validation errors returned by ListAccountsRsp.ValidateAll() if the designated constraints aren't met.
func (ListAccountsRspMultiError) AllErrors ¶
func (m ListAccountsRspMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ListAccountsRspMultiError) Error ¶
func (m ListAccountsRspMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ListAccountsRspValidationError ¶
type ListAccountsRspValidationError struct {
// contains filtered or unexported fields
}
ListAccountsRspValidationError is the validation error returned by ListAccountsRsp.Validate if the designated constraints aren't met.
func (ListAccountsRspValidationError) Cause ¶
func (e ListAccountsRspValidationError) Cause() error
Cause function returns cause value.
func (ListAccountsRspValidationError) Error ¶
func (e ListAccountsRspValidationError) Error() string
Error satisfies the builtin error interface
func (ListAccountsRspValidationError) ErrorName ¶
func (e ListAccountsRspValidationError) ErrorName() string
ErrorName returns error name.
func (ListAccountsRspValidationError) Field ¶
func (e ListAccountsRspValidationError) Field() string
Field function returns field value.
func (ListAccountsRspValidationError) Key ¶
func (e ListAccountsRspValidationError) Key() bool
Key function returns key value.
func (ListAccountsRspValidationError) Reason ¶
func (e ListAccountsRspValidationError) Reason() string
Reason function returns reason value.
type LoginReq ¶
type LoginReq struct { UserName string `protobuf:"bytes,1,opt,name=user_name,json=userName,proto3" json:"user_name,omitempty"` Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` // contains filtered or unexported fields }
func (*LoginReq) Descriptor
deprecated
func (*LoginReq) GetPassword ¶
func (*LoginReq) GetUserName ¶
func (*LoginReq) ProtoMessage ¶
func (*LoginReq) ProtoMessage()
func (*LoginReq) ProtoReflect ¶
func (x *LoginReq) ProtoReflect() protoreflect.Message
func (*LoginReq) Validate ¶
Validate checks the field values on LoginReq 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 (*LoginReq) ValidateAll ¶
ValidateAll checks the field values on LoginReq 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 LoginReqMultiError, or nil if none found.
type LoginReqMultiError ¶
type LoginReqMultiError []error
LoginReqMultiError is an error wrapping multiple validation errors returned by LoginReq.ValidateAll() if the designated constraints aren't met.
func (LoginReqMultiError) AllErrors ¶
func (m LoginReqMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (LoginReqMultiError) Error ¶
func (m LoginReqMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type LoginReqValidationError ¶
type LoginReqValidationError struct {
// contains filtered or unexported fields
}
LoginReqValidationError is the validation error returned by LoginReq.Validate if the designated constraints aren't met.
func (LoginReqValidationError) Cause ¶
func (e LoginReqValidationError) Cause() error
Cause function returns cause value.
func (LoginReqValidationError) Error ¶
func (e LoginReqValidationError) Error() string
Error satisfies the builtin error interface
func (LoginReqValidationError) ErrorName ¶
func (e LoginReqValidationError) ErrorName() string
ErrorName returns error name.
func (LoginReqValidationError) Field ¶
func (e LoginReqValidationError) Field() string
Field function returns field value.
func (LoginReqValidationError) Key ¶
func (e LoginReqValidationError) Key() bool
Key function returns key value.
func (LoginReqValidationError) Reason ¶
func (e LoginReqValidationError) Reason() string
Reason function returns reason value.
type LoginRsp ¶
type LoginRsp struct { AccessToken string `protobuf:"bytes,1,opt,name=access_token,json=accessToken,proto3" json:"access_token,omitempty"` UserInfo *User `protobuf:"bytes,2,opt,name=user_info,json=userInfo,proto3" json:"user_info,omitempty"` // contains filtered or unexported fields }
func (*LoginRsp) Descriptor
deprecated
func (*LoginRsp) GetAccessToken ¶
func (*LoginRsp) GetUserInfo ¶
func (*LoginRsp) ProtoMessage ¶
func (*LoginRsp) ProtoMessage()
func (*LoginRsp) ProtoReflect ¶
func (x *LoginRsp) ProtoReflect() protoreflect.Message
func (*LoginRsp) Validate ¶
Validate checks the field values on LoginRsp 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 (*LoginRsp) ValidateAll ¶
ValidateAll checks the field values on LoginRsp 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 LoginRspMultiError, or nil if none found.
type LoginRspMultiError ¶
type LoginRspMultiError []error
LoginRspMultiError is an error wrapping multiple validation errors returned by LoginRsp.ValidateAll() if the designated constraints aren't met.
func (LoginRspMultiError) AllErrors ¶
func (m LoginRspMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (LoginRspMultiError) Error ¶
func (m LoginRspMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type LoginRspValidationError ¶
type LoginRspValidationError struct {
// contains filtered or unexported fields
}
LoginRspValidationError is the validation error returned by LoginRsp.Validate if the designated constraints aren't met.
func (LoginRspValidationError) Cause ¶
func (e LoginRspValidationError) Cause() error
Cause function returns cause value.
func (LoginRspValidationError) Error ¶
func (e LoginRspValidationError) Error() string
Error satisfies the builtin error interface
func (LoginRspValidationError) ErrorName ¶
func (e LoginRspValidationError) ErrorName() string
ErrorName returns error name.
func (LoginRspValidationError) Field ¶
func (e LoginRspValidationError) Field() string
Field function returns field value.
func (LoginRspValidationError) Key ¶
func (e LoginRspValidationError) Key() bool
Key function returns key value.
func (LoginRspValidationError) Reason ¶
func (e LoginRspValidationError) Reason() string
Reason function returns reason value.
type TransferReq ¶
type TransferReq struct { FromAccountId int64 `protobuf:"varint,1,opt,name=from_account_id,json=fromAccountId,proto3" json:"from_account_id,omitempty"` ToAccountId int64 `protobuf:"varint,2,opt,name=to_account_id,json=toAccountId,proto3" json:"to_account_id,omitempty"` Amount int64 `protobuf:"varint,3,opt,name=amount,proto3" json:"amount,omitempty"` Currency string `protobuf:"bytes,4,opt,name=currency,proto3" json:"currency,omitempty" binding:"required,currency"` // @gotags: binding:"required,currency" // contains filtered or unexported fields }
func (*TransferReq) Descriptor
deprecated
func (*TransferReq) Descriptor() ([]byte, []int)
Deprecated: Use TransferReq.ProtoReflect.Descriptor instead.
func (*TransferReq) GetAmount ¶
func (x *TransferReq) GetAmount() int64
func (*TransferReq) GetCurrency ¶
func (x *TransferReq) GetCurrency() string
func (*TransferReq) GetFromAccountId ¶
func (x *TransferReq) GetFromAccountId() int64
func (*TransferReq) GetToAccountId ¶
func (x *TransferReq) GetToAccountId() int64
func (*TransferReq) ProtoMessage ¶
func (*TransferReq) ProtoMessage()
func (*TransferReq) ProtoReflect ¶
func (x *TransferReq) ProtoReflect() protoreflect.Message
func (*TransferReq) Reset ¶
func (x *TransferReq) Reset()
func (*TransferReq) String ¶
func (x *TransferReq) String() string
func (*TransferReq) Validate ¶
func (m *TransferReq) Validate() error
Validate checks the field values on TransferReq 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 (*TransferReq) ValidateAll ¶
func (m *TransferReq) ValidateAll() error
ValidateAll checks the field values on TransferReq 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 TransferReqMultiError, or nil if none found.
type TransferReqMultiError ¶
type TransferReqMultiError []error
TransferReqMultiError is an error wrapping multiple validation errors returned by TransferReq.ValidateAll() if the designated constraints aren't met.
func (TransferReqMultiError) AllErrors ¶
func (m TransferReqMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (TransferReqMultiError) Error ¶
func (m TransferReqMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type TransferReqValidationError ¶
type TransferReqValidationError struct {
// contains filtered or unexported fields
}
TransferReqValidationError is the validation error returned by TransferReq.Validate if the designated constraints aren't met.
func (TransferReqValidationError) Cause ¶
func (e TransferReqValidationError) Cause() error
Cause function returns cause value.
func (TransferReqValidationError) Error ¶
func (e TransferReqValidationError) Error() string
Error satisfies the builtin error interface
func (TransferReqValidationError) ErrorName ¶
func (e TransferReqValidationError) ErrorName() string
ErrorName returns error name.
func (TransferReqValidationError) Field ¶
func (e TransferReqValidationError) Field() string
Field function returns field value.
func (TransferReqValidationError) Key ¶
func (e TransferReqValidationError) Key() bool
Key function returns key value.
func (TransferReqValidationError) Reason ¶
func (e TransferReqValidationError) Reason() string
Reason function returns reason value.
type TransferRsp ¶
type TransferRsp struct { FromAccount *Account `protobuf:"bytes,1,opt,name=from_account,json=fromAccount,proto3" json:"from_account,omitempty"` ToAccount *Account `protobuf:"bytes,2,opt,name=to_account,json=toAccount,proto3" json:"to_account,omitempty"` // contains filtered or unexported fields }
func (*TransferRsp) Descriptor
deprecated
func (*TransferRsp) Descriptor() ([]byte, []int)
Deprecated: Use TransferRsp.ProtoReflect.Descriptor instead.
func (*TransferRsp) GetFromAccount ¶
func (x *TransferRsp) GetFromAccount() *Account
func (*TransferRsp) GetToAccount ¶
func (x *TransferRsp) GetToAccount() *Account
func (*TransferRsp) ProtoMessage ¶
func (*TransferRsp) ProtoMessage()
func (*TransferRsp) ProtoReflect ¶
func (x *TransferRsp) ProtoReflect() protoreflect.Message
func (*TransferRsp) Reset ¶
func (x *TransferRsp) Reset()
func (*TransferRsp) String ¶
func (x *TransferRsp) String() string
func (*TransferRsp) Validate ¶
func (m *TransferRsp) Validate() error
Validate checks the field values on TransferRsp 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 (*TransferRsp) ValidateAll ¶
func (m *TransferRsp) ValidateAll() error
ValidateAll checks the field values on TransferRsp 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 TransferRspMultiError, or nil if none found.
type TransferRspMultiError ¶
type TransferRspMultiError []error
TransferRspMultiError is an error wrapping multiple validation errors returned by TransferRsp.ValidateAll() if the designated constraints aren't met.
func (TransferRspMultiError) AllErrors ¶
func (m TransferRspMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (TransferRspMultiError) Error ¶
func (m TransferRspMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type TransferRspValidationError ¶
type TransferRspValidationError struct {
// contains filtered or unexported fields
}
TransferRspValidationError is the validation error returned by TransferRsp.Validate if the designated constraints aren't met.
func (TransferRspValidationError) Cause ¶
func (e TransferRspValidationError) Cause() error
Cause function returns cause value.
func (TransferRspValidationError) Error ¶
func (e TransferRspValidationError) Error() string
Error satisfies the builtin error interface
func (TransferRspValidationError) ErrorName ¶
func (e TransferRspValidationError) ErrorName() string
ErrorName returns error name.
func (TransferRspValidationError) Field ¶
func (e TransferRspValidationError) Field() string
Field function returns field value.
func (TransferRspValidationError) Key ¶
func (e TransferRspValidationError) Key() bool
Key function returns key value.
func (TransferRspValidationError) Reason ¶
func (e TransferRspValidationError) Reason() string
Reason function returns reason value.
type User ¶
type User struct { UserName string `protobuf:"bytes,1,opt,name=user_name,json=userName,proto3" json:"user_name,omitempty"` FullName string `protobuf:"bytes,2,opt,name=full_name,json=fullName,proto3" json:"full_name,omitempty"` Email string `protobuf:"bytes,4,opt,name=email,proto3" json:"email,omitempty"` PasswordChangedAt *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=password_changed_at,json=passwordChangedAt,proto3" json:"password_changed_at,omitempty"` CreateAt *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=create_at,json=createAt,proto3" json:"create_at,omitempty"` // contains filtered or unexported fields }
func (*User) Descriptor
deprecated
func (*User) GetCreateAt ¶
func (x *User) GetCreateAt() *timestamppb.Timestamp
func (*User) GetFullName ¶
func (*User) GetPasswordChangedAt ¶
func (x *User) GetPasswordChangedAt() *timestamppb.Timestamp
func (*User) GetUserName ¶
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.