Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInvalidPriority = fmt.Errorf("not a valid Priority, try [%s]", strings.Join(_PriorityNames, ", "))
Functions ¶
func PriorityNames ¶
func PriorityNames() []string
PriorityNames returns a list of possible string values of Priority.
Types ¶
type Priority ¶
type Priority int32
ENUM(undefined, low, medium, high, critical)
const ( // PriorityUndefined is a Priority of type Undefined. PriorityUndefined Priority = iota // PriorityLow is a Priority of type Low. PriorityLow // PriorityMedium is a Priority of type Medium. PriorityMedium // PriorityHigh is a Priority of type High. PriorityHigh // PriorityCritical is a Priority of type Critical. PriorityCritical )
func ParsePriority ¶
ParsePriority attempts to convert a string to a Priority.
func PriorityValues ¶
func PriorityValues() []Priority
PriorityValues returns a list of the values for Priority
func (*Priority) AppendText ¶
AppendText appends the textual representation of itself to the end of b (allocating a larger slice if necessary) and returns the updated slice.
Implementations must not retain b, nor mutate any bytes within b[:len(b)].
func (Priority) IsValid ¶
IsValid provides a quick way to determine if the typed value is part of the allowed enumerated values
func (Priority) MarshalText ¶
MarshalText implements the text marshaller method.
func (*Priority) UnmarshalText ¶
UnmarshalText implements the text unmarshaller method.
type Task ¶
type Task struct {
ID int64
Name string
Description string
Dependencies []int64
Priority Priority
StartTime time.Time
FinishTime time.Time
CreatedAt time.Time
UpdatedAt time.Time
}
func (Task) GetDependencies ¶
type UpdatedBoard ¶
type UpdatedTask ¶
type UpdatedTask struct {
ID int64
Name *string
Description *string
Dependencies []int64
Priority *Priority
StartTime *time.Time
FinishTime *time.Time
}
func (UpdatedTask) GetDependencies ¶
func (t UpdatedTask) GetDependencies() []int64
func (UpdatedTask) GetID ¶
func (t UpdatedTask) GetID() int64
type UpdatedTopic ¶
Click to show internal directories.
Click to hide internal directories.