This commit is contained in:
royalcat 2025-04-03 03:19:01 +04:00
parent e62df2e9fc
commit 1912b5baf0
39 changed files with 8489 additions and 476 deletions
plugins/archive

View file

@ -13,13 +13,17 @@ import (
"go.opentelemetry.io/otel"
)
const DaemonName string = "archive"
const daemonName = "archive"
var Plugin = &tstor.Plugin{
Name: DaemonName,
DaemonConstructor: NewDaemon,
type ArchivePlugin struct{}
// Name implements tstor.Plugin.
func (a *ArchivePlugin) Name() string {
return daemonName
}
var _ tstor.Plugin = (*ArchivePlugin)(nil)
var _ daemon.DaemonConstructor = NewDaemon
func NewDaemon(ctx context.Context, koanf *koanf.Koanf) (daemon.Daemon, error) {
@ -36,7 +40,7 @@ type Daemon struct {
// Name implements daemon.Daemon.
func (d *Daemon) Name() string {
return DaemonName
return daemonName
}
// Extensions implements daemon.Daemon.