manager

package
v0.5.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 24, 2023 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

type Manager struct {
	// contains filtered or unexported fields
}

Manager integrates operations on snippets stored in a file.

func NewManager

func NewManager(fh *fs.FileHandler) (*Manager, error)

NewManager creates a pointer to a Manager instance for a given file handle.

func (*Manager) Execute

func (m *Manager) Execute(request stream.Request, reply *stream.Reply) error

Execute runs a server command against the snippet container.

Allowed commands:

  • List out all stored snippets
  • Find a single snippet
  • Insert a snippet to the container
  • Delete a snippet from the container
  • Reload the snippet container

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL