category

package
v2.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2021 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
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

Error satisfies the builtin error interface

func (CategoriesValidationError) ErrorName

func (e CategoriesValidationError) ErrorName() string

ErrorName returns error name.

func (CategoriesValidationError) Field

Field function returns field value.

func (CategoriesValidationError) Key

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

Deprecated: Use Category.ProtoReflect.Descriptor instead.

func (*Category) GetCreatedAt

func (x *Category) GetCreatedAt() *timestamppb.Timestamp

func (*Category) GetDescription

func (x *Category) GetDescription() string

func (*Category) GetId

func (x *Category) GetId() string

func (*Category) GetParentId

func (x *Category) GetParentId() string

func (*Category) GetStatus

func (x *Category) GetStatus() string

func (*Category) GetUpdatedAt

func (x *Category) GetUpdatedAt() *timestamppb.Timestamp

func (*Category) GetUserId

func (x *Category) GetUserId() string

func (*Category) ProtoMessage

func (*Category) ProtoMessage()

func (*Category) ProtoReflect

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

func (*Category) Reset

func (x *Category) Reset()

func (*Category) String

func (x *Category) String() string

func (*Category) Validate

func (m *Category) Validate() error

Validate checks the field values on Category with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

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.

Jump to

Keyboard shortcuts

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