Added the ability to show and hide elements by status type.

This commit is contained in:
2024-03-05 00:58:43 +05:00
parent 1f9f646f51
commit e766c6d465
7 changed files with 341 additions and 42 deletions

View File

@@ -11,8 +11,8 @@ type Queue struct {
}
type StatusContract interface {
name() string
ordinal() int
Name() string
Ordinal() int
}
const (
@@ -31,11 +31,11 @@ var statusTypeStrings = []string{
"error",
}
func (status StatusType) name() string {
func (status StatusType) Name() string {
return statusTypeStrings[status]
}
func (status StatusType) ordinal() int {
func (status StatusType) Ordinal() int {
return int(status)
}