Documentation
¶
Index ¶
- func ParseEIP(data []byte) (types.EIP, error)
- type Registry
- func (r *Registry) All() []types.EIP
- func (r *Registry) CachedVectors() map[string]types.EIPVector
- func (r *Registry) Categories() []string
- func (r *Registry) Count() int
- func (r *Registry) Refresh(ctx context.Context) error
- func (r *Registry) SaveVectors(vectors map[string]types.EIPVector) error
- func (r *Registry) Statuses() []string
- func (r *Registry) Types() []string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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) CachedVectors ¶
CachedVectors returns a copy of the cached embedding vectors.
func (*Registry) Categories ¶
Categories returns sorted unique category values across all EIPs.
func (*Registry) SaveVectors ¶
SaveVectors persists updated embedding vectors to the cache file.
Click to show internal directories.
Click to hide internal directories.