status

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 21, 2026 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package status는 위키 현황과 밀린 것을 계산한다. 숫자 나열이 아니라 지금 무엇을 해야 하는지가 보여야 하므로 지표에서 파생한 다음 행동 제안을 함께 낸다.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Backlog

type Backlog struct {
	Inbox           int      `json:"inbox"`
	OldestDays      *int     `json:"oldestDays"`
	UnknownAge      int      `json:"unknownAge"`
	Stale           int      `json:"stale"`
	Promotable      int      `json:"promotable"`
	PromotablePaths []string `json:"promotablePaths"`
}

Backlog은 아직 처리하지 않은 것의 지표다. OldestDays 는 날짜를 아는 inbox 문서가 없으면 nil 이다. 나이를 모르는 문서는 UnknownAge 로 따로 세고 0 으로 치지 않는다.

type LintSummary

type LintSummary struct {
	Files  int `json:"files"`
	Error  int `json:"error"`
	Warn   int `json:"warn"`
	Reject int `json:"reject"`
}

LintSummary는 lint 결과의 요약이다. 상세는 내지 않는다.

type Result

type Result struct {
	Stages      Stages       `json:"stages"`
	Links       int          `json:"links"`
	Orphans     int          `json:"orphans"`
	Lint        LintSummary  `json:"lint"`
	Backlog     Backlog      `json:"backlog"`
	Suggestions []Suggestion `json:"suggestions"`
}

Result는 status 계산 결과 전부다.

func Run

func Run(wikiRoot string, now time.Time) (Result, error)

Run은 위키 현황을 계산한다. 나이 계산 기준 시각은 호출자가 준다. 전역 --now 파싱 결과를 받는 구조라 여기서 시계를 직접 읽지 않는다.

type Stages

type Stages struct {
	Inbox   int `json:"inbox"`
	Source  int `json:"source"`
	Context int `json:"context"`
	Archive int `json:"archive"`
}

Stages는 단계별 문서 수다. 단계는 문서 위치(디렉토리) 기준으로 잡는다. 승급은 파일을 옮기는 행위이므로 운영의 진실원은 위치고, 프론트매터 값과 어긋나는 것은 lint 가 판정한다.

type Suggestion

type Suggestion struct {
	Action string `json:"action"`
	Detail string `json:"detail"`
}

Suggestion은 다음 행동 제안 하나다. Action 은 명령이나 행동, Detail 은 근거다.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL