managers

package
v1.4.3 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	SnippetsLab   *snippetslab.Config   `yaml:"snippetsLab,omitempty" mapstructure:"snippetsLab"`
	PictarineSnip *pictarinesnip.Config `yaml:"pictarineSnip,omitempty" mapstructure:"pictarineSnip"`
	Pet           *pet.Config           `yaml:"pet,omitempty" mapstructure:"pet"`
	MassCode      *masscode.Config      `yaml:"massCode,omitempty" mapstructure:"massCode"`
	GithubGist    *githubgist.Config    `yaml:"githubGist,omitempty" mapstructure:"githubGist"`
	FsLibrary     *fslibrary.Config     `yaml:"fsLibrary,omitempty" mapstructure:"fsLibrary"`
}

type Manager

type Manager interface {
	Key() model.ManagerKey
	Info() []model.InfoLine
	GetSnippets() []model.Snippet
	Sync(model.SyncEventChannel)
}

type Provider

type Provider interface {
	CreateManager(system system.System, config Config) []Manager
	ManagerDescriptions(config Config) []model.ManagerDescription
	AutoConfig(key model.ManagerKey, s *system.System) Config
}

func NewBuilder

func NewBuilder(cache cache.Cache) Provider

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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