Documentation ¶
Index ¶
- Variables
- type OnProjectCloseFn
- type OnProjectOpenFn
- type Project
- type Repository
- type Service
- func (svc *Service) ActiveProject() (Project, error)
- func (svc *Service) Close() error
- func (svc *Service) Delete(name string) error
- func (svc *Service) OnProjectClose(fn OnProjectCloseFn)
- func (svc *Service) OnProjectOpen(fn OnProjectOpenFn)
- func (svc *Service) Open(ctx context.Context, name string) (Project, error)
- func (svc *Service) Projects() ([]Project, error)
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type OnProjectCloseFn ¶
type OnProjectOpenFn ¶
type Repository ¶
type Repository interface { UpsertSettings(ctx context.Context, module string, settings interface{}) error FindSettingsByModule(ctx context.Context, module string, settings interface{}) error OpenProject(name string) error DeleteProject(name string) error Projects() ([]Project, error) Close() error }
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service is used for managing projects.
func NewService ¶
func NewService(repo Repository) (*Service, error)
NewService returns a new Service.
func (*Service) ActiveProject ¶
func (*Service) OnProjectClose ¶
func (svc *Service) OnProjectClose(fn OnProjectCloseFn)
func (*Service) OnProjectOpen ¶
func (svc *Service) OnProjectOpen(fn OnProjectOpenFn)
Click to show internal directories.
Click to hide internal directories.