Documentation
¶
Index ¶
Constants ¶
View Source
const ( //OrdNormal is the order number for the normal priority. OrdNormal ord = iota //OrdSecondary is the order number for the secondary priority. OrdSecondary //OrdMain is the order number for the main priority. OrdMain )
View Source
const MaxNum = uint8(MaxOrd)
MaxNum is the maximal number value for order number.
View Source
const MaxOrd = OrdMain
MaxOrd is the maximal order number.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Priority ¶
type Priority struct {
// contains filtered or unexported fields
}
Priority represents priority enum.
func FromOrd ¶
func FromOrd(ordNum ord) Priority
FromOrd returns the priority for the given order number.
func (Priority) MarshalJSON ¶
MarshalJSON implements json.Marshaler.
func (*Priority) UnmarshalJSON ¶
UnmarshalJSON implements json.Unmarshaler.
Click to show internal directories.
Click to hide internal directories.