meta

package
v0.4.4 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CurrentSchemaVersion = 10
	BaseName             = "meta.json"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Meta

type Meta struct {
	// contains filtered or unexported fields
}

func Create

func Create(root *file.Root, log *log.Logger) (*Meta, error)

func OpenOrCreate

func OpenOrCreate(root *file.Root, log *log.Logger) (*Meta, error)

func (*Meta) Exists

func (i *Meta) Exists() bool

func (*Meta) GetSourceMeta

func (i *Meta) GetSourceMeta(source string) *SourceMeta

func (*Meta) IsSchemaOutdated

func (i *Meta) IsSchemaOutdated() bool

func (*Meta) LastImported

func (i *Meta) LastImported() time.Time

func (*Meta) LastUpdated

func (i *Meta) LastUpdated() time.Time

func (*Meta) Save

func (i *Meta) Save() error

func (*Meta) SetSourceMeta

func (i *Meta) SetSourceMeta(source string, meta *SourceMeta)

type SourceMeta

type SourceMeta struct {
	StoredAt  time.Time
	UpdatedAt time.Time
	Path      string
}

Jump to

Keyboard shortcuts

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