Documentation
¶
Index ¶
- Variables
- type Manager
- func (m *Manager) Add(ctx context.Context, cmd command.Command) (command.Command, error)
- func (m *Manager) DeleteCommand(ctx context.Context, rawID string) error
- func (m *Manager) DeleteExplanation(ctx context.Context, commandID uuid.UUID) error
- func (m *Manager) GetAll(ctx context.Context) ([]command.Command, error)
- func (m *Manager) GetOne(ctx context.Context, rawID string) (command.Command, error)
- func (m *Manager) ReadExplanation(ctx context.Context, commandID uuid.UUID) (string, error)
- func (m *Manager) Search(ctx context.Context, term string) ([]command.Command, error)
- func (m *Manager) UpdateCommand(ctx context.Context, cmd command.Command) (command.Command, error)
- func (m *Manager) WriteExplanation(ctx context.Context, commandID uuid.UUID, explanation string) error
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
Manager handles the command admin operations.
func NewManager ¶
NewManager returns a new Manager.
func (*Manager) DeleteCommand ¶
GetCommand returns a command by ID.
func (*Manager) DeleteExplanation ¶
DeleteExplanation deletes the explanation from the notebook.
func (*Manager) ReadExplanation ¶
ReadExplanation reads the explanation from the notebook.
func (*Manager) UpdateCommand ¶
UpdateCommand updates the command on the store.
Click to show internal directories.
Click to hide internal directories.