Documentation ¶
Index ¶
- type Service
- func (s *Service) Clear()
- func (s *Service) Delete(key string) error
- func (s *Service) GetOverrides(key string) (schema.Overrides, error)
- func (s *Service) List() (Sources, error)
- func (s *Service) Load(key string, force bool) (*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) 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) (*schema.Schema, float64, error)
- func (s *Service) Search(q string) (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, logger *zap.SugaredLogger) *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.