Documentation
¶
Index ¶
- type ItemStatus
- func (e ItemStatus) Empty() bool
- func (e ItemStatus) MarshalJSON() ([]byte, error)
- func (e *ItemStatus) ParseAndSet(value string) error
- func (e *ItemStatus) Scan(value any) error
- func (e *ItemStatus) Set(value uint8) error
- func (e ItemStatus) String() string
- func (e *ItemStatus) UnmarshalJSON(data []byte) error
- func (e ItemStatus) Value() (driver.Value, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ItemStatus ¶
type ItemStatus uint8
ItemStatus - статус элемента в очереди.
const ( ItemStatusReady ItemStatus // ItemStatusReady - элемент очереди готов для обработки ItemStatusProcessing // ItemStatusProcessing - элемент очереди находится в обработке ItemStatusRetry // ItemStatusRetry - элемент очереди завершился с ошибкой и ожидает повторной обработки )
func (ItemStatus) Empty ¶
func (e ItemStatus) Empty() bool
Empty - проверяет, что enum значение не установлено.
func (ItemStatus) MarshalJSON ¶
func (e ItemStatus) MarshalJSON() ([]byte, error)
MarshalJSON - переводит enum значение в строковое представление.
func (*ItemStatus) ParseAndSet ¶
func (e *ItemStatus) ParseAndSet(value string) error
ParseAndSet - парсит указанное значение и если оно валидно, то устанавливает его числовое значение.
func (*ItemStatus) Scan ¶
func (e *ItemStatus) Scan(value any) error
Scan implements the Scanner interface.
func (*ItemStatus) Set ¶
func (e *ItemStatus) Set(value uint8) error
Set - устанавливает указанное значение, если оно является enum значением.
func (ItemStatus) String ¶
func (e ItemStatus) String() string
String - возвращается значение в виде строки.
func (*ItemStatus) UnmarshalJSON ¶
func (e *ItemStatus) UnmarshalJSON(data []byte) error
UnmarshalJSON - переводит строковое значение в enum представление.
Click to show internal directories.
Click to hide internal directories.