mod sync and archive plugin
This commit is contained in:
parent
3f01d7032f
commit
237af4a63e
16 changed files with 432 additions and 51 deletions
plugins/archive
|
@ -7,6 +7,7 @@ import (
|
|||
|
||||
"git.kmsign.ru/royalcat/tstor/server/src/daemon"
|
||||
"git.kmsign.ru/royalcat/tstor/server/src/vfs"
|
||||
"git.kmsign.ru/royalcat/tstor/server/tstor"
|
||||
"github.com/hashicorp/golang-lru/arc/v2"
|
||||
"github.com/knadh/koanf/v2"
|
||||
"go.opentelemetry.io/otel"
|
||||
|
@ -14,6 +15,11 @@ import (
|
|||
|
||||
const DaemonName string = "archive"
|
||||
|
||||
var Plugin = &tstor.Plugin{
|
||||
Name: DaemonName,
|
||||
DaemonConstructor: NewDaemon,
|
||||
}
|
||||
|
||||
var _ daemon.DaemonConstructor = NewDaemon
|
||||
|
||||
func NewDaemon(ctx context.Context, koanf *koanf.Koanf) (daemon.Daemon, error) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue