plugins

package
v0.0.0-...-20afc43 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2024 License: Apache-2.0 Imports: 0 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CategoryV1

type CategoryV1 struct {
	Namespace string `msgpack:"namespace"`
	Value     string `msgpack:"value"`
}

type MetadataV1

type MetadataV1 struct {
	// Title is the title of the publication.
	Title string `msgpack:"title"`
	// Issued is the date of the publication.
	Issued int64 `msgpack:"issued"`
	// Categories are the categories of the archive. It can also be considered as the tags.
	Categories []CategoryV1 `msgpack:"categories"`
	// Index of the thumbnail in the archive.
	ThumbnailIndex int64 `msgpack:"thumbnail_index"`
}

type PluginV1

type PluginV1 interface {
	// Name returns the name of the plugin.
	Name() string
	// Version returns the version of the plugin.
	Version() string
	// Path returns the path to the plugin.
	Path() string
	// Execute executes the plugin and returns the metadata.
	Execute(archivePath string) (MetadataV1, error)
}

PluginV1 is an interface that all plugins must implement.

Directories

Path Synopsis
anchira module

Jump to

Keyboard shortcuts

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