Versions in this module Expand all Collapse all v1 v1.2.1 Oct 1, 2026 v1.2.0 Jul 5, 2026 Changes in this version + var Default = NewRegistry() + type Registry struct + func NewRegistry() *Registry + func (r *Registry) Kinds() []string + func (r *Registry) Open(kind string, args []string) (Source, error) + func (r *Registry) Register(kind string, factory func(args []string) (Source, error)) + type SliceSource struct + func NewSliceSource(keys ...string) *SliceSource + func (s *SliceSource) Close() error + func (s *SliceSource) Name() string + func (s *SliceSource) Next(ctx context.Context) (string, error) + func (s *SliceSource) Total() int + type Source interface + Close func() error + Name func() string + Next func(ctx context.Context) (string, error) + Total func() int