Documentation
¶
Index ¶
- Variables
- type CreateUserRequest
- func (*CreateUserRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateUserRequest) GetName() string
- func (x *CreateUserRequest) GetPassword() string
- func (x *CreateUserRequest) GetUsername() string
- func (*CreateUserRequest) ProtoMessage()
- func (x *CreateUserRequest) ProtoReflect() protoreflect.Message
- func (x *CreateUserRequest) Reset()
- func (x *CreateUserRequest) String() string
- func (m *CreateUserRequest) Validate() error
- func (m *CreateUserRequest) ValidateAll() error
- type CreateUserRequestMultiError
- type CreateUserRequestValidationError
- func (e CreateUserRequestValidationError) Cause() error
- func (e CreateUserRequestValidationError) Error() string
- func (e CreateUserRequestValidationError) ErrorName() string
- func (e CreateUserRequestValidationError) Field() string
- func (e CreateUserRequestValidationError) Key() bool
- func (e CreateUserRequestValidationError) Reason() string
- type GetUserResponse
- func (*GetUserResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetUserResponse) GetId() int64
- func (x *GetUserResponse) GetName() string
- func (x *GetUserResponse) GetUsername() string
- func (*GetUserResponse) ProtoMessage()
- func (x *GetUserResponse) ProtoReflect() protoreflect.Message
- func (x *GetUserResponse) Reset()
- func (x *GetUserResponse) String() string
- func (m *GetUserResponse) Validate() error
- func (m *GetUserResponse) ValidateAll() error
- type GetUserResponseMultiError
- type GetUserResponseValidationError
- func (e GetUserResponseValidationError) Cause() error
- func (e GetUserResponseValidationError) Error() string
- func (e GetUserResponseValidationError) ErrorName() string
- func (e GetUserResponseValidationError) Field() string
- func (e GetUserResponseValidationError) Key() bool
- func (e GetUserResponseValidationError) Reason() string
- type GetUsersResponse
- func (*GetUsersResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetUsersResponse) GetItems() []*UserItem
- func (x *GetUsersResponse) GetTotal() int64
- func (*GetUsersResponse) ProtoMessage()
- func (x *GetUsersResponse) ProtoReflect() protoreflect.Message
- func (x *GetUsersResponse) Reset()
- func (x *GetUsersResponse) String() string
- func (m *GetUsersResponse) Validate() error
- func (m *GetUsersResponse) ValidateAll() error
- type GetUsersResponseMultiError
- type GetUsersResponseValidationError
- func (e GetUsersResponseValidationError) Cause() error
- func (e GetUsersResponseValidationError) Error() string
- func (e GetUsersResponseValidationError) ErrorName() string
- func (e GetUsersResponseValidationError) Field() string
- func (e GetUsersResponseValidationError) Key() bool
- func (e GetUsersResponseValidationError) Reason() string
- type UserItem
- func (*UserItem) Descriptor() ([]byte, []int)deprecated
- func (x *UserItem) GetId() int64
- func (x *UserItem) GetName() string
- func (x *UserItem) GetUsername() string
- func (*UserItem) ProtoMessage()
- func (x *UserItem) ProtoReflect() protoreflect.Message
- func (x *UserItem) Reset()
- func (x *UserItem) String() string
- func (m *UserItem) Validate() error
- func (m *UserItem) ValidateAll() error
- type UserItemMultiError
- type UserItemValidationError
Constants ¶
This section is empty.
Variables ¶
var File_v2_user_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type CreateUserRequest ¶
type CreateUserRequest struct { Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"` Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*CreateUserRequest) Descriptor
deprecated
func (*CreateUserRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateUserRequest.ProtoReflect.Descriptor instead.
func (*CreateUserRequest) GetName ¶
func (x *CreateUserRequest) GetName() string
func (*CreateUserRequest) GetPassword ¶
func (x *CreateUserRequest) GetPassword() string
func (*CreateUserRequest) GetUsername ¶
func (x *CreateUserRequest) GetUsername() string
func (*CreateUserRequest) ProtoMessage ¶
func (*CreateUserRequest) ProtoMessage()
func (*CreateUserRequest) ProtoReflect ¶
func (x *CreateUserRequest) ProtoReflect() protoreflect.Message
func (*CreateUserRequest) Reset ¶
func (x *CreateUserRequest) Reset()
func (*CreateUserRequest) String ¶
func (x *CreateUserRequest) String() string
func (*CreateUserRequest) Validate ¶
func (m *CreateUserRequest) Validate() error
Validate checks the field values on CreateUserRequest 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 (*CreateUserRequest) ValidateAll ¶
func (m *CreateUserRequest) ValidateAll() error
ValidateAll checks the field values on CreateUserRequest 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 CreateUserRequestMultiError, or nil if none found.
type CreateUserRequestMultiError ¶
type CreateUserRequestMultiError []error
CreateUserRequestMultiError is an error wrapping multiple validation errors returned by CreateUserRequest.ValidateAll() if the designated constraints aren't met.
func (CreateUserRequestMultiError) AllErrors ¶
func (m CreateUserRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (CreateUserRequestMultiError) Error ¶
func (m CreateUserRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type CreateUserRequestValidationError ¶
type CreateUserRequestValidationError struct {
// contains filtered or unexported fields
}
CreateUserRequestValidationError is the validation error returned by CreateUserRequest.Validate if the designated constraints aren't met.
func (CreateUserRequestValidationError) Cause ¶
func (e CreateUserRequestValidationError) Cause() error
Cause function returns cause value.
func (CreateUserRequestValidationError) Error ¶
func (e CreateUserRequestValidationError) Error() string
Error satisfies the builtin error interface
func (CreateUserRequestValidationError) ErrorName ¶
func (e CreateUserRequestValidationError) ErrorName() string
ErrorName returns error name.
func (CreateUserRequestValidationError) Field ¶
func (e CreateUserRequestValidationError) Field() string
Field function returns field value.
func (CreateUserRequestValidationError) Key ¶
func (e CreateUserRequestValidationError) Key() bool
Key function returns key value.
func (CreateUserRequestValidationError) Reason ¶
func (e CreateUserRequestValidationError) Reason() string
Reason function returns reason value.
type GetUserResponse ¶
type GetUserResponse struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"` Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*GetUserResponse) Descriptor
deprecated
func (*GetUserResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetUserResponse.ProtoReflect.Descriptor instead.
func (*GetUserResponse) GetId ¶
func (x *GetUserResponse) GetId() int64
func (*GetUserResponse) GetName ¶
func (x *GetUserResponse) GetName() string
func (*GetUserResponse) GetUsername ¶
func (x *GetUserResponse) GetUsername() string
func (*GetUserResponse) ProtoMessage ¶
func (*GetUserResponse) ProtoMessage()
func (*GetUserResponse) ProtoReflect ¶
func (x *GetUserResponse) ProtoReflect() protoreflect.Message
func (*GetUserResponse) Reset ¶
func (x *GetUserResponse) Reset()
func (*GetUserResponse) String ¶
func (x *GetUserResponse) String() string
func (*GetUserResponse) Validate ¶
func (m *GetUserResponse) Validate() error
Validate checks the field values on GetUserResponse 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 (*GetUserResponse) ValidateAll ¶
func (m *GetUserResponse) ValidateAll() error
ValidateAll checks the field values on GetUserResponse 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 GetUserResponseMultiError, or nil if none found.
type GetUserResponseMultiError ¶
type GetUserResponseMultiError []error
GetUserResponseMultiError is an error wrapping multiple validation errors returned by GetUserResponse.ValidateAll() if the designated constraints aren't met.
func (GetUserResponseMultiError) AllErrors ¶
func (m GetUserResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetUserResponseMultiError) Error ¶
func (m GetUserResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetUserResponseValidationError ¶
type GetUserResponseValidationError struct {
// contains filtered or unexported fields
}
GetUserResponseValidationError is the validation error returned by GetUserResponse.Validate if the designated constraints aren't met.
func (GetUserResponseValidationError) Cause ¶
func (e GetUserResponseValidationError) Cause() error
Cause function returns cause value.
func (GetUserResponseValidationError) Error ¶
func (e GetUserResponseValidationError) Error() string
Error satisfies the builtin error interface
func (GetUserResponseValidationError) ErrorName ¶
func (e GetUserResponseValidationError) ErrorName() string
ErrorName returns error name.
func (GetUserResponseValidationError) Field ¶
func (e GetUserResponseValidationError) Field() string
Field function returns field value.
func (GetUserResponseValidationError) Key ¶
func (e GetUserResponseValidationError) Key() bool
Key function returns key value.
func (GetUserResponseValidationError) Reason ¶
func (e GetUserResponseValidationError) Reason() string
Reason function returns reason value.
type GetUsersResponse ¶
type GetUsersResponse struct { Total int64 `protobuf:"varint,1,opt,name=total,proto3" json:"total,omitempty"` Items []*UserItem `protobuf:"bytes,2,rep,name=items,proto3" json:"items,omitempty"` // contains filtered or unexported fields }
func (*GetUsersResponse) Descriptor
deprecated
func (*GetUsersResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetUsersResponse.ProtoReflect.Descriptor instead.
func (*GetUsersResponse) GetItems ¶
func (x *GetUsersResponse) GetItems() []*UserItem
func (*GetUsersResponse) GetTotal ¶
func (x *GetUsersResponse) GetTotal() int64
func (*GetUsersResponse) ProtoMessage ¶
func (*GetUsersResponse) ProtoMessage()
func (*GetUsersResponse) ProtoReflect ¶
func (x *GetUsersResponse) ProtoReflect() protoreflect.Message
func (*GetUsersResponse) Reset ¶
func (x *GetUsersResponse) Reset()
func (*GetUsersResponse) String ¶
func (x *GetUsersResponse) String() string
func (*GetUsersResponse) Validate ¶
func (m *GetUsersResponse) Validate() error
Validate checks the field values on GetUsersResponse 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 (*GetUsersResponse) ValidateAll ¶
func (m *GetUsersResponse) ValidateAll() error
ValidateAll checks the field values on GetUsersResponse 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 GetUsersResponseMultiError, or nil if none found.
type GetUsersResponseMultiError ¶
type GetUsersResponseMultiError []error
GetUsersResponseMultiError is an error wrapping multiple validation errors returned by GetUsersResponse.ValidateAll() if the designated constraints aren't met.
func (GetUsersResponseMultiError) AllErrors ¶
func (m GetUsersResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetUsersResponseMultiError) Error ¶
func (m GetUsersResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetUsersResponseValidationError ¶
type GetUsersResponseValidationError struct {
// contains filtered or unexported fields
}
GetUsersResponseValidationError is the validation error returned by GetUsersResponse.Validate if the designated constraints aren't met.
func (GetUsersResponseValidationError) Cause ¶
func (e GetUsersResponseValidationError) Cause() error
Cause function returns cause value.
func (GetUsersResponseValidationError) Error ¶
func (e GetUsersResponseValidationError) Error() string
Error satisfies the builtin error interface
func (GetUsersResponseValidationError) ErrorName ¶
func (e GetUsersResponseValidationError) ErrorName() string
ErrorName returns error name.
func (GetUsersResponseValidationError) Field ¶
func (e GetUsersResponseValidationError) Field() string
Field function returns field value.
func (GetUsersResponseValidationError) Key ¶
func (e GetUsersResponseValidationError) Key() bool
Key function returns key value.
func (GetUsersResponseValidationError) Reason ¶
func (e GetUsersResponseValidationError) Reason() string
Reason function returns reason value.
type UserItem ¶
type UserItem struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"` Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*UserItem) Descriptor
deprecated
func (*UserItem) GetUsername ¶
func (*UserItem) ProtoMessage ¶
func (*UserItem) ProtoMessage()
func (*UserItem) ProtoReflect ¶
func (x *UserItem) ProtoReflect() protoreflect.Message
func (*UserItem) Validate ¶
Validate checks the field values on UserItem 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 (*UserItem) ValidateAll ¶
ValidateAll checks the field values on UserItem 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 UserItemMultiError, or nil if none found.
type UserItemMultiError ¶
type UserItemMultiError []error
UserItemMultiError is an error wrapping multiple validation errors returned by UserItem.ValidateAll() if the designated constraints aren't met.
func (UserItemMultiError) AllErrors ¶
func (m UserItemMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UserItemMultiError) Error ¶
func (m UserItemMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UserItemValidationError ¶
type UserItemValidationError struct {
// contains filtered or unexported fields
}
UserItemValidationError is the validation error returned by UserItem.Validate if the designated constraints aren't met.
func (UserItemValidationError) Cause ¶
func (e UserItemValidationError) Cause() error
Cause function returns cause value.
func (UserItemValidationError) Error ¶
func (e UserItemValidationError) Error() string
Error satisfies the builtin error interface
func (UserItemValidationError) ErrorName ¶
func (e UserItemValidationError) ErrorName() string
ErrorName returns error name.
func (UserItemValidationError) Field ¶
func (e UserItemValidationError) Field() string
Field function returns field value.
func (UserItemValidationError) Key ¶
func (e UserItemValidationError) Key() bool
Key function returns key value.
func (UserItemValidationError) Reason ¶
func (e UserItemValidationError) Reason() string
Reason function returns reason value.