v1

package
v0.0.0-...-f99db60 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2024 License: MIT Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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

Deprecated: Use Account.ProtoReflect.Descriptor instead.

func (*Account) GetBalance

func (x *Account) GetBalance() int64

func (*Account) GetCreateAt

func (x *Account) GetCreateAt() *timestamppb.Timestamp

func (*Account) GetCurrency

func (x *Account) GetCurrency() string

func (*Account) GetId

func (x *Account) GetId() int64

func (*Account) GetOwner

func (x *Account) GetOwner() string

func (*Account) ProtoMessage

func (*Account) ProtoMessage()

func (*Account) ProtoReflect

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

func (*Account) Reset

func (x *Account) Reset()

func (*Account) String

func (x *Account) String() string

func (*Account) Validate

func (m *Account) Validate() error

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

func (m *Account) ValidateAll() error

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 (s *Bank) CreateAccount_0(ctx *gin.Context)

func (*Bank) CreateUser_0

func (s *Bank) CreateUser_0(ctx *gin.Context)

func (*Bank) GetAccount_0

func (s *Bank) GetAccount_0(ctx *gin.Context)

func (*Bank) ListAccounts_0

func (s *Bank) ListAccounts_0(ctx *gin.Context)

func (*Bank) Login_0

func (s *Bank) Login_0(ctx *gin.Context)

func (*Bank) RegisterService

func (s *Bank) RegisterService(deps *deps.Info)

func (*Bank) Transfer_0

func (s *Bank) Transfer_0(ctx *gin.Context)

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

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

Cause function returns cause value.

func (CreateAccountReqValidationError) Error

Error satisfies the builtin error interface

func (CreateAccountReqValidationError) ErrorName

ErrorName returns error name.

func (CreateAccountReqValidationError) Field

Field function returns field value.

func (CreateAccountReqValidationError) Key

Key function returns key value.

func (CreateAccountReqValidationError) Reason

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

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

Cause function returns cause value.

func (CreateAccountRspValidationError) Error

Error satisfies the builtin error interface

func (CreateAccountRspValidationError) ErrorName

ErrorName returns error name.

func (CreateAccountRspValidationError) Field

Field function returns field value.

func (CreateAccountRspValidationError) Key

Key function returns key value.

func (CreateAccountRspValidationError) Reason

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

Cause function returns cause value.

func (CreateUserReqValidationError) Error

Error satisfies the builtin error interface

func (CreateUserReqValidationError) ErrorName

func (e CreateUserReqValidationError) ErrorName() string

ErrorName returns error name.

func (CreateUserReqValidationError) Field

Field function returns field value.

func (CreateUserReqValidationError) Key

Key function returns key value.

func (CreateUserReqValidationError) Reason

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

Cause function returns cause value.

func (CreateUserRspValidationError) Error

Error satisfies the builtin error interface

func (CreateUserRspValidationError) ErrorName

func (e CreateUserRspValidationError) ErrorName() string

ErrorName returns error name.

func (CreateUserRspValidationError) Field

Field function returns field value.

func (CreateUserRspValidationError) Key

Key function returns key value.

func (CreateUserRspValidationError) Reason

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

Cause function returns cause value.

func (GetAccountReqValidationError) Error

Error satisfies the builtin error interface

func (GetAccountReqValidationError) ErrorName

func (e GetAccountReqValidationError) ErrorName() string

ErrorName returns error name.

func (GetAccountReqValidationError) Field

Field function returns field value.

func (GetAccountReqValidationError) Key

Key function returns key value.

func (GetAccountReqValidationError) Reason

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

Cause function returns cause value.

func (GetAccountRspValidationError) Error

Error satisfies the builtin error interface

func (GetAccountRspValidationError) ErrorName

func (e GetAccountRspValidationError) ErrorName() string

ErrorName returns error name.

func (GetAccountRspValidationError) Field

Field function returns field value.

func (GetAccountRspValidationError) Key

Key function returns key value.

func (GetAccountRspValidationError) Reason

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

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

Cause function returns cause value.

func (ListAccountsReqValidationError) Error

Error satisfies the builtin error interface

func (ListAccountsReqValidationError) ErrorName

func (e ListAccountsReqValidationError) ErrorName() string

ErrorName returns error name.

func (ListAccountsReqValidationError) Field

Field function returns field value.

func (ListAccountsReqValidationError) Key

Key function returns key value.

func (ListAccountsReqValidationError) Reason

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

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

Cause function returns cause value.

func (ListAccountsRspValidationError) Error

Error satisfies the builtin error interface

func (ListAccountsRspValidationError) ErrorName

func (e ListAccountsRspValidationError) ErrorName() string

ErrorName returns error name.

func (ListAccountsRspValidationError) Field

Field function returns field value.

func (ListAccountsRspValidationError) Key

Key function returns key value.

func (ListAccountsRspValidationError) Reason

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

Deprecated: Use LoginReq.ProtoReflect.Descriptor instead.

func (*LoginReq) GetPassword

func (x *LoginReq) GetPassword() string

func (*LoginReq) GetUserName

func (x *LoginReq) GetUserName() string

func (*LoginReq) ProtoMessage

func (*LoginReq) ProtoMessage()

func (*LoginReq) ProtoReflect

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

func (*LoginReq) Reset

func (x *LoginReq) Reset()

func (*LoginReq) String

func (x *LoginReq) String() string

func (*LoginReq) Validate

func (m *LoginReq) Validate() error

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

func (m *LoginReq) ValidateAll() error

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

Deprecated: Use LoginRsp.ProtoReflect.Descriptor instead.

func (*LoginRsp) GetAccessToken

func (x *LoginRsp) GetAccessToken() string

func (*LoginRsp) GetUserInfo

func (x *LoginRsp) GetUserInfo() *User

func (*LoginRsp) ProtoMessage

func (*LoginRsp) ProtoMessage()

func (*LoginRsp) ProtoReflect

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

func (*LoginRsp) Reset

func (x *LoginRsp) Reset()

func (*LoginRsp) String

func (x *LoginRsp) String() string

func (*LoginRsp) Validate

func (m *LoginRsp) Validate() error

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

func (m *LoginRsp) ValidateAll() error

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

Cause function returns cause value.

func (TransferReqValidationError) Error

Error satisfies the builtin error interface

func (TransferReqValidationError) ErrorName

func (e TransferReqValidationError) ErrorName() string

ErrorName returns error name.

func (TransferReqValidationError) Field

Field function returns field value.

func (TransferReqValidationError) Key

Key function returns key value.

func (TransferReqValidationError) Reason

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

Cause function returns cause value.

func (TransferRspValidationError) Error

Error satisfies the builtin error interface

func (TransferRspValidationError) ErrorName

func (e TransferRspValidationError) ErrorName() string

ErrorName returns error name.

func (TransferRspValidationError) Field

Field function returns field value.

func (TransferRspValidationError) Key

Key function returns key value.

func (TransferRspValidationError) Reason

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

Deprecated: Use User.ProtoReflect.Descriptor instead.

func (*User) GetCreateAt

func (x *User) GetCreateAt() *timestamppb.Timestamp

func (*User) GetEmail

func (x *User) GetEmail() string

func (*User) GetFullName

func (x *User) GetFullName() string

func (*User) GetPasswordChangedAt

func (x *User) GetPasswordChangedAt() *timestamppb.Timestamp

func (*User) GetUserName

func (x *User) GetUserName() 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.

Jump to

Keyboard shortcuts

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