Documentation ¶
Index ¶
- Constants
- type Project
- type Projects
- type Service
- func (s *Service) Clear()
- func (s *Service) Delete(key string) error
- func (s *Service) List(_ context.Context) (Projects, error)
- func (s *Service) Load(key string, force bool) (*Project, error)
- func (s *Service) LoadRequired(key string, force bool) (*Project, error)
- func (s *Service) LoadSourceProject(srcKey string) (*View, error)
- func (s *Service) LoadView(key string) (*View, error)
- func (s *Service) ReloadProject(key string) error
- func (s *Service) Save(prj *Project, overwrite bool) error
- func (s *Service) Search(ctx context.Context, q string) (result.Results, error)
- type View
Constants ¶
View Source
const SourceProjectPrefix = "__"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Project ¶
type Project struct { Key string `json:"-"` Title string `json:"title,omitempty"` Icon string `json:"icon,omitempty"` Description string `json:"description,omitempty"` Sources []string `json:"sources,omitempty"` Actions action.Actions `json:"actions"` }
func (*Project) IconWithFallback ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func NewService ¶
func NewService(files filesystem.FileLoader, sources *source.Service, ld *loader.Service, logger *zap.SugaredLogger) *Service
func (*Service) LoadRequired ¶
func (*Service) LoadSourceProject ¶
func (*Service) ReloadProject ¶
Click to show internal directories.
Click to hide internal directories.