plugins

package
v0.1.16 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2023 License: MIT Imports: 0 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ILogger added in v0.1.12

type ILogger interface {
	// Printf prints the filename and key
	Printf(format string, v ...interface{})
}

ILogger is simple interface to output filename and key.

type IPlugin

type IPlugin interface {
	// Read reads date from storage
	Read(file, key string) ([]byte, error)

	// Save saves date from storage
	Save(file, key string, data []byte) error

	// SetVersion sets the version of the data being used. The GIT branch name is the first candidate.
	SetVersion(version string) error

	// PreloadByVersion loads data by 1 request
	PreloadByVersion() error

	// VerboseMode sets up "verbose" mode
	VerboseMode(bool)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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