index

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FileHash

func FileHash(path string) (string, error)

func FileHashBytes

func FileHashBytes(data []byte) string

func IsStale

func IsStale(snapshot Snapshot, sourcePath string) (bool, string, error)

func Save

func Save(path string, snapshot Snapshot) error

Types

type ObjectStub

type ObjectStub struct {
	FileID   int64  `json:"file_id"`
	ClassID  int    `json:"class_id"`
	TypeName string `json:"type_name"`
	Name     string `json:"name,omitempty"`
}

type Snapshot

type Snapshot struct {
	SchemaVersion int          `json:"schema_version"`
	Kind          string       `json:"kind"`
	Path          string       `json:"path"`
	FileHash      string       `json:"file_hash"`
	GeneratedBy   string       `json:"generated_by"`
	Objects       []ObjectStub `json:"objects"`
}

func BuildSnapshot

func BuildSnapshot(kind, path string, blocks []parser.Block) (Snapshot, error)

func BuildSnapshotFromData

func BuildSnapshotFromData(kind, path string, data []byte, blocks []parser.Block) (Snapshot, error)

func Load

func Load(path string) (Snapshot, error)

Jump to

Keyboard shortcuts

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