Documentation
¶
Overview ¶
Package objectives manages the human-authored goals that give the engine its sense of direction ("what we're trying to do"). In v1 objectives are created by people, never inferred — that avoids stale or hallucinated goals.
Index ¶
- Constants
- type Objective
- type Service
- func (svc *Service) Add(ctx context.Context, title string, priority int, parentID string) (Objective, error)
- func (svc *Service) Current(ctx context.Context) ([]Objective, error)
- func (svc *Service) List(ctx context.Context) ([]Objective, error)
- func (svc *Service) SetStatus(ctx context.Context, id, status string) (Objective, error)
Constants ¶
View Source
const ( StatusProposed = "proposed" StatusActive = "active" StatusBlocked = "blocked" StatusDone = "done" StatusAbandoned = "abandoned" )
Status values for an objective.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service is the objective use-case layer over a Store.
func (*Service) Add ¶
func (svc *Service) Add(ctx context.Context, title string, priority int, parentID string) (Objective, error)
Add creates a new objective. priority defaults sensibly; parent may be empty.
Click to show internal directories.
Click to hide internal directories.