model

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2026 License: MIT Imports: 0 Imported by: 0

Documentation

Overview

Package model defines core data structures for repoguide.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dependency

type Dependency struct {
	Source  string
	Target  string
	Symbols []string
}

Dependency represents an edge in the dependency graph: Source references symbols defined in Target.

type FileInfo

type FileInfo struct {
	Path     string
	Language string
	Tags     []Tag
	Rank     float64
}

FileInfo holds metadata and extracted tags for a single source file.

type RepoMap

type RepoMap struct {
	RepoName     string
	Root         string
	Files        []FileInfo
	Dependencies []Dependency
}

RepoMap is the complete analyzed repository map, ready for serialization.

type SymbolKind

type SymbolKind string

SymbolKind indicates the syntactic kind of a symbol.

const (
	Class    SymbolKind = "class"
	Function SymbolKind = "function"
	Method   SymbolKind = "method"
	Module   SymbolKind = "module"
)

type Tag

type Tag struct {
	Name       string
	Kind       TagKind
	SymbolKind SymbolKind
	Line       int
	File       string
	Signature  string
}

Tag represents a single symbol occurrence extracted from source code.

type TagKind

type TagKind string

TagKind indicates whether a tag is a definition or a reference.

const (
	Definition TagKind = "def"
	Reference  TagKind = "ref"
)

Jump to

Keyboard shortcuts

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