Documentation ¶
Index ¶
- Constants
- Variables
- type Action
- type ActiveEnvironmentChangeListener
- type ActiveWorkspaceChangeListener
- type CollectionChangeListener
- type EnvironmentChangeListener
- type Environments
- func (m *Environments) AddActiveEnvironmentChangeListener(listener ActiveEnvironmentChangeListener)
- func (m *Environments) AddEnvironment(environment *domain.Environment, source Source)
- func (m *Environments) AddEnvironmentChangeListener(listener EnvironmentChangeListener)
- func (m *Environments) ClearActiveEnvironment()
- func (m *Environments) GetActiveEnvironment() *domain.Environment
- func (m *Environments) GetEnvironment(id string) *domain.Environment
- func (m *Environments) GetEnvironmentFromDisc(id string) (*domain.Environment, error)
- func (m *Environments) GetEnvironments() []*domain.Environment
- func (m *Environments) LoadEnvironmentsFromDisk() ([]*domain.Environment, error)
- func (m *Environments) ReloadEnvironmentFromDisc(id string, source Source)
- func (m *Environments) RemoveEnvironment(environment *domain.Environment, source Source, stateOnly bool) error
- func (m *Environments) SetActiveEnvironment(environment *domain.Environment)
- func (m *Environments) UpdateEnvironment(env *domain.Environment, source Source, stateOnly bool) error
- type RequestChangeListener
- type Requests
- func (m *Requests) AddCollection(collection *domain.Collection)
- func (m *Requests) AddCollectionChangeListener(listener CollectionChangeListener)
- func (m *Requests) AddRequest(request *domain.Request)
- func (m *Requests) AddRequestChangeListener(listener RequestChangeListener)
- func (m *Requests) AddRequestToCollection(collection *domain.Collection, request *domain.Request)
- func (m *Requests) GetCollection(id string) *domain.Collection
- func (m *Requests) GetCollections() []*domain.Collection
- func (m *Requests) GetRequest(id string) *domain.Request
- func (m *Requests) GetRequestFromDisc(id string) (*domain.Request, error)
- func (m *Requests) GetRequests() []*domain.Request
- func (m *Requests) LoadCollectionsFromDisk() ([]*domain.Collection, error)
- func (m *Requests) LoadRequestsFromDisk() ([]*domain.Request, error)
- func (m *Requests) ReloadRequestFromDisc(id string)
- func (m *Requests) RemoveCollection(collection *domain.Collection, stateOnly bool) error
- func (m *Requests) RemoveRequest(request *domain.Request, stateOnly bool) error
- func (m *Requests) UpdateCollection(collection *domain.Collection, stateOnly bool) error
- func (m *Requests) UpdateRequest(request *domain.Request, stateOnly bool) error
- type Source
- type WorkspaceChangeListener
- type Workspaces
- func (m *Workspaces) AddActiveWorkspaceChangeListener(listener ActiveWorkspaceChangeListener)
- func (m *Workspaces) AddWorkspace(workspace *domain.Workspace, source Source)
- func (m *Workspaces) AddWorkspaceChangeListener(listener WorkspaceChangeListener)
- func (m *Workspaces) ClearActiveWorkspace()
- func (m *Workspaces) GetActiveWorkspace() *domain.Workspace
- func (m *Workspaces) GetWorkspace(id string) *domain.Workspace
- func (m *Workspaces) GetWorkspaces() []*domain.Workspace
- func (m *Workspaces) LoadWorkspacesFromDisk() ([]*domain.Workspace, error)
- func (m *Workspaces) RemoveWorkspace(workspace *domain.Workspace, source Source, stateOnly bool) error
- func (m *Workspaces) SetActiveWorkspace(workspace *domain.Workspace)
- func (m *Workspaces) UpdateWorkspace(workspace *domain.Workspace, source Source, stateOnly bool) error
Constants ¶
Variables ¶
View Source
var ErrNotFound = errors.New("ErrNotFound")
Functions ¶
This section is empty.
Types ¶
type ActiveEnvironmentChangeListener ¶
type ActiveEnvironmentChangeListener func(*domain.Environment)
type CollectionChangeListener ¶
type CollectionChangeListener func(collection *domain.Collection, action Action)
type EnvironmentChangeListener ¶
type EnvironmentChangeListener func(environment *domain.Environment, source Source, action Action)
type Environments ¶
type Environments struct {
// contains filtered or unexported fields
}
func NewEnvironments ¶
func NewEnvironments(repository repository.Repository) *Environments
func (*Environments) AddActiveEnvironmentChangeListener ¶
func (m *Environments) AddActiveEnvironmentChangeListener(listener ActiveEnvironmentChangeListener)
func (*Environments) AddEnvironment ¶
func (m *Environments) AddEnvironment(environment *domain.Environment, source Source)
func (*Environments) AddEnvironmentChangeListener ¶
func (m *Environments) AddEnvironmentChangeListener(listener EnvironmentChangeListener)
func (*Environments) ClearActiveEnvironment ¶
func (m *Environments) ClearActiveEnvironment()
func (*Environments) GetActiveEnvironment ¶
func (m *Environments) GetActiveEnvironment() *domain.Environment
func (*Environments) GetEnvironment ¶
func (m *Environments) GetEnvironment(id string) *domain.Environment
func (*Environments) GetEnvironmentFromDisc ¶
func (m *Environments) GetEnvironmentFromDisc(id string) (*domain.Environment, error)
func (*Environments) GetEnvironments ¶
func (m *Environments) GetEnvironments() []*domain.Environment
func (*Environments) LoadEnvironmentsFromDisk ¶
func (m *Environments) LoadEnvironmentsFromDisk() ([]*domain.Environment, error)
func (*Environments) ReloadEnvironmentFromDisc ¶
func (m *Environments) ReloadEnvironmentFromDisc(id string, source Source)
func (*Environments) RemoveEnvironment ¶
func (m *Environments) RemoveEnvironment(environment *domain.Environment, source Source, stateOnly bool) error
func (*Environments) SetActiveEnvironment ¶
func (m *Environments) SetActiveEnvironment(environment *domain.Environment)
func (*Environments) UpdateEnvironment ¶
func (m *Environments) UpdateEnvironment(env *domain.Environment, source Source, stateOnly bool) error
type RequestChangeListener ¶
type Requests ¶
type Requests struct {
// contains filtered or unexported fields
}
func NewRequests ¶
func NewRequests(repository repository.Repository) *Requests
func (*Requests) AddCollection ¶
func (m *Requests) AddCollection(collection *domain.Collection)
func (*Requests) AddCollectionChangeListener ¶
func (m *Requests) AddCollectionChangeListener(listener CollectionChangeListener)
func (*Requests) AddRequest ¶
func (*Requests) AddRequestChangeListener ¶
func (m *Requests) AddRequestChangeListener(listener RequestChangeListener)
func (*Requests) AddRequestToCollection ¶
func (m *Requests) AddRequestToCollection(collection *domain.Collection, request *domain.Request)
func (*Requests) GetCollection ¶
func (m *Requests) GetCollection(id string) *domain.Collection
func (*Requests) GetCollections ¶
func (m *Requests) GetCollections() []*domain.Collection
func (*Requests) GetRequestFromDisc ¶
func (*Requests) GetRequests ¶
func (*Requests) LoadCollectionsFromDisk ¶
func (m *Requests) LoadCollectionsFromDisk() ([]*domain.Collection, error)
func (*Requests) LoadRequestsFromDisk ¶
func (*Requests) ReloadRequestFromDisc ¶
func (*Requests) RemoveCollection ¶
func (m *Requests) RemoveCollection(collection *domain.Collection, stateOnly bool) error
func (*Requests) RemoveRequest ¶
func (*Requests) UpdateCollection ¶
func (m *Requests) UpdateCollection(collection *domain.Collection, stateOnly bool) error
type WorkspaceChangeListener ¶
type Workspaces ¶
type Workspaces struct {
// contains filtered or unexported fields
}
func NewWorkspaces ¶
func NewWorkspaces(repository repository.Repository) *Workspaces
func (*Workspaces) AddActiveWorkspaceChangeListener ¶
func (m *Workspaces) AddActiveWorkspaceChangeListener(listener ActiveWorkspaceChangeListener)
func (*Workspaces) AddWorkspace ¶
func (m *Workspaces) AddWorkspace(workspace *domain.Workspace, source Source)
func (*Workspaces) AddWorkspaceChangeListener ¶
func (m *Workspaces) AddWorkspaceChangeListener(listener WorkspaceChangeListener)
func (*Workspaces) ClearActiveWorkspace ¶
func (m *Workspaces) ClearActiveWorkspace()
func (*Workspaces) GetActiveWorkspace ¶
func (m *Workspaces) GetActiveWorkspace() *domain.Workspace
func (*Workspaces) GetWorkspace ¶
func (m *Workspaces) GetWorkspace(id string) *domain.Workspace
func (*Workspaces) GetWorkspaces ¶
func (m *Workspaces) GetWorkspaces() []*domain.Workspace
func (*Workspaces) LoadWorkspacesFromDisk ¶
func (m *Workspaces) LoadWorkspacesFromDisk() ([]*domain.Workspace, error)
func (*Workspaces) RemoveWorkspace ¶
func (*Workspaces) SetActiveWorkspace ¶
func (m *Workspaces) SetActiveWorkspace(workspace *domain.Workspace)
func (*Workspaces) UpdateWorkspace ¶
Click to show internal directories.
Click to hide internal directories.