Documentation
¶
Index ¶
- Variables
- type Categories
- func (*Categories) Descriptor() ([]byte, []int)deprecated
- func (x *Categories) GetList() []*Category
- func (x *Categories) GetPagination() *common.PaginationResult
- func (*Categories) ProtoMessage()
- func (x *Categories) ProtoReflect() protoreflect.Message
- func (x *Categories) Reset()
- func (x *Categories) String() string
- func (m *Categories) Validate() error
- type CategoriesValidationError
- type Category
- func (*Category) Descriptor() ([]byte, []int)deprecated
- func (x *Category) GetCreatedAt() *timestamppb.Timestamp
- func (x *Category) GetDescription() string
- func (x *Category) GetId() string
- func (x *Category) GetParentId() string
- func (x *Category) GetStatus() string
- func (x *Category) GetUpdatedAt() *timestamppb.Timestamp
- func (x *Category) GetUserId() string
- func (*Category) ProtoMessage()
- func (x *Category) ProtoReflect() protoreflect.Message
- func (x *Category) Reset()
- func (x *Category) String() string
- func (m *Category) Validate() error
- type CategoryValidationError
Constants ¶
This section is empty.
Variables ¶
var File_pkg_proto_category_types_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Categories ¶
type Categories struct { List []*Category `protobuf:"bytes,1,rep,name=list,proto3" json:"list,omitempty"` Pagination *common.PaginationResult `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` // contains filtered or unexported fields }
func (*Categories) Descriptor
deprecated
func (*Categories) Descriptor() ([]byte, []int)
Deprecated: Use Categories.ProtoReflect.Descriptor instead.
func (*Categories) GetList ¶
func (x *Categories) GetList() []*Category
func (*Categories) GetPagination ¶
func (x *Categories) GetPagination() *common.PaginationResult
func (*Categories) ProtoMessage ¶
func (*Categories) ProtoMessage()
func (*Categories) ProtoReflect ¶
func (x *Categories) ProtoReflect() protoreflect.Message
func (*Categories) Reset ¶
func (x *Categories) Reset()
func (*Categories) String ¶
func (x *Categories) String() string
func (*Categories) Validate ¶
func (m *Categories) Validate() error
Validate checks the field values on Categories with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type CategoriesValidationError ¶
type CategoriesValidationError struct {
// contains filtered or unexported fields
}
CategoriesValidationError is the validation error returned by Categories.Validate if the designated constraints aren't met.
func (CategoriesValidationError) Cause ¶
func (e CategoriesValidationError) Cause() error
Cause function returns cause value.
func (CategoriesValidationError) Error ¶
func (e CategoriesValidationError) Error() string
Error satisfies the builtin error interface
func (CategoriesValidationError) ErrorName ¶
func (e CategoriesValidationError) ErrorName() string
ErrorName returns error name.
func (CategoriesValidationError) Field ¶
func (e CategoriesValidationError) Field() string
Field function returns field value.
func (CategoriesValidationError) Key ¶
func (e CategoriesValidationError) Key() bool
Key function returns key value.
func (CategoriesValidationError) Reason ¶
func (e CategoriesValidationError) Reason() string
Reason function returns reason value.
type Category ¶
type Category struct { // @inject_tag: faker:"uuid_hyphenated" Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // @inject_tag: faker:"oneof: 1, 0" Status string `protobuf:"bytes,2,opt,name=status,proto3" json:"status,omitempty"` // @inject_tag: faker:"-" ParentId string `protobuf:"bytes,3,opt,name=parent_id,json=parentId,proto3" json:"parent_id,omitempty"` // @inject_tag: faker:"sentence" Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"` // @inject_tag: faker:"uuid_hyphenated" UserId string `protobuf:"bytes,5,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` CreatedAt *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` // contains filtered or unexported fields }
func (*Category) Descriptor
deprecated
func (*Category) GetCreatedAt ¶
func (x *Category) GetCreatedAt() *timestamppb.Timestamp
func (*Category) GetDescription ¶
func (*Category) GetParentId ¶
func (*Category) GetUpdatedAt ¶
func (x *Category) GetUpdatedAt() *timestamppb.Timestamp
func (*Category) ProtoMessage ¶
func (*Category) ProtoMessage()
func (*Category) ProtoReflect ¶
func (x *Category) ProtoReflect() protoreflect.Message
type CategoryValidationError ¶
type CategoryValidationError struct {
// contains filtered or unexported fields
}
CategoryValidationError is the validation error returned by Category.Validate if the designated constraints aren't met.
func (CategoryValidationError) Cause ¶
func (e CategoryValidationError) Cause() error
Cause function returns cause value.
func (CategoryValidationError) Error ¶
func (e CategoryValidationError) Error() string
Error satisfies the builtin error interface
func (CategoryValidationError) ErrorName ¶
func (e CategoryValidationError) ErrorName() string
ErrorName returns error name.
func (CategoryValidationError) Field ¶
func (e CategoryValidationError) Field() string
Field function returns field value.
func (CategoryValidationError) Key ¶
func (e CategoryValidationError) Key() bool
Key function returns key value.
func (CategoryValidationError) Reason ¶
func (e CategoryValidationError) Reason() string
Reason function returns reason value.