algorithms

package
v0.0.0-...-f9f8e5e Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2025 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Algorithms = map[string]Creator{}

Functions

func Add

func Add(name string, creator Creator)

func All

func All() (mods []internal.Algorithm)

func List

func List(IDs ...string) (algos []internal.Algorithm)

Types

type Creator

type Creator func() internal.Algorithm

func Get

func Get(name string) (Creator, error)

type Plugin

type Plugin struct {
	Summary string
	Title   string
	Code    string
	Conf    internal.Config
}

func (*Plugin) Algo

func (p *Plugin) Algo() db.Algorithm

func (*Plugin) Description

func (p *Plugin) Description() string

func (*Plugin) Id

func (p *Plugin) Id() string

func (*Plugin) Init

func (p *Plugin) Init(conf internal.Config)

func (*Plugin) Name

func (p *Plugin) Name() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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