mirror of
https://github.com/ipfs/kubo.git
synced 2026-02-25 20:37:53 +08:00
16 lines
276 B
Go
16 lines
276 B
Go
package component
|
|
|
|
import (
|
|
"io"
|
|
|
|
"github.com/jbenet/go-ipfs/repo/config"
|
|
)
|
|
|
|
type Component interface {
|
|
Open(*config.Config) error
|
|
io.Closer
|
|
SetPath(string)
|
|
}
|
|
type Initializer func(path string, conf *config.Config) error
|
|
type InitializationChecker func(path string) bool
|