Versions in this module Expand all Collapse all v0 v0.0.3 Jun 13, 2017 v0.0.2 Jun 13, 2017 Changes in this version + const SystemArea + const SystemAssignees + const SystemCodebase + const SystemCreatedAt + const SystemCreator + const SystemDescription + const SystemDescriptionMarkup + const SystemDescriptionRendered + const SystemIteration + const SystemOrder + const SystemRemoteItemID + const SystemState + const SystemStateClosed + const SystemStateInProgress + const SystemStateNew + const SystemStateOpen + const SystemStateResolved + const SystemTitle + const SystemUpdatedAt + var SystemBug = uuid.FromStringOrNil("26787039-b68f-4e28-8814-c2f93be1ef4e") + var SystemExperience = uuid.FromStringOrNil("b9a71831-c803-4f66-8774-4193fffd1311") + var SystemFeature = uuid.FromStringOrNil("0a24d3c2-e0a6-4686-8051-ec0ea1915a28") + var SystemFundamental = uuid.FromStringOrNil("ee7ca005-f81d-4eea-9b9b-1965df0988d0") + var SystemPapercuts = uuid.FromStringOrNil("6d603ab4-7c5e-4c5f-bba8-a3ba9d370985") + var SystemPlannerItem = uuid.FromStringOrNil("86af5178-9b41-469b-9096-57e5155c3f31") + var SystemScenario = uuid.FromStringOrNil("71171e90-6d35-498f-a6a7-2083b5267c18") + var SystemTask = uuid.FromStringOrNil("bbf35418-04b6-426c-a60b-7f80beb0b624") + var SystemValueProposition = uuid.FromStringOrNil("3194ab60-855b-4155-9005-9dce4a05f1eb") + func ClearGlobalWorkItemTypeCache() + func Compile(where criteria.Expression) (whereClause string, parameters []interface{}, err []error) + func ConvertList(converter Converter, componentType SimpleType, value interface{}) ([]interface{}, error) + func GetTypePathSeparator() string + func LtreeSafeID(witID uuid.UUID) string + func ParseWorkItemIDToUint64(wiIDStr string) (uint64, error) + type Converter func(FieldType, interface{}) (interface{}, error) + type DirectionType string + const DirectionAbove + const DirectionBelow + const DirectionBottom + const DirectionTop + type EnumType struct + BaseType SimpleType + Values []interface{} + func (fieldType EnumType) ConvertFromModel(value interface{}) (interface{}, error) + func (fieldType EnumType) ConvertToModel(value interface{}) (interface{}, error) + func (t EnumType) Equal(u convert.Equaler) bool + type FieldDefinition struct + Description string + Label string + Required bool + Type FieldType + func (f *FieldDefinition) UnmarshalJSON(bytes []byte) error + func (f FieldDefinition) ConvertFromModel(name string, value interface{}) (interface{}, error) + func (f FieldDefinition) ConvertToModel(name string, value interface{}) (interface{}, error) + func (f FieldDefinition) Equal(u convert.Equaler) bool + type FieldDefinitions map[string]FieldDefinition + func (j *FieldDefinitions) Scan(src interface{}) error + func (j FieldDefinitions) Value() (driver.Value, error) + type FieldType interface + ConvertFromModel func(value interface{}) (interface{}, error) + ConvertToModel func(value interface{}) (interface{}, error) + Equal func(u convert.Equaler) bool + GetKind func() Kind + type Fields map[string]interface + func (f Fields) Equal(u convert.Equaler) bool + func (j *Fields) Scan(src interface{}) error + func (j Fields) Value() (driver.Value, error) + type GormRevisionRepository struct + func NewRevisionRepository(db *gorm.DB) *GormRevisionRepository + func (r *GormRevisionRepository) Create(ctx context.Context, modifierID uuid.UUID, revisionType RevisionType, ...) error + func (r *GormRevisionRepository) List(ctx context.Context, workitemID string) ([]Revision, error) + type GormWorkItemRepository struct + func NewWorkItemRepository(db *gorm.DB) *GormWorkItemRepository + func (r *GormWorkItemRepository) CalculateOrder(above, below *float64) float64 + func (r *GormWorkItemRepository) Count(ctx context.Context, spaceID uuid.UUID, criteria criteria.Expression) (int, error) + func (r *GormWorkItemRepository) Create(ctx context.Context, spaceID uuid.UUID, typeID uuid.UUID, ...) (*WorkItem, error) + func (r *GormWorkItemRepository) Delete(ctx context.Context, spaceID uuid.UUID, workitemID string, ...) error + func (r *GormWorkItemRepository) Fetch(ctx context.Context, spaceID uuid.UUID, criteria criteria.Expression) (*WorkItem, error) + func (r *GormWorkItemRepository) FindFirstItem(id string) (*float64, error) + func (r *GormWorkItemRepository) FindSecondItem(order *float64, secondItemDirection DirectionType) (*string, *float64, error) + func (r *GormWorkItemRepository) GetCountsForIteration(ctx context.Context, iterationID uuid.UUID) (map[string]WICountsPerIteration, error) + func (r *GormWorkItemRepository) GetCountsPerIteration(ctx context.Context, spaceID uuid.UUID) (map[string]WICountsPerIteration, error) + func (r *GormWorkItemRepository) List(ctx context.Context, spaceID uuid.UUID, criteria criteria.Expression, ...) ([]WorkItem, uint64, error) + func (r *GormWorkItemRepository) Load(ctx context.Context, spaceID uuid.UUID, workitemID string) (*WorkItem, error) + func (r *GormWorkItemRepository) LoadBottomWorkitem(ctx context.Context) (*WorkItem, error) + func (r *GormWorkItemRepository) LoadByID(ctx context.Context, ID string) (*WorkItem, error) + func (r *GormWorkItemRepository) LoadFromDB(ctx context.Context, workitemID string) (*WorkItemStorage, error) + func (r *GormWorkItemRepository) LoadHighestOrder() (float64, error) + func (r *GormWorkItemRepository) LoadTopWorkitem(ctx context.Context) (*WorkItem, error) + func (r *GormWorkItemRepository) Reorder(ctx context.Context, direction DirectionType, targetID *string, wi WorkItem, ...) (*WorkItem, error) + func (r *GormWorkItemRepository) Save(ctx context.Context, spaceID uuid.UUID, updatedWorkItem WorkItem, ...) (*WorkItem, error) + type GormWorkItemTypeRepository struct + func NewWorkItemTypeRepository(db *gorm.DB) *GormWorkItemTypeRepository + func (r *GormWorkItemTypeRepository) Create(ctx context.Context, spaceID uuid.UUID, id *uuid.UUID, ...) (*WorkItemType, error) + func (r *GormWorkItemTypeRepository) List(ctx context.Context, spaceID uuid.UUID, start *int, limit *int) ([]WorkItemType, error) + func (r *GormWorkItemTypeRepository) ListPlannerItems(ctx context.Context, spaceID uuid.UUID) ([]WorkItemType, error) + func (r *GormWorkItemTypeRepository) Load(ctx context.Context, spaceID uuid.UUID, id uuid.UUID) (*WorkItemType, error) + func (r *GormWorkItemTypeRepository) LoadByID(ctx context.Context, id uuid.UUID) (*WorkItemType, error) + func (r *GormWorkItemTypeRepository) LoadTypeFromDB(ctx context.Context, id uuid.UUID) (*WorkItemType, error) + type Kind string + const KindArea + const KindCodebase + const KindDuration + const KindEnum + const KindFloat + const KindInstant + const KindInteger + const KindIteration + const KindList + const KindMarkup + const KindString + const KindURL + const KindUser + const KindWorkitemReference + func ConvertAnyToKind(any interface{}) (*Kind, error) + func ConvertStringToKind(k string) (*Kind, error) + func (k Kind) IsSimpleType() bool + type ListType struct + ComponentType SimpleType + func (fieldType ListType) ConvertFromModel(value interface{}) (interface{}, error) + func (fieldType ListType) ConvertToModel(value interface{}) (interface{}, error) + func (t ListType) Equal(u convert.Equaler) bool + type Revision struct + ID uuid.UUID + ModifierIdentity uuid.UUID + Time time.Time + Type RevisionType + WorkItemFields Fields + WorkItemID uint64 + WorkItemTypeID uuid.UUID + WorkItemVersion int + func (w Revision) TableName() string + type RevisionRepository interface + Create func(ctx context.Context, modifierID uuid.UUID, revisionType RevisionType, ...) error + List func(ctx context.Context, workitemID string) ([]Revision, error) + type RevisionType int + const RevisionTypeCreate + const RevisionTypeDelete + const RevisionTypeUpdate + type SimpleType struct + Kind Kind + func (fieldType SimpleType) ConvertFromModel(value interface{}) (interface{}, error) + func (fieldType SimpleType) ConvertToModel(value interface{}) (interface{}, error) + func (t SimpleType) Equal(u convert.Equaler) bool + func (t SimpleType) GetKind() Kind + type WICountsPerIteration struct + Closed int + IterationID string + Total int + type WorkItem struct + Fields map[string]interface{} + ID string + SpaceID uuid.UUID + Type uuid.UUID + Version int + func ConvertWorkItemStorageToModel(wiType *WorkItemType, wi *WorkItemStorage) (*WorkItem, error) + func (wi WorkItem) GetETagData() []interface{} + func (wi WorkItem) GetLastModified() time.Time + type WorkItemRepository interface + Count func(ctx context.Context, spaceID uuid.UUID, criteria criteria.Expression) (int, error) + Create func(ctx context.Context, spaceID uuid.UUID, typeID uuid.UUID, ...) (*WorkItem, error) + Delete func(ctx context.Context, spaceID uuid.UUID, ID string, suppressorID uuid.UUID) error + Fetch func(ctx context.Context, spaceID uuid.UUID, criteria criteria.Expression) (*WorkItem, error) + GetCountsForIteration func(ctx context.Context, iterationID uuid.UUID) (map[string]WICountsPerIteration, error) + GetCountsPerIteration func(ctx context.Context, spaceID uuid.UUID) (map[string]WICountsPerIteration, error) + List func(ctx context.Context, spaceID uuid.UUID, criteria criteria.Expression, ...) ([]WorkItem, uint64, error) + Load func(ctx context.Context, spaceID uuid.UUID, ID string) (*WorkItem, error) + LoadByID func(ctx context.Context, ID string) (*WorkItem, error) + Reorder func(ctx context.Context, direction DirectionType, targetID *string, wi WorkItem, ...) (*WorkItem, error) + Save func(ctx context.Context, spaceID uuid.UUID, wi WorkItem, modifierID uuid.UUID) (*WorkItem, error) + type WorkItemStorage struct + ExecutionOrder float64 + Fields Fields + ID uint64 + SpaceID uuid.UUID + Type uuid.UUID + Version int + func (w WorkItemStorage) TableName() string + func (wi WorkItemStorage) Equal(u convert.Equaler) bool + type WorkItemType struct + Description *string + Fields FieldDefinitions + ID uuid.UUID + Icon string + Name string + Path string + SpaceID uuid.UUID + Version int + func (wit WorkItemType) ConvertWorkItemStorageToModel(workItem WorkItemStorage) (*WorkItem, error) + func (wit WorkItemType) Equal(u convert.Equaler) bool + func (wit WorkItemType) GetETagData() []interface{} + func (wit WorkItemType) GetLastModified() time.Time + func (wit WorkItemType) IsTypeOrSubtypeOf(typeID uuid.UUID) bool + func (wit WorkItemType) LtreeSafeID() string + func (wit WorkItemType) TableName() string + type WorkItemTypeCache struct + func NewWorkItemTypeCache() *WorkItemTypeCache + func (c *WorkItemTypeCache) Clear() + func (c *WorkItemTypeCache) Get(id uuid.UUID) (WorkItemType, bool) + func (c *WorkItemTypeCache) Put(wit WorkItemType) + type WorkItemTypeRepository interface + Create func(ctx context.Context, spaceID uuid.UUID, id *uuid.UUID, ...) (*WorkItemType, error) + List func(ctx context.Context, spaceID uuid.UUID, start *int, length *int) ([]WorkItemType, error) + ListPlannerItems func(ctx context.Context, spaceID uuid.UUID) ([]WorkItemType, error) + Load func(ctx context.Context, spaceID uuid.UUID, id uuid.UUID) (*WorkItemType, error)