eips

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2026 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseEIP

func ParseEIP(data []byte) (types.EIP, error)

ParseEIP parses an EIP markdown file with YAML frontmatter.

Types

type Registry

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

Registry manages a collection of parsed EIPs with disk caching.

func NewRegistry

func NewRegistry(
	ctx context.Context,
	log logrus.FieldLogger,
	cacheDir string,
) (*Registry, error)

NewRegistry creates an EIP registry, fetching from GitHub if the cache is stale.

func (*Registry) All

func (r *Registry) All() []types.EIP

All returns a copy of all EIPs.

func (*Registry) CachedVectors

func (r *Registry) CachedVectors() map[string]types.EIPVector

CachedVectors returns a copy of the cached embedding vectors.

func (*Registry) Categories

func (r *Registry) Categories() []string

Categories returns sorted unique category values across all EIPs.

func (*Registry) Count

func (r *Registry) Count() int

Count returns the number of EIPs in the registry.

func (*Registry) Refresh

func (r *Registry) Refresh(ctx context.Context) error

Refresh re-fetches EIPs from GitHub, preserving existing vectors.

func (*Registry) SaveVectors

func (r *Registry) SaveVectors(vectors map[string]types.EIPVector) error

SaveVectors persists updated embedding vectors to the cache file.

func (*Registry) Statuses

func (r *Registry) Statuses() []string

Statuses returns sorted unique status values across all EIPs.

func (*Registry) Types

func (r *Registry) Types() []string

Types returns sorted unique type values across all EIPs.

Jump to

Keyboard shortcuts

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