Documentation ¶
Index ¶
- Constants
- type Project
- type Projects
- type Service
- func (s *Service) Clear()
- func (s *Service) Delete(key string, logger util.Logger) error
- func (s *Service) List(_ context.Context, logger util.Logger) (Projects, error)
- func (s *Service) Load(key string, force bool, logger util.Logger) (*Project, error)
- func (s *Service) LoadRequired(key string, force bool, logger util.Logger) (*Project, error)
- func (s *Service) LoadSourceProject(srcKey string, logger util.Logger) (*View, error)
- func (s *Service) LoadView(key string, logger util.Logger) (*View, error)
- func (s *Service) ReloadProject(key string, logger util.Logger) error
- func (s *Service) Save(prj *Project, overwrite bool, logger util.Logger) error
- func (s *Service) Search(ctx context.Context, q string, logger util.Logger) (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) *Service
func (*Service) LoadRequired ¶
func (*Service) LoadSourceProject ¶
func (*Service) ReloadProject ¶
Click to show internal directories.
Click to hide internal directories.