Documentation ¶
Index ¶
- type Service
- func (s *Service) Clear()
- func (s *Service) Delete(key string, logger util.Logger) error
- func (s *Service) GetOverrides(key string) (schema.Overrides, error)
- func (s *Service) List(logger util.Logger) (Sources, error)
- func (s *Service) Load(key string, force bool, logger util.Logger) (*Source, error)
- func (s *Service) LoadSchema(key string) (*schema.Schema, error)
- func (s *Service) NewSource(key string, title string, icon string, description string, t schema.Origin) *Source
- func (s *Service) Save(src *Source, overwrite bool, logger util.Logger) error
- func (s *Service) SaveOverrides(key string, os schema.Overrides) error
- func (s *Service) SaveSchema(key string, sch *schema.Schema) error
- func (s *Service) SchemaRefresh(ctx context.Context, key string, logger util.Logger) (*schema.Schema, float64, error)
- func (s *Service) Search(q string, logger util.Logger) (result.Results, error)
- type Source
- type Sources
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func NewService ¶
func NewService(files filesystem.FileLoader, ld *loader.Service) *Service
func (*Service) SaveOverrides ¶
func (*Service) SchemaRefresh ¶
type Source ¶
type Source struct { Key string `json:"-"` Title string `json:"title,omitempty"` Icon string `json:"icon,omitempty"` Description string `json:"description,omitempty"` Paths []string `json:"paths,omitempty"` Type schema.Origin `json:"type,omitempty"` Config json.RawMessage `json:"config,omitempty"` }
func (*Source) IconWithFallback ¶
Click to show internal directories.
Click to hide internal directories.