Documentation
¶
Index ¶
- Variables
- func RegisterAccountHTTPServer(s *http.Server, srv AccountHTTPServer)
- func RegisterAccountServer(s grpc.ServiceRegistrar, srv AccountServer)
- type AccountClient
- type AccountHTTPClient
- type AccountHTTPClientImpl
- func (c *AccountHTTPClientImpl) CreateAccount(ctx context.Context, in *CreateAccountRequest, opts ...http.CallOption) (*CreateAccountReply, error)
- func (c *AccountHTTPClientImpl) GetAccount(ctx context.Context, in *GetAccountRequest, opts ...http.CallOption) (*GetAccountReply, error)
- func (c *AccountHTTPClientImpl) ListAccount(ctx context.Context, in *ListAccountRequest, opts ...http.CallOption) (*ListAccountReply, error)
- func (c *AccountHTTPClientImpl) Login(ctx context.Context, in *LoginRequest, opts ...http.CallOption) (*LoginReply, error)
- type AccountHTTPServer
- type AccountServer
- type CreateAccountReply
- func (*CreateAccountReply) Descriptor() ([]byte, []int)deprecated
- func (x *CreateAccountReply) GetId() int32
- func (*CreateAccountReply) ProtoMessage()
- func (x *CreateAccountReply) ProtoReflect() protoreflect.Message
- func (x *CreateAccountReply) Reset()
- func (x *CreateAccountReply) String() string
- func (m *CreateAccountReply) Validate() error
- func (m *CreateAccountReply) ValidateAll() error
- type CreateAccountReplyMultiError
- type CreateAccountReplyValidationError
- func (e CreateAccountReplyValidationError) Cause() error
- func (e CreateAccountReplyValidationError) Error() string
- func (e CreateAccountReplyValidationError) ErrorName() string
- func (e CreateAccountReplyValidationError) Field() string
- func (e CreateAccountReplyValidationError) Key() bool
- func (e CreateAccountReplyValidationError) Reason() string
- type CreateAccountRequest
- func (*CreateAccountRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateAccountRequest) GetAge() int64
- func (x *CreateAccountRequest) GetEmail() string
- func (x *CreateAccountRequest) GetName() string
- func (x *CreateAccountRequest) GetSex() bool
- func (*CreateAccountRequest) ProtoMessage()
- func (x *CreateAccountRequest) ProtoReflect() protoreflect.Message
- func (x *CreateAccountRequest) Reset()
- func (x *CreateAccountRequest) String() string
- func (m *CreateAccountRequest) Validate() error
- func (m *CreateAccountRequest) ValidateAll() error
- type CreateAccountRequestMultiError
- type CreateAccountRequestValidationError
- func (e CreateAccountRequestValidationError) Cause() error
- func (e CreateAccountRequestValidationError) Error() string
- func (e CreateAccountRequestValidationError) ErrorName() string
- func (e CreateAccountRequestValidationError) Field() string
- func (e CreateAccountRequestValidationError) Key() bool
- func (e CreateAccountRequestValidationError) Reason() string
- type DeleteAccountReply
- func (*DeleteAccountReply) Descriptor() ([]byte, []int)deprecated
- func (*DeleteAccountReply) ProtoMessage()
- func (x *DeleteAccountReply) ProtoReflect() protoreflect.Message
- func (x *DeleteAccountReply) Reset()
- func (x *DeleteAccountReply) String() string
- func (m *DeleteAccountReply) Validate() error
- func (m *DeleteAccountReply) ValidateAll() error
- type DeleteAccountReplyMultiError
- type DeleteAccountReplyValidationError
- func (e DeleteAccountReplyValidationError) Cause() error
- func (e DeleteAccountReplyValidationError) Error() string
- func (e DeleteAccountReplyValidationError) ErrorName() string
- func (e DeleteAccountReplyValidationError) Field() string
- func (e DeleteAccountReplyValidationError) Key() bool
- func (e DeleteAccountReplyValidationError) Reason() string
- type DeleteAccountRequest
- func (*DeleteAccountRequest) Descriptor() ([]byte, []int)deprecated
- func (*DeleteAccountRequest) ProtoMessage()
- func (x *DeleteAccountRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteAccountRequest) Reset()
- func (x *DeleteAccountRequest) String() string
- func (m *DeleteAccountRequest) Validate() error
- func (m *DeleteAccountRequest) ValidateAll() error
- type DeleteAccountRequestMultiError
- type DeleteAccountRequestValidationError
- func (e DeleteAccountRequestValidationError) Cause() error
- func (e DeleteAccountRequestValidationError) Error() string
- func (e DeleteAccountRequestValidationError) ErrorName() string
- func (e DeleteAccountRequestValidationError) Field() string
- func (e DeleteAccountRequestValidationError) Key() bool
- func (e DeleteAccountRequestValidationError) Reason() string
- type GetAccountReply
- func (*GetAccountReply) Descriptor() ([]byte, []int)deprecated
- func (x *GetAccountReply) GetAge() int64
- func (x *GetAccountReply) GetEmail() string
- func (x *GetAccountReply) GetId() int32
- func (x *GetAccountReply) GetName() string
- func (x *GetAccountReply) GetSex() bool
- func (*GetAccountReply) ProtoMessage()
- func (x *GetAccountReply) ProtoReflect() protoreflect.Message
- func (x *GetAccountReply) Reset()
- func (x *GetAccountReply) String() string
- func (m *GetAccountReply) Validate() error
- func (m *GetAccountReply) ValidateAll() error
- type GetAccountReplyMultiError
- type GetAccountReplyValidationError
- func (e GetAccountReplyValidationError) Cause() error
- func (e GetAccountReplyValidationError) Error() string
- func (e GetAccountReplyValidationError) ErrorName() string
- func (e GetAccountReplyValidationError) Field() string
- func (e GetAccountReplyValidationError) Key() bool
- func (e GetAccountReplyValidationError) Reason() string
- type GetAccountRequest
- func (*GetAccountRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetAccountRequest) GetId() int32
- func (*GetAccountRequest) ProtoMessage()
- func (x *GetAccountRequest) ProtoReflect() protoreflect.Message
- func (x *GetAccountRequest) Reset()
- func (x *GetAccountRequest) String() string
- func (m *GetAccountRequest) Validate() error
- func (m *GetAccountRequest) ValidateAll() error
- type GetAccountRequestMultiError
- type GetAccountRequestValidationError
- func (e GetAccountRequestValidationError) Cause() error
- func (e GetAccountRequestValidationError) Error() string
- func (e GetAccountRequestValidationError) ErrorName() string
- func (e GetAccountRequestValidationError) Field() string
- func (e GetAccountRequestValidationError) Key() bool
- func (e GetAccountRequestValidationError) Reason() string
- type ListAccountReply
- func (*ListAccountReply) Descriptor() ([]byte, []int)deprecated
- func (x *ListAccountReply) GetResults() []*ListAccountReply_Account
- func (*ListAccountReply) ProtoMessage()
- func (x *ListAccountReply) ProtoReflect() protoreflect.Message
- func (x *ListAccountReply) Reset()
- func (x *ListAccountReply) String() string
- func (m *ListAccountReply) Validate() error
- func (m *ListAccountReply) ValidateAll() error
- type ListAccountReplyMultiError
- type ListAccountReplyValidationError
- func (e ListAccountReplyValidationError) Cause() error
- func (e ListAccountReplyValidationError) Error() string
- func (e ListAccountReplyValidationError) ErrorName() string
- func (e ListAccountReplyValidationError) Field() string
- func (e ListAccountReplyValidationError) Key() bool
- func (e ListAccountReplyValidationError) Reason() string
- type ListAccountReply_Account
- func (*ListAccountReply_Account) Descriptor() ([]byte, []int)deprecated
- func (x *ListAccountReply_Account) GetAge() int64
- func (x *ListAccountReply_Account) GetEmail() string
- func (x *ListAccountReply_Account) GetId() int32
- func (x *ListAccountReply_Account) GetName() string
- func (x *ListAccountReply_Account) GetSex() bool
- func (*ListAccountReply_Account) ProtoMessage()
- func (x *ListAccountReply_Account) ProtoReflect() protoreflect.Message
- func (x *ListAccountReply_Account) Reset()
- func (x *ListAccountReply_Account) String() string
- func (m *ListAccountReply_Account) Validate() error
- func (m *ListAccountReply_Account) ValidateAll() error
- type ListAccountReply_AccountMultiError
- type ListAccountReply_AccountValidationError
- func (e ListAccountReply_AccountValidationError) Cause() error
- func (e ListAccountReply_AccountValidationError) Error() string
- func (e ListAccountReply_AccountValidationError) ErrorName() string
- func (e ListAccountReply_AccountValidationError) Field() string
- func (e ListAccountReply_AccountValidationError) Key() bool
- func (e ListAccountReply_AccountValidationError) Reason() string
- type ListAccountRequest
- func (*ListAccountRequest) Descriptor() ([]byte, []int)deprecated
- func (*ListAccountRequest) ProtoMessage()
- func (x *ListAccountRequest) ProtoReflect() protoreflect.Message
- func (x *ListAccountRequest) Reset()
- func (x *ListAccountRequest) String() string
- func (m *ListAccountRequest) Validate() error
- func (m *ListAccountRequest) ValidateAll() error
- type ListAccountRequestMultiError
- type ListAccountRequestValidationError
- func (e ListAccountRequestValidationError) Cause() error
- func (e ListAccountRequestValidationError) Error() string
- func (e ListAccountRequestValidationError) ErrorName() string
- func (e ListAccountRequestValidationError) Field() string
- func (e ListAccountRequestValidationError) Key() bool
- func (e ListAccountRequestValidationError) Reason() string
- type LoginReply
- func (*LoginReply) Descriptor() ([]byte, []int)deprecated
- func (x *LoginReply) GetId() int32
- func (*LoginReply) ProtoMessage()
- func (x *LoginReply) ProtoReflect() protoreflect.Message
- func (x *LoginReply) Reset()
- func (x *LoginReply) String() string
- func (m *LoginReply) Validate() error
- func (m *LoginReply) ValidateAll() error
- type LoginReplyMultiError
- type LoginReplyValidationError
- type LoginRequest
- func (*LoginRequest) Descriptor() ([]byte, []int)deprecated
- func (x *LoginRequest) GetUsername() string
- func (*LoginRequest) ProtoMessage()
- func (x *LoginRequest) ProtoReflect() protoreflect.Message
- func (x *LoginRequest) Reset()
- func (x *LoginRequest) String() string
- func (m *LoginRequest) Validate() error
- func (m *LoginRequest) ValidateAll() error
- type LoginRequestMultiError
- type LoginRequestValidationError
- func (e LoginRequestValidationError) Cause() error
- func (e LoginRequestValidationError) Error() string
- func (e LoginRequestValidationError) ErrorName() string
- func (e LoginRequestValidationError) Field() string
- func (e LoginRequestValidationError) Key() bool
- func (e LoginRequestValidationError) Reason() string
- type UnimplementedAccountServer
- func (UnimplementedAccountServer) CreateAccount(context.Context, *CreateAccountRequest) (*CreateAccountReply, error)
- func (UnimplementedAccountServer) DeleteAccount(context.Context, *DeleteAccountRequest) (*DeleteAccountReply, error)
- func (UnimplementedAccountServer) GetAccount(context.Context, *GetAccountRequest) (*GetAccountReply, error)
- func (UnimplementedAccountServer) ListAccount(context.Context, *ListAccountRequest) (*ListAccountReply, error)
- func (UnimplementedAccountServer) Login(context.Context, *LoginRequest) (*LoginReply, error)
- func (UnimplementedAccountServer) UpdateAccount(context.Context, *UpdateAccountRequest) (*UpdateAccountReply, error)
- type UnsafeAccountServer
- type UpdateAccountReply
- func (*UpdateAccountReply) Descriptor() ([]byte, []int)deprecated
- func (*UpdateAccountReply) ProtoMessage()
- func (x *UpdateAccountReply) ProtoReflect() protoreflect.Message
- func (x *UpdateAccountReply) Reset()
- func (x *UpdateAccountReply) String() string
- func (m *UpdateAccountReply) Validate() error
- func (m *UpdateAccountReply) ValidateAll() error
- type UpdateAccountReplyMultiError
- type UpdateAccountReplyValidationError
- func (e UpdateAccountReplyValidationError) Cause() error
- func (e UpdateAccountReplyValidationError) Error() string
- func (e UpdateAccountReplyValidationError) ErrorName() string
- func (e UpdateAccountReplyValidationError) Field() string
- func (e UpdateAccountReplyValidationError) Key() bool
- func (e UpdateAccountReplyValidationError) Reason() string
- type UpdateAccountRequest
- func (*UpdateAccountRequest) Descriptor() ([]byte, []int)deprecated
- func (*UpdateAccountRequest) ProtoMessage()
- func (x *UpdateAccountRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateAccountRequest) Reset()
- func (x *UpdateAccountRequest) String() string
- func (m *UpdateAccountRequest) Validate() error
- func (m *UpdateAccountRequest) ValidateAll() error
- type UpdateAccountRequestMultiError
- type UpdateAccountRequestValidationError
- func (e UpdateAccountRequestValidationError) Cause() error
- func (e UpdateAccountRequestValidationError) Error() string
- func (e UpdateAccountRequestValidationError) ErrorName() string
- func (e UpdateAccountRequestValidationError) Field() string
- func (e UpdateAccountRequestValidationError) Key() bool
- func (e UpdateAccountRequestValidationError) Reason() string
Constants ¶
This section is empty.
Variables ¶
var Account_ServiceDesc = grpc.ServiceDesc{ ServiceName: "api.account.service.v1.Account", HandlerType: (*AccountServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "CreateAccount", Handler: _Account_CreateAccount_Handler, }, { MethodName: "UpdateAccount", Handler: _Account_UpdateAccount_Handler, }, { MethodName: "DeleteAccount", Handler: _Account_DeleteAccount_Handler, }, { MethodName: "GetAccount", Handler: _Account_GetAccount_Handler, }, { MethodName: "ListAccount", Handler: _Account_ListAccount_Handler, }, { MethodName: "Login", Handler: _Account_Login_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "api/account/service/v1/account.proto", }
Account_ServiceDesc is the grpc.ServiceDesc for Account service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_api_account_service_v1_account_proto protoreflect.FileDescriptor
Functions ¶
func RegisterAccountHTTPServer ¶
func RegisterAccountHTTPServer(s *http.Server, srv AccountHTTPServer)
func RegisterAccountServer ¶
func RegisterAccountServer(s grpc.ServiceRegistrar, srv AccountServer)
Types ¶
type AccountClient ¶
type AccountClient interface { CreateAccount(ctx context.Context, in *CreateAccountRequest, opts ...grpc.CallOption) (*CreateAccountReply, error) UpdateAccount(ctx context.Context, in *UpdateAccountRequest, opts ...grpc.CallOption) (*UpdateAccountReply, error) DeleteAccount(ctx context.Context, in *DeleteAccountRequest, opts ...grpc.CallOption) (*DeleteAccountReply, error) GetAccount(ctx context.Context, in *GetAccountRequest, opts ...grpc.CallOption) (*GetAccountReply, error) ListAccount(ctx context.Context, in *ListAccountRequest, opts ...grpc.CallOption) (*ListAccountReply, error) Login(ctx context.Context, in *LoginRequest, opts ...grpc.CallOption) (*LoginReply, error) }
AccountClient is the client API for Account service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewAccountClient ¶
func NewAccountClient(cc grpc.ClientConnInterface) AccountClient
type AccountHTTPClient ¶
type AccountHTTPClient interface { CreateAccount(ctx context.Context, req *CreateAccountRequest, opts ...http.CallOption) (rsp *CreateAccountReply, err error) GetAccount(ctx context.Context, req *GetAccountRequest, opts ...http.CallOption) (rsp *GetAccountReply, err error) ListAccount(ctx context.Context, req *ListAccountRequest, opts ...http.CallOption) (rsp *ListAccountReply, err error) Login(ctx context.Context, req *LoginRequest, opts ...http.CallOption) (rsp *LoginReply, err error) }
func NewAccountHTTPClient ¶
func NewAccountHTTPClient(client *http.Client) AccountHTTPClient
type AccountHTTPClientImpl ¶
type AccountHTTPClientImpl struct {
// contains filtered or unexported fields
}
func (*AccountHTTPClientImpl) CreateAccount ¶
func (c *AccountHTTPClientImpl) CreateAccount(ctx context.Context, in *CreateAccountRequest, opts ...http.CallOption) (*CreateAccountReply, error)
func (*AccountHTTPClientImpl) GetAccount ¶
func (c *AccountHTTPClientImpl) GetAccount(ctx context.Context, in *GetAccountRequest, opts ...http.CallOption) (*GetAccountReply, error)
func (*AccountHTTPClientImpl) ListAccount ¶
func (c *AccountHTTPClientImpl) ListAccount(ctx context.Context, in *ListAccountRequest, opts ...http.CallOption) (*ListAccountReply, error)
func (*AccountHTTPClientImpl) Login ¶
func (c *AccountHTTPClientImpl) Login(ctx context.Context, in *LoginRequest, opts ...http.CallOption) (*LoginReply, error)
type AccountHTTPServer ¶
type AccountHTTPServer interface { CreateAccount(context.Context, *CreateAccountRequest) (*CreateAccountReply, error) GetAccount(context.Context, *GetAccountRequest) (*GetAccountReply, error) ListAccount(context.Context, *ListAccountRequest) (*ListAccountReply, error) Login(context.Context, *LoginRequest) (*LoginReply, error) }
type AccountServer ¶
type AccountServer interface { CreateAccount(context.Context, *CreateAccountRequest) (*CreateAccountReply, error) UpdateAccount(context.Context, *UpdateAccountRequest) (*UpdateAccountReply, error) DeleteAccount(context.Context, *DeleteAccountRequest) (*DeleteAccountReply, error) GetAccount(context.Context, *GetAccountRequest) (*GetAccountReply, error) ListAccount(context.Context, *ListAccountRequest) (*ListAccountReply, error) Login(context.Context, *LoginRequest) (*LoginReply, error) // contains filtered or unexported methods }
AccountServer is the server API for Account service. All implementations must embed UnimplementedAccountServer for forward compatibility
type CreateAccountReply ¶
type CreateAccountReply struct { Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*CreateAccountReply) Descriptor
deprecated
func (*CreateAccountReply) Descriptor() ([]byte, []int)
Deprecated: Use CreateAccountReply.ProtoReflect.Descriptor instead.
func (*CreateAccountReply) GetId ¶
func (x *CreateAccountReply) GetId() int32
func (*CreateAccountReply) ProtoMessage ¶
func (*CreateAccountReply) ProtoMessage()
func (*CreateAccountReply) ProtoReflect ¶
func (x *CreateAccountReply) ProtoReflect() protoreflect.Message
func (*CreateAccountReply) Reset ¶
func (x *CreateAccountReply) Reset()
func (*CreateAccountReply) String ¶
func (x *CreateAccountReply) String() string
func (*CreateAccountReply) Validate ¶
func (m *CreateAccountReply) Validate() error
Validate checks the field values on CreateAccountReply 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 (*CreateAccountReply) ValidateAll ¶
func (m *CreateAccountReply) ValidateAll() error
ValidateAll checks the field values on CreateAccountReply 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 CreateAccountReplyMultiError, or nil if none found.
type CreateAccountReplyMultiError ¶
type CreateAccountReplyMultiError []error
CreateAccountReplyMultiError is an error wrapping multiple validation errors returned by CreateAccountReply.ValidateAll() if the designated constraints aren't met.
func (CreateAccountReplyMultiError) AllErrors ¶
func (m CreateAccountReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (CreateAccountReplyMultiError) Error ¶
func (m CreateAccountReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type CreateAccountReplyValidationError ¶
type CreateAccountReplyValidationError struct {
// contains filtered or unexported fields
}
CreateAccountReplyValidationError is the validation error returned by CreateAccountReply.Validate if the designated constraints aren't met.
func (CreateAccountReplyValidationError) Cause ¶
func (e CreateAccountReplyValidationError) Cause() error
Cause function returns cause value.
func (CreateAccountReplyValidationError) Error ¶
func (e CreateAccountReplyValidationError) Error() string
Error satisfies the builtin error interface
func (CreateAccountReplyValidationError) ErrorName ¶
func (e CreateAccountReplyValidationError) ErrorName() string
ErrorName returns error name.
func (CreateAccountReplyValidationError) Field ¶
func (e CreateAccountReplyValidationError) Field() string
Field function returns field value.
func (CreateAccountReplyValidationError) Key ¶
func (e CreateAccountReplyValidationError) Key() bool
Key function returns key value.
func (CreateAccountReplyValidationError) Reason ¶
func (e CreateAccountReplyValidationError) Reason() string
Reason function returns reason value.
type CreateAccountRequest ¶
type CreateAccountRequest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Sex bool `protobuf:"varint,2,opt,name=sex,proto3" json:"sex,omitempty"` Email string `protobuf:"bytes,3,opt,name=email,proto3" json:"email,omitempty"` Age int64 `protobuf:"varint,4,opt,name=age,proto3" json:"age,omitempty"` // contains filtered or unexported fields }
func (*CreateAccountRequest) Descriptor
deprecated
func (*CreateAccountRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateAccountRequest.ProtoReflect.Descriptor instead.
func (*CreateAccountRequest) GetAge ¶
func (x *CreateAccountRequest) GetAge() int64
func (*CreateAccountRequest) GetEmail ¶
func (x *CreateAccountRequest) GetEmail() string
func (*CreateAccountRequest) GetName ¶
func (x *CreateAccountRequest) GetName() string
func (*CreateAccountRequest) GetSex ¶
func (x *CreateAccountRequest) GetSex() bool
func (*CreateAccountRequest) ProtoMessage ¶
func (*CreateAccountRequest) ProtoMessage()
func (*CreateAccountRequest) ProtoReflect ¶
func (x *CreateAccountRequest) ProtoReflect() protoreflect.Message
func (*CreateAccountRequest) Reset ¶
func (x *CreateAccountRequest) Reset()
func (*CreateAccountRequest) String ¶
func (x *CreateAccountRequest) String() string
func (*CreateAccountRequest) Validate ¶
func (m *CreateAccountRequest) Validate() error
Validate checks the field values on CreateAccountRequest 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 (*CreateAccountRequest) ValidateAll ¶
func (m *CreateAccountRequest) ValidateAll() error
ValidateAll checks the field values on CreateAccountRequest 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 CreateAccountRequestMultiError, or nil if none found.
type CreateAccountRequestMultiError ¶
type CreateAccountRequestMultiError []error
CreateAccountRequestMultiError is an error wrapping multiple validation errors returned by CreateAccountRequest.ValidateAll() if the designated constraints aren't met.
func (CreateAccountRequestMultiError) AllErrors ¶
func (m CreateAccountRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (CreateAccountRequestMultiError) Error ¶
func (m CreateAccountRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type CreateAccountRequestValidationError ¶
type CreateAccountRequestValidationError struct {
// contains filtered or unexported fields
}
CreateAccountRequestValidationError is the validation error returned by CreateAccountRequest.Validate if the designated constraints aren't met.
func (CreateAccountRequestValidationError) Cause ¶
func (e CreateAccountRequestValidationError) Cause() error
Cause function returns cause value.
func (CreateAccountRequestValidationError) Error ¶
func (e CreateAccountRequestValidationError) Error() string
Error satisfies the builtin error interface
func (CreateAccountRequestValidationError) ErrorName ¶
func (e CreateAccountRequestValidationError) ErrorName() string
ErrorName returns error name.
func (CreateAccountRequestValidationError) Field ¶
func (e CreateAccountRequestValidationError) Field() string
Field function returns field value.
func (CreateAccountRequestValidationError) Key ¶
func (e CreateAccountRequestValidationError) Key() bool
Key function returns key value.
func (CreateAccountRequestValidationError) Reason ¶
func (e CreateAccountRequestValidationError) Reason() string
Reason function returns reason value.
type DeleteAccountReply ¶
type DeleteAccountReply struct {
// contains filtered or unexported fields
}
func (*DeleteAccountReply) Descriptor
deprecated
func (*DeleteAccountReply) Descriptor() ([]byte, []int)
Deprecated: Use DeleteAccountReply.ProtoReflect.Descriptor instead.
func (*DeleteAccountReply) ProtoMessage ¶
func (*DeleteAccountReply) ProtoMessage()
func (*DeleteAccountReply) ProtoReflect ¶
func (x *DeleteAccountReply) ProtoReflect() protoreflect.Message
func (*DeleteAccountReply) Reset ¶
func (x *DeleteAccountReply) Reset()
func (*DeleteAccountReply) String ¶
func (x *DeleteAccountReply) String() string
func (*DeleteAccountReply) Validate ¶
func (m *DeleteAccountReply) Validate() error
Validate checks the field values on DeleteAccountReply 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 (*DeleteAccountReply) ValidateAll ¶
func (m *DeleteAccountReply) ValidateAll() error
ValidateAll checks the field values on DeleteAccountReply 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 DeleteAccountReplyMultiError, or nil if none found.
type DeleteAccountReplyMultiError ¶
type DeleteAccountReplyMultiError []error
DeleteAccountReplyMultiError is an error wrapping multiple validation errors returned by DeleteAccountReply.ValidateAll() if the designated constraints aren't met.
func (DeleteAccountReplyMultiError) AllErrors ¶
func (m DeleteAccountReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (DeleteAccountReplyMultiError) Error ¶
func (m DeleteAccountReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type DeleteAccountReplyValidationError ¶
type DeleteAccountReplyValidationError struct {
// contains filtered or unexported fields
}
DeleteAccountReplyValidationError is the validation error returned by DeleteAccountReply.Validate if the designated constraints aren't met.
func (DeleteAccountReplyValidationError) Cause ¶
func (e DeleteAccountReplyValidationError) Cause() error
Cause function returns cause value.
func (DeleteAccountReplyValidationError) Error ¶
func (e DeleteAccountReplyValidationError) Error() string
Error satisfies the builtin error interface
func (DeleteAccountReplyValidationError) ErrorName ¶
func (e DeleteAccountReplyValidationError) ErrorName() string
ErrorName returns error name.
func (DeleteAccountReplyValidationError) Field ¶
func (e DeleteAccountReplyValidationError) Field() string
Field function returns field value.
func (DeleteAccountReplyValidationError) Key ¶
func (e DeleteAccountReplyValidationError) Key() bool
Key function returns key value.
func (DeleteAccountReplyValidationError) Reason ¶
func (e DeleteAccountReplyValidationError) Reason() string
Reason function returns reason value.
type DeleteAccountRequest ¶
type DeleteAccountRequest struct {
// contains filtered or unexported fields
}
func (*DeleteAccountRequest) Descriptor
deprecated
func (*DeleteAccountRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteAccountRequest.ProtoReflect.Descriptor instead.
func (*DeleteAccountRequest) ProtoMessage ¶
func (*DeleteAccountRequest) ProtoMessage()
func (*DeleteAccountRequest) ProtoReflect ¶
func (x *DeleteAccountRequest) ProtoReflect() protoreflect.Message
func (*DeleteAccountRequest) Reset ¶
func (x *DeleteAccountRequest) Reset()
func (*DeleteAccountRequest) String ¶
func (x *DeleteAccountRequest) String() string
func (*DeleteAccountRequest) Validate ¶
func (m *DeleteAccountRequest) Validate() error
Validate checks the field values on DeleteAccountRequest 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 (*DeleteAccountRequest) ValidateAll ¶
func (m *DeleteAccountRequest) ValidateAll() error
ValidateAll checks the field values on DeleteAccountRequest 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 DeleteAccountRequestMultiError, or nil if none found.
type DeleteAccountRequestMultiError ¶
type DeleteAccountRequestMultiError []error
DeleteAccountRequestMultiError is an error wrapping multiple validation errors returned by DeleteAccountRequest.ValidateAll() if the designated constraints aren't met.
func (DeleteAccountRequestMultiError) AllErrors ¶
func (m DeleteAccountRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (DeleteAccountRequestMultiError) Error ¶
func (m DeleteAccountRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type DeleteAccountRequestValidationError ¶
type DeleteAccountRequestValidationError struct {
// contains filtered or unexported fields
}
DeleteAccountRequestValidationError is the validation error returned by DeleteAccountRequest.Validate if the designated constraints aren't met.
func (DeleteAccountRequestValidationError) Cause ¶
func (e DeleteAccountRequestValidationError) Cause() error
Cause function returns cause value.
func (DeleteAccountRequestValidationError) Error ¶
func (e DeleteAccountRequestValidationError) Error() string
Error satisfies the builtin error interface
func (DeleteAccountRequestValidationError) ErrorName ¶
func (e DeleteAccountRequestValidationError) ErrorName() string
ErrorName returns error name.
func (DeleteAccountRequestValidationError) Field ¶
func (e DeleteAccountRequestValidationError) Field() string
Field function returns field value.
func (DeleteAccountRequestValidationError) Key ¶
func (e DeleteAccountRequestValidationError) Key() bool
Key function returns key value.
func (DeleteAccountRequestValidationError) Reason ¶
func (e DeleteAccountRequestValidationError) Reason() string
Reason function returns reason value.
type GetAccountReply ¶
type GetAccountReply struct { Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Sex bool `protobuf:"varint,3,opt,name=sex,proto3" json:"sex,omitempty"` Email string `protobuf:"bytes,4,opt,name=email,proto3" json:"email,omitempty"` Age int64 `protobuf:"varint,5,opt,name=age,proto3" json:"age,omitempty"` // contains filtered or unexported fields }
func (*GetAccountReply) Descriptor
deprecated
func (*GetAccountReply) Descriptor() ([]byte, []int)
Deprecated: Use GetAccountReply.ProtoReflect.Descriptor instead.
func (*GetAccountReply) GetAge ¶
func (x *GetAccountReply) GetAge() int64
func (*GetAccountReply) GetEmail ¶
func (x *GetAccountReply) GetEmail() string
func (*GetAccountReply) GetId ¶
func (x *GetAccountReply) GetId() int32
func (*GetAccountReply) GetName ¶
func (x *GetAccountReply) GetName() string
func (*GetAccountReply) GetSex ¶
func (x *GetAccountReply) GetSex() bool
func (*GetAccountReply) ProtoMessage ¶
func (*GetAccountReply) ProtoMessage()
func (*GetAccountReply) ProtoReflect ¶
func (x *GetAccountReply) ProtoReflect() protoreflect.Message
func (*GetAccountReply) Reset ¶
func (x *GetAccountReply) Reset()
func (*GetAccountReply) String ¶
func (x *GetAccountReply) String() string
func (*GetAccountReply) Validate ¶
func (m *GetAccountReply) Validate() error
Validate checks the field values on GetAccountReply 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 (*GetAccountReply) ValidateAll ¶
func (m *GetAccountReply) ValidateAll() error
ValidateAll checks the field values on GetAccountReply 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 GetAccountReplyMultiError, or nil if none found.
type GetAccountReplyMultiError ¶
type GetAccountReplyMultiError []error
GetAccountReplyMultiError is an error wrapping multiple validation errors returned by GetAccountReply.ValidateAll() if the designated constraints aren't met.
func (GetAccountReplyMultiError) AllErrors ¶
func (m GetAccountReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetAccountReplyMultiError) Error ¶
func (m GetAccountReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetAccountReplyValidationError ¶
type GetAccountReplyValidationError struct {
// contains filtered or unexported fields
}
GetAccountReplyValidationError is the validation error returned by GetAccountReply.Validate if the designated constraints aren't met.
func (GetAccountReplyValidationError) Cause ¶
func (e GetAccountReplyValidationError) Cause() error
Cause function returns cause value.
func (GetAccountReplyValidationError) Error ¶
func (e GetAccountReplyValidationError) Error() string
Error satisfies the builtin error interface
func (GetAccountReplyValidationError) ErrorName ¶
func (e GetAccountReplyValidationError) ErrorName() string
ErrorName returns error name.
func (GetAccountReplyValidationError) Field ¶
func (e GetAccountReplyValidationError) Field() string
Field function returns field value.
func (GetAccountReplyValidationError) Key ¶
func (e GetAccountReplyValidationError) Key() bool
Key function returns key value.
func (GetAccountReplyValidationError) Reason ¶
func (e GetAccountReplyValidationError) Reason() string
Reason function returns reason value.
type GetAccountRequest ¶
type GetAccountRequest struct { Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*GetAccountRequest) Descriptor
deprecated
func (*GetAccountRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetAccountRequest.ProtoReflect.Descriptor instead.
func (*GetAccountRequest) GetId ¶
func (x *GetAccountRequest) GetId() int32
func (*GetAccountRequest) ProtoMessage ¶
func (*GetAccountRequest) ProtoMessage()
func (*GetAccountRequest) ProtoReflect ¶
func (x *GetAccountRequest) ProtoReflect() protoreflect.Message
func (*GetAccountRequest) Reset ¶
func (x *GetAccountRequest) Reset()
func (*GetAccountRequest) String ¶
func (x *GetAccountRequest) String() string
func (*GetAccountRequest) Validate ¶
func (m *GetAccountRequest) Validate() error
Validate checks the field values on GetAccountRequest 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 (*GetAccountRequest) ValidateAll ¶
func (m *GetAccountRequest) ValidateAll() error
ValidateAll checks the field values on GetAccountRequest 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 GetAccountRequestMultiError, or nil if none found.
type GetAccountRequestMultiError ¶
type GetAccountRequestMultiError []error
GetAccountRequestMultiError is an error wrapping multiple validation errors returned by GetAccountRequest.ValidateAll() if the designated constraints aren't met.
func (GetAccountRequestMultiError) AllErrors ¶
func (m GetAccountRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetAccountRequestMultiError) Error ¶
func (m GetAccountRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetAccountRequestValidationError ¶
type GetAccountRequestValidationError struct {
// contains filtered or unexported fields
}
GetAccountRequestValidationError is the validation error returned by GetAccountRequest.Validate if the designated constraints aren't met.
func (GetAccountRequestValidationError) Cause ¶
func (e GetAccountRequestValidationError) Cause() error
Cause function returns cause value.
func (GetAccountRequestValidationError) Error ¶
func (e GetAccountRequestValidationError) Error() string
Error satisfies the builtin error interface
func (GetAccountRequestValidationError) ErrorName ¶
func (e GetAccountRequestValidationError) ErrorName() string
ErrorName returns error name.
func (GetAccountRequestValidationError) Field ¶
func (e GetAccountRequestValidationError) Field() string
Field function returns field value.
func (GetAccountRequestValidationError) Key ¶
func (e GetAccountRequestValidationError) Key() bool
Key function returns key value.
func (GetAccountRequestValidationError) Reason ¶
func (e GetAccountRequestValidationError) Reason() string
Reason function returns reason value.
type ListAccountReply ¶
type ListAccountReply struct { Results []*ListAccountReply_Account `protobuf:"bytes,1,rep,name=results,proto3" json:"results,omitempty"` // contains filtered or unexported fields }
func (*ListAccountReply) Descriptor
deprecated
func (*ListAccountReply) Descriptor() ([]byte, []int)
Deprecated: Use ListAccountReply.ProtoReflect.Descriptor instead.
func (*ListAccountReply) GetResults ¶
func (x *ListAccountReply) GetResults() []*ListAccountReply_Account
func (*ListAccountReply) ProtoMessage ¶
func (*ListAccountReply) ProtoMessage()
func (*ListAccountReply) ProtoReflect ¶
func (x *ListAccountReply) ProtoReflect() protoreflect.Message
func (*ListAccountReply) Reset ¶
func (x *ListAccountReply) Reset()
func (*ListAccountReply) String ¶
func (x *ListAccountReply) String() string
func (*ListAccountReply) Validate ¶
func (m *ListAccountReply) Validate() error
Validate checks the field values on ListAccountReply 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 (*ListAccountReply) ValidateAll ¶
func (m *ListAccountReply) ValidateAll() error
ValidateAll checks the field values on ListAccountReply 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 ListAccountReplyMultiError, or nil if none found.
type ListAccountReplyMultiError ¶
type ListAccountReplyMultiError []error
ListAccountReplyMultiError is an error wrapping multiple validation errors returned by ListAccountReply.ValidateAll() if the designated constraints aren't met.
func (ListAccountReplyMultiError) AllErrors ¶
func (m ListAccountReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ListAccountReplyMultiError) Error ¶
func (m ListAccountReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ListAccountReplyValidationError ¶
type ListAccountReplyValidationError struct {
// contains filtered or unexported fields
}
ListAccountReplyValidationError is the validation error returned by ListAccountReply.Validate if the designated constraints aren't met.
func (ListAccountReplyValidationError) Cause ¶
func (e ListAccountReplyValidationError) Cause() error
Cause function returns cause value.
func (ListAccountReplyValidationError) Error ¶
func (e ListAccountReplyValidationError) Error() string
Error satisfies the builtin error interface
func (ListAccountReplyValidationError) ErrorName ¶
func (e ListAccountReplyValidationError) ErrorName() string
ErrorName returns error name.
func (ListAccountReplyValidationError) Field ¶
func (e ListAccountReplyValidationError) Field() string
Field function returns field value.
func (ListAccountReplyValidationError) Key ¶
func (e ListAccountReplyValidationError) Key() bool
Key function returns key value.
func (ListAccountReplyValidationError) Reason ¶
func (e ListAccountReplyValidationError) Reason() string
Reason function returns reason value.
type ListAccountReply_Account ¶
type ListAccountReply_Account struct { Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Sex bool `protobuf:"varint,3,opt,name=sex,proto3" json:"sex,omitempty"` Email string `protobuf:"bytes,4,opt,name=email,proto3" json:"email,omitempty"` Age int64 `protobuf:"varint,5,opt,name=age,proto3" json:"age,omitempty"` // contains filtered or unexported fields }
func (*ListAccountReply_Account) Descriptor
deprecated
func (*ListAccountReply_Account) Descriptor() ([]byte, []int)
Deprecated: Use ListAccountReply_Account.ProtoReflect.Descriptor instead.
func (*ListAccountReply_Account) GetAge ¶
func (x *ListAccountReply_Account) GetAge() int64
func (*ListAccountReply_Account) GetEmail ¶
func (x *ListAccountReply_Account) GetEmail() string
func (*ListAccountReply_Account) GetId ¶
func (x *ListAccountReply_Account) GetId() int32
func (*ListAccountReply_Account) GetName ¶
func (x *ListAccountReply_Account) GetName() string
func (*ListAccountReply_Account) GetSex ¶
func (x *ListAccountReply_Account) GetSex() bool
func (*ListAccountReply_Account) ProtoMessage ¶
func (*ListAccountReply_Account) ProtoMessage()
func (*ListAccountReply_Account) ProtoReflect ¶
func (x *ListAccountReply_Account) ProtoReflect() protoreflect.Message
func (*ListAccountReply_Account) Reset ¶
func (x *ListAccountReply_Account) Reset()
func (*ListAccountReply_Account) String ¶
func (x *ListAccountReply_Account) String() string
func (*ListAccountReply_Account) Validate ¶
func (m *ListAccountReply_Account) Validate() error
Validate checks the field values on ListAccountReply_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 (*ListAccountReply_Account) ValidateAll ¶
func (m *ListAccountReply_Account) ValidateAll() error
ValidateAll checks the field values on ListAccountReply_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 ListAccountReply_AccountMultiError, or nil if none found.
type ListAccountReply_AccountMultiError ¶
type ListAccountReply_AccountMultiError []error
ListAccountReply_AccountMultiError is an error wrapping multiple validation errors returned by ListAccountReply_Account.ValidateAll() if the designated constraints aren't met.
func (ListAccountReply_AccountMultiError) AllErrors ¶
func (m ListAccountReply_AccountMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ListAccountReply_AccountMultiError) Error ¶
func (m ListAccountReply_AccountMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ListAccountReply_AccountValidationError ¶
type ListAccountReply_AccountValidationError struct {
// contains filtered or unexported fields
}
ListAccountReply_AccountValidationError is the validation error returned by ListAccountReply_Account.Validate if the designated constraints aren't met.
func (ListAccountReply_AccountValidationError) Cause ¶
func (e ListAccountReply_AccountValidationError) Cause() error
Cause function returns cause value.
func (ListAccountReply_AccountValidationError) Error ¶
func (e ListAccountReply_AccountValidationError) Error() string
Error satisfies the builtin error interface
func (ListAccountReply_AccountValidationError) ErrorName ¶
func (e ListAccountReply_AccountValidationError) ErrorName() string
ErrorName returns error name.
func (ListAccountReply_AccountValidationError) Field ¶
func (e ListAccountReply_AccountValidationError) Field() string
Field function returns field value.
func (ListAccountReply_AccountValidationError) Key ¶
func (e ListAccountReply_AccountValidationError) Key() bool
Key function returns key value.
func (ListAccountReply_AccountValidationError) Reason ¶
func (e ListAccountReply_AccountValidationError) Reason() string
Reason function returns reason value.
type ListAccountRequest ¶
type ListAccountRequest struct {
// contains filtered or unexported fields
}
func (*ListAccountRequest) Descriptor
deprecated
func (*ListAccountRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListAccountRequest.ProtoReflect.Descriptor instead.
func (*ListAccountRequest) ProtoMessage ¶
func (*ListAccountRequest) ProtoMessage()
func (*ListAccountRequest) ProtoReflect ¶
func (x *ListAccountRequest) ProtoReflect() protoreflect.Message
func (*ListAccountRequest) Reset ¶
func (x *ListAccountRequest) Reset()
func (*ListAccountRequest) String ¶
func (x *ListAccountRequest) String() string
func (*ListAccountRequest) Validate ¶
func (m *ListAccountRequest) Validate() error
Validate checks the field values on ListAccountRequest 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 (*ListAccountRequest) ValidateAll ¶
func (m *ListAccountRequest) ValidateAll() error
ValidateAll checks the field values on ListAccountRequest 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 ListAccountRequestMultiError, or nil if none found.
type ListAccountRequestMultiError ¶
type ListAccountRequestMultiError []error
ListAccountRequestMultiError is an error wrapping multiple validation errors returned by ListAccountRequest.ValidateAll() if the designated constraints aren't met.
func (ListAccountRequestMultiError) AllErrors ¶
func (m ListAccountRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ListAccountRequestMultiError) Error ¶
func (m ListAccountRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ListAccountRequestValidationError ¶
type ListAccountRequestValidationError struct {
// contains filtered or unexported fields
}
ListAccountRequestValidationError is the validation error returned by ListAccountRequest.Validate if the designated constraints aren't met.
func (ListAccountRequestValidationError) Cause ¶
func (e ListAccountRequestValidationError) Cause() error
Cause function returns cause value.
func (ListAccountRequestValidationError) Error ¶
func (e ListAccountRequestValidationError) Error() string
Error satisfies the builtin error interface
func (ListAccountRequestValidationError) ErrorName ¶
func (e ListAccountRequestValidationError) ErrorName() string
ErrorName returns error name.
func (ListAccountRequestValidationError) Field ¶
func (e ListAccountRequestValidationError) Field() string
Field function returns field value.
func (ListAccountRequestValidationError) Key ¶
func (e ListAccountRequestValidationError) Key() bool
Key function returns key value.
func (ListAccountRequestValidationError) Reason ¶
func (e ListAccountRequestValidationError) Reason() string
Reason function returns reason value.
type LoginReply ¶
type LoginReply struct { Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*LoginReply) Descriptor
deprecated
func (*LoginReply) Descriptor() ([]byte, []int)
Deprecated: Use LoginReply.ProtoReflect.Descriptor instead.
func (*LoginReply) GetId ¶
func (x *LoginReply) GetId() int32
func (*LoginReply) ProtoMessage ¶
func (*LoginReply) ProtoMessage()
func (*LoginReply) ProtoReflect ¶
func (x *LoginReply) ProtoReflect() protoreflect.Message
func (*LoginReply) Reset ¶
func (x *LoginReply) Reset()
func (*LoginReply) String ¶
func (x *LoginReply) String() string
func (*LoginReply) Validate ¶
func (m *LoginReply) Validate() error
Validate checks the field values on LoginReply 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 (*LoginReply) ValidateAll ¶
func (m *LoginReply) ValidateAll() error
ValidateAll checks the field values on LoginReply 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 LoginReplyMultiError, or nil if none found.
type LoginReplyMultiError ¶
type LoginReplyMultiError []error
LoginReplyMultiError is an error wrapping multiple validation errors returned by LoginReply.ValidateAll() if the designated constraints aren't met.
func (LoginReplyMultiError) AllErrors ¶
func (m LoginReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (LoginReplyMultiError) Error ¶
func (m LoginReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type LoginReplyValidationError ¶
type LoginReplyValidationError struct {
// contains filtered or unexported fields
}
LoginReplyValidationError is the validation error returned by LoginReply.Validate if the designated constraints aren't met.
func (LoginReplyValidationError) Cause ¶
func (e LoginReplyValidationError) Cause() error
Cause function returns cause value.
func (LoginReplyValidationError) Error ¶
func (e LoginReplyValidationError) Error() string
Error satisfies the builtin error interface
func (LoginReplyValidationError) ErrorName ¶
func (e LoginReplyValidationError) ErrorName() string
ErrorName returns error name.
func (LoginReplyValidationError) Field ¶
func (e LoginReplyValidationError) Field() string
Field function returns field value.
func (LoginReplyValidationError) Key ¶
func (e LoginReplyValidationError) Key() bool
Key function returns key value.
func (LoginReplyValidationError) Reason ¶
func (e LoginReplyValidationError) Reason() string
Reason function returns reason value.
type LoginRequest ¶
type LoginRequest struct { Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"` // contains filtered or unexported fields }
func (*LoginRequest) Descriptor
deprecated
func (*LoginRequest) Descriptor() ([]byte, []int)
Deprecated: Use LoginRequest.ProtoReflect.Descriptor instead.
func (*LoginRequest) GetUsername ¶
func (x *LoginRequest) GetUsername() string
func (*LoginRequest) ProtoMessage ¶
func (*LoginRequest) ProtoMessage()
func (*LoginRequest) ProtoReflect ¶
func (x *LoginRequest) ProtoReflect() protoreflect.Message
func (*LoginRequest) Reset ¶
func (x *LoginRequest) Reset()
func (*LoginRequest) String ¶
func (x *LoginRequest) String() string
func (*LoginRequest) Validate ¶
func (m *LoginRequest) Validate() error
Validate checks the field values on LoginRequest 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 (*LoginRequest) ValidateAll ¶
func (m *LoginRequest) ValidateAll() error
ValidateAll checks the field values on LoginRequest 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 LoginRequestMultiError, or nil if none found.
type LoginRequestMultiError ¶
type LoginRequestMultiError []error
LoginRequestMultiError is an error wrapping multiple validation errors returned by LoginRequest.ValidateAll() if the designated constraints aren't met.
func (LoginRequestMultiError) AllErrors ¶
func (m LoginRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (LoginRequestMultiError) Error ¶
func (m LoginRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type LoginRequestValidationError ¶
type LoginRequestValidationError struct {
// contains filtered or unexported fields
}
LoginRequestValidationError is the validation error returned by LoginRequest.Validate if the designated constraints aren't met.
func (LoginRequestValidationError) Cause ¶
func (e LoginRequestValidationError) Cause() error
Cause function returns cause value.
func (LoginRequestValidationError) Error ¶
func (e LoginRequestValidationError) Error() string
Error satisfies the builtin error interface
func (LoginRequestValidationError) ErrorName ¶
func (e LoginRequestValidationError) ErrorName() string
ErrorName returns error name.
func (LoginRequestValidationError) Field ¶
func (e LoginRequestValidationError) Field() string
Field function returns field value.
func (LoginRequestValidationError) Key ¶
func (e LoginRequestValidationError) Key() bool
Key function returns key value.
func (LoginRequestValidationError) Reason ¶
func (e LoginRequestValidationError) Reason() string
Reason function returns reason value.
type UnimplementedAccountServer ¶
type UnimplementedAccountServer struct { }
UnimplementedAccountServer must be embedded to have forward compatible implementations.
func (UnimplementedAccountServer) CreateAccount ¶
func (UnimplementedAccountServer) CreateAccount(context.Context, *CreateAccountRequest) (*CreateAccountReply, error)
func (UnimplementedAccountServer) DeleteAccount ¶
func (UnimplementedAccountServer) DeleteAccount(context.Context, *DeleteAccountRequest) (*DeleteAccountReply, error)
func (UnimplementedAccountServer) GetAccount ¶
func (UnimplementedAccountServer) GetAccount(context.Context, *GetAccountRequest) (*GetAccountReply, error)
func (UnimplementedAccountServer) ListAccount ¶
func (UnimplementedAccountServer) ListAccount(context.Context, *ListAccountRequest) (*ListAccountReply, error)
func (UnimplementedAccountServer) Login ¶
func (UnimplementedAccountServer) Login(context.Context, *LoginRequest) (*LoginReply, error)
func (UnimplementedAccountServer) UpdateAccount ¶
func (UnimplementedAccountServer) UpdateAccount(context.Context, *UpdateAccountRequest) (*UpdateAccountReply, error)
type UnsafeAccountServer ¶
type UnsafeAccountServer interface {
// contains filtered or unexported methods
}
UnsafeAccountServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to AccountServer will result in compilation errors.
type UpdateAccountReply ¶
type UpdateAccountReply struct {
// contains filtered or unexported fields
}
func (*UpdateAccountReply) Descriptor
deprecated
func (*UpdateAccountReply) Descriptor() ([]byte, []int)
Deprecated: Use UpdateAccountReply.ProtoReflect.Descriptor instead.
func (*UpdateAccountReply) ProtoMessage ¶
func (*UpdateAccountReply) ProtoMessage()
func (*UpdateAccountReply) ProtoReflect ¶
func (x *UpdateAccountReply) ProtoReflect() protoreflect.Message
func (*UpdateAccountReply) Reset ¶
func (x *UpdateAccountReply) Reset()
func (*UpdateAccountReply) String ¶
func (x *UpdateAccountReply) String() string
func (*UpdateAccountReply) Validate ¶
func (m *UpdateAccountReply) Validate() error
Validate checks the field values on UpdateAccountReply 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 (*UpdateAccountReply) ValidateAll ¶
func (m *UpdateAccountReply) ValidateAll() error
ValidateAll checks the field values on UpdateAccountReply 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 UpdateAccountReplyMultiError, or nil if none found.
type UpdateAccountReplyMultiError ¶
type UpdateAccountReplyMultiError []error
UpdateAccountReplyMultiError is an error wrapping multiple validation errors returned by UpdateAccountReply.ValidateAll() if the designated constraints aren't met.
func (UpdateAccountReplyMultiError) AllErrors ¶
func (m UpdateAccountReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UpdateAccountReplyMultiError) Error ¶
func (m UpdateAccountReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UpdateAccountReplyValidationError ¶
type UpdateAccountReplyValidationError struct {
// contains filtered or unexported fields
}
UpdateAccountReplyValidationError is the validation error returned by UpdateAccountReply.Validate if the designated constraints aren't met.
func (UpdateAccountReplyValidationError) Cause ¶
func (e UpdateAccountReplyValidationError) Cause() error
Cause function returns cause value.
func (UpdateAccountReplyValidationError) Error ¶
func (e UpdateAccountReplyValidationError) Error() string
Error satisfies the builtin error interface
func (UpdateAccountReplyValidationError) ErrorName ¶
func (e UpdateAccountReplyValidationError) ErrorName() string
ErrorName returns error name.
func (UpdateAccountReplyValidationError) Field ¶
func (e UpdateAccountReplyValidationError) Field() string
Field function returns field value.
func (UpdateAccountReplyValidationError) Key ¶
func (e UpdateAccountReplyValidationError) Key() bool
Key function returns key value.
func (UpdateAccountReplyValidationError) Reason ¶
func (e UpdateAccountReplyValidationError) Reason() string
Reason function returns reason value.
type UpdateAccountRequest ¶
type UpdateAccountRequest struct {
// contains filtered or unexported fields
}
func (*UpdateAccountRequest) Descriptor
deprecated
func (*UpdateAccountRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateAccountRequest.ProtoReflect.Descriptor instead.
func (*UpdateAccountRequest) ProtoMessage ¶
func (*UpdateAccountRequest) ProtoMessage()
func (*UpdateAccountRequest) ProtoReflect ¶
func (x *UpdateAccountRequest) ProtoReflect() protoreflect.Message
func (*UpdateAccountRequest) Reset ¶
func (x *UpdateAccountRequest) Reset()
func (*UpdateAccountRequest) String ¶
func (x *UpdateAccountRequest) String() string
func (*UpdateAccountRequest) Validate ¶
func (m *UpdateAccountRequest) Validate() error
Validate checks the field values on UpdateAccountRequest 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 (*UpdateAccountRequest) ValidateAll ¶
func (m *UpdateAccountRequest) ValidateAll() error
ValidateAll checks the field values on UpdateAccountRequest 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 UpdateAccountRequestMultiError, or nil if none found.
type UpdateAccountRequestMultiError ¶
type UpdateAccountRequestMultiError []error
UpdateAccountRequestMultiError is an error wrapping multiple validation errors returned by UpdateAccountRequest.ValidateAll() if the designated constraints aren't met.
func (UpdateAccountRequestMultiError) AllErrors ¶
func (m UpdateAccountRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UpdateAccountRequestMultiError) Error ¶
func (m UpdateAccountRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UpdateAccountRequestValidationError ¶
type UpdateAccountRequestValidationError struct {
// contains filtered or unexported fields
}
UpdateAccountRequestValidationError is the validation error returned by UpdateAccountRequest.Validate if the designated constraints aren't met.
func (UpdateAccountRequestValidationError) Cause ¶
func (e UpdateAccountRequestValidationError) Cause() error
Cause function returns cause value.
func (UpdateAccountRequestValidationError) Error ¶
func (e UpdateAccountRequestValidationError) Error() string
Error satisfies the builtin error interface
func (UpdateAccountRequestValidationError) ErrorName ¶
func (e UpdateAccountRequestValidationError) ErrorName() string
ErrorName returns error name.
func (UpdateAccountRequestValidationError) Field ¶
func (e UpdateAccountRequestValidationError) Field() string
Field function returns field value.
func (UpdateAccountRequestValidationError) Key ¶
func (e UpdateAccountRequestValidationError) Key() bool
Key function returns key value.
func (UpdateAccountRequestValidationError) Reason ¶
func (e UpdateAccountRequestValidationError) Reason() string
Reason function returns reason value.